Picon

running unit tests on Plone 2.5.2

Hi all,

I hope this is the right list for this question.

I just installed a fresh Plone 2.5.2 using the Universal/Unified Linux Installer from http://plone.org/products/plone . Pretty neat installer! Everything went well on my old G4. As a result, I have the default ZEO cluster with two clients and a shared Products/ directory, in which I dumped my products as usual.

I am now trying to run my unit tests and I can't get them to work. On 2.5.1 I was getting the known 'test_user_1_' error. Now I'm getting the following "AttributeError: plone" error:

$ python ./runalltests.py

...

Traceback (most recent call last):
  File "/opt/Plone-2.5.2/lib/python/Testing/ZopeTestCase/profiler.py", line 86, in __call__
    self.setUp()
  File "/opt/Plone-2.5.2/lib/python/Testing/ZopeTestCase/PortalTestCase.py", line 60, in setUp
    self.portal = self._portal()
  File "/opt/Plone-2.5.2/zeocluster/client1/Products/PloneTestCase/PloneTestCase.py", line 70, in _portal
    return self.getPortal(1)
  File "/opt/Plone-2.5.2/zeocluster/client1/Products/PloneTestCase/PloneTestCase.py", line 83, in getPortal
    return getattr(self.app, portal_name)
AttributeError: plone

I get the same error when running individual tests: python ./test_blah.py

$ env | grep _HOME

SOFTWARE_HOME=/opt/Plone-2.5.2/lib/python/
INSTANCE_HOME=/opt/Plone-2.5.2/zeocluster/client1/

I would like to know if the 'test_user_1_' is something still present in Plone 2.5.2 as installed by the Super Universal Unified Linux Installer (which installs Zope 2.9.6 if I'm not mistaken).

Also, any hints on why I'm getting this AttributeError? Are INSTANCE_HOME and SOFTWARE_HOME ok? Am I doing something wrong?

Thanks a lot, I will feel much more comfortable once I see the tests running (and passing!).

--
Powered by tofu

Stefan H. Holek | 2 Feb 11:36
Picon
Gravatar

Re: running unit tests on Plone 2.5.2

Forget about runalltests.py. Since Zope 2.9 your *must* use Zope's  
testrunner, i.e. ./bin/zopectl test -s Products.CMFPlone

Stefan

On 1. Feb 2007, at 20:36, Juan Pablo Di Lelle wrote:

> $ python ./runalltests.py

--
Anything that, in happening, causes something else to happen,
causes something else to happen.  --Douglas Adams

Alexander Limi | 2 Feb 20:55
Favicon
Gravatar

Re: running unit tests on Plone 2.5.2

On Fri, 02 Feb 2007 02:36:00 -0800, Stefan H. Holek  
<stefan@...> wrote:

> Forget about runalltests.py. Since Zope 2.9 your *must* use Zope's  
> testrunner, i.e. ./bin/zopectl test -s Products.CMFPlone

Can we remove that file since it doesn't do anything useful, then? :)

--

-- 
Alexander Limi · http://limi.net

Martin Aspeli | 3 Feb 14:21
Picon
Gravatar

Re: Plone book / beginners guide

Jamie Bohr wrote:
> Is there a book or resource that someone could recommend for a Plone newbie?

By the way, did you see http://learnplone.org?

Martin

Wagner Pinheiro | 4 Feb 00:30
Picon
Favicon

new mac user installation

hi 
i'm a new mac user . I have installed the plone. but
how do i do to run the program? i saw the folder but
it don't have any icon to run the pogram itself. I
need information step by step. Thank you. 

ps. the manuals don't show this

 
____________________________________________________________________________________
Never Miss an Email
Stay connected with Yahoo! Mail on your mobile.  Get started!
http://mobile.yahoo.com/services?promote=mail

James Biggs | 4 Feb 02:48
Picon
Favicon

Cannot start zeocluster for Plone 2.5.2

I'm new to plone, although I tinkered a bit in 2.5.1. I just installed 2.5.2 on
a machine running Ubuntu Server Edition, but when I try to start the zeocluster,
the ZEO server will not start.

I ran "bin/zopectl fg" and received the below output. Anybody know what may be
causing this? I cannot see how it is a port problem, since I could access my
plone site and zope manager in my previous installation of 2.5.1., which I just
updated today.

/opt/Plone-2.5.2/zeocluster/client1/bin/runzope -X debug-mode=on
Traceback (most recent call last):
  File "/opt/Plone-2.5.2/lib/python/Zope2/Startup/run.py", line 56, in ?
    run()
  File "/opt/Plone-2.5.2/lib/python/Zope2/Startup/run.py", line 21, in run
    starter.prepare()
  File "/opt/Plone-2.5.2/lib/python/Zope2/Startup/__init__.py", line 92, in prepare
    self.setupServers()
  File "/opt/Plone-2.5.2/lib/python/Zope2/Startup/__init__.py", line 208, in
setupServers
    raise ZConfig.ConfigurationError(socket_err
ZConfig.ConfigurationError: There was a problem starting a server of type
"HTTPServer". This may mean that your user does not have permission to bind to
the port which the server is trying to use or the port may already be in use by
another application. (Address already in use)

Reinout van Rees | 5 Feb 11:42
Gravatar

Re: Cannot start zeocluster for Plone 2.5.2

James Biggs wrote:
> I'm new to plone, although I tinkered a bit in 2.5.1. I just installed 2.5.2 on
> a machine running Ubuntu Server Edition, but when I try to start the zeocluster,
> the ZEO server will not start.
> 
> I ran "bin/zopectl fg" and received the below output. Anybody know what may be
> causing this? I cannot see how it is a port problem, since I could access my
> plone site and zope manager in my previous installation of 2.5.1., which I just
> updated today.
> 
> 
> /opt/Plone-2.5.2/zeocluster/client1/bin/runzope -X debug-mode=on
> Traceback (most recent call last):
>   File "/opt/Plone-2.5.2/lib/python/Zope2/Startup/run.py", line 56, in ?
>     run()
>   File "/opt/Plone-2.5.2/lib/python/Zope2/Startup/run.py", line 21, in run
>     starter.prepare()
>   File "/opt/Plone-2.5.2/lib/python/Zope2/Startup/__init__.py", line 92, in prepare
>     self.setupServers()
>   File "/opt/Plone-2.5.2/lib/python/Zope2/Startup/__init__.py", line 208, in
> setupServers
>     raise ZConfig.ConfigurationError(socket_err
> ZConfig.ConfigurationError: There was a problem starting a server of type
> "HTTPServer". This may mean that your user does not have permission to bind to
> the port which the server is trying to use or the port may already be in use by
> another application. (Address already in use)

Check with "ps ax" whether there's a left-over process still running
somehow. It happens from time to time. Or try telnetting to the
offending port to see what is listening there :-)

Reinout

--

-- 
Reinout van Rees                       r.van.rees @ zestsoftware.nl
http://vanrees.org/weblog/                  http://zestsoftware.nl/
"Military engineers build missiles. Civil engineers build targets."

Philip Kilner | 6 Feb 11:39
Picon
Favicon
Gravatar

Re: portal_memberdata wiped on upgrade from 2.1.4 to 2.5.2

Hi All,

Philip Kilner wrote:
> I've been upgrading many small sites from 2.1.4 to 2.5.2, and am
> noticing that portal_memberdata is empty after the upgrade.
> 

I've now had the chance to test this on a completely clean Zope 2.8.8
instance, and can now confirm that this happens even in that case.

Process: -
- Create Zope 2.8.8 Instance.
- Install Plone 2.1.4
- Create Plone site and add test member data.
- Install Plone 2.5.2
- Install Five 1.2.6 (required for Plone 2.5.2)
- Check portal_memberdata - OK
- Run migration
- Check portal_memberdata - No records.

Looking at the install log for PlonePAS, I see: -

MemberData Tool (portal_memberdata)
 ...copying actions
  ...extracting data
 - Removing Default
 - Installing PAS Aware
 ...restoring actions
 ...restoring data <-- great fat steaming pork pie!
 ...done

...which (as far as restoring the data is concerned) is wholly untrue. I
must say that I find that worrying, as it undermines ones faith in the
accuracy of the logging.

It's nearly a fortnight since I posted about this problem, and aside
from one off-list reply reporting the same symptoms there has been no
response. I find this a bit disconcerting, as this is an easily
reproducible problem which wipes critical data, and as a result I'm
wondering if I'm doing something wrong either in my process or my
interpretation of what I see, or is this is an uncommon upgrade path -
surely not?

On the face of it this is a pretty serious issue (It's certainly wasting
a lot of my time at the moment), so unless anyone can point me in the
right direction I propose to report this as a Plone bug. If I don't get
any comments, I'll ask again on the main Plone users list before I do so.

--

-- 

Regards,

PhilK

'let's hear it for the vague blur'

Jay van der Meer | 6 Feb 18:04
Favicon

Problem with TextIndexNG3 after upgrade to Plone 2.5.2

I completed an upgrade from Plone 2.1.2 to 2.5.2.  At the step to
re-install existing products I selected Add/Remove products.

TextIndexNG3 has a note "This product has been upgraded, click here to
reinstall."

Doing that I get an error:

Attribute Error: _createTextIndexes

/Plone-2.5.2/zeocluster/client1/Products/TextIndexNG3/Extensions/Install.py,
line 125, in uninstall

I have also tried a manual upgrade to TextIndexNG3 3.2.0b1 with the same
results.

Any ideas on how to correct this?

Thanks.
-----------------------------------------
This e-mail and any attachments are intended only for the
individual or company to which it is addressed and may contain
information which is privileged, confidential and prohibited from
disclosure or unauthorized use under applicable law.  If you are
not the intended recipient of this e-mail, you are hereby notified
that any use, dissemination, or copying of this e-mail or the
information contained in this e-mail is strictly prohibited by the
sender.  If you have received this transmission in error, please
return the material received to the sender and delete all copies
from your system.

Alexander Limi | 6 Feb 22:40
Favicon
Gravatar

Re: portal_memberdata wiped on upgrade from 2.1.4 to 2.5.2

Please log a bug in the issue tracker with Migration as the category:

http://dev.plone.org/plone

On Tue, 06 Feb 2007 02:39:04 -0800, Philip Kilner  
<phil@...> wrote:

> Hi All,
>
> Philip Kilner wrote:
>> I've been upgrading many small sites from 2.1.4 to 2.5.2, and am
>> noticing that portal_memberdata is empty after the upgrade.
>>
>
> I've now had the chance to test this on a completely clean Zope 2.8.8
> instance, and can now confirm that this happens even in that case.
>
> Process: -
> - Create Zope 2.8.8 Instance.
> - Install Plone 2.1.4
> - Create Plone site and add test member data.
> - Install Plone 2.5.2
> - Install Five 1.2.6 (required for Plone 2.5.2)
> - Check portal_memberdata - OK
> - Run migration
> - Check portal_memberdata - No records.
>
> Looking at the install log for PlonePAS, I see: -
>
> MemberData Tool (portal_memberdata)
>  ...copying actions
>   ...extracting data
>  - Removing Default
>  - Installing PAS Aware
>  ...restoring actions
>  ...restoring data <-- great fat steaming pork pie!
>  ...done
>
> ...which (as far as restoring the data is concerned) is wholly untrue. I
> must say that I find that worrying, as it undermines ones faith in the
> accuracy of the logging.
>
> It's nearly a fortnight since I posted about this problem, and aside
> from one off-list reply reporting the same symptoms there has been no
> response. I find this a bit disconcerting, as this is an easily
> reproducible problem which wipes critical data, and as a result I'm
> wondering if I'm doing something wrong either in my process or my
> interpretation of what I see, or is this is an uncommon upgrade path -
> surely not?
>
> On the face of it this is a pretty serious issue (It's certainly wasting
> a lot of my time at the moment), so unless anyone can point me in the
> right direction I propose to report this as a Plone bug. If I don't get
> any comments, I'll ask again on the main Plone users list before I do so.
>
>
>
>

--

-- 
Alexander Limi · http://limi.net


Gmane