Re: [Zope] How to move acl_users from a Zope 2.7.8 server to Zope 2.10.7 ?

2009-06-10 Thread Aleksey Tsalolikhin
On Sun, Jun 7, 2009 at 10:25 AM, Chris Withersch...@simplistix.co.uk wrote:
 Aleksey Tsalolikhin wrote:

 Hi.  I am moving a Web application from a Zope 2.7.8 server to 2.10.7.

 How do I migrate the users in acl_users from the Zope 2.7.8 server to
 the 2.10.7 one?

 Why don't you just copy the whole Data.fs and start it on the new server?

 Chris

Thanks, Chris.   Is it safe to copy Data.fs from Zope 2.7.8 to 2.10.7?
 The internal format of Data.fs has not changed?

Or are you suggesting I try it and see if it works?

Thanks,
Aleksey
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Is there a Zope migration tool?

2009-06-10 Thread Aleksey Tsalolikhin
Andreas wrote:

  Since migrations are application specific, you usually have to write
 a migration script yourself. Zope does not know about changes in your
 application
 - that's why Zope can not provide any kind of migration mechanism for you -
 except providing the low-level export/import on the Python pickle level.


And Lennart wrote:

 What is it you need to migrate? Zope itself needs no migration from 2.7 to 
 2.10.

Thank you for your replies.  To clarify, I don't have ANY changes in
my application.
The only thing changing is that I am moving my application from a SUSE
10.1 Linux
system running Zope 2.7.8 to a CentOS 5.3 Linux server running Zope 2.10.7.

The purpose of the move is to get off an old and no longer supported
Linux distro
and onto a new Linux server.

This web app is in production, which means I need to move all the data
over and all the users without breaking it.

I am not a programmer, I am a system administrator.  I don't know about
the internals of this application, and nobody does, it's not documented,
and the original programmer is not available.

I am trying to figure out how move this beastie over with all its data and
all its users.

What I have so far is:  export application-related items in the root folder
on the Zope 2.7 server, plus the acl_users folder; and import them all
into the Zope 2.10 server.

This seems to work.

I just want to know if there is a better way, especially since the Zope
server warns against doing this unless the installations are identical,
and in this case they are not.   If my way works, and there is no better
way, my job is done.  I want to make sure I've paid due diligence
by asking on this list if there is a better way, oh wise people who
know and use Zope?

Best,
-at
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Is there a Zope migration tool?

2009-06-07 Thread Aleksey Tsalolikhin
My Zope 2.10 server tells me:

Note: Zope can export/import objects in two dfferent formats:
a binary format (called ZEXP) and as XML. The ZEXP format
is the officially supported export/import format for moving data
between identicial Zope installations (it is not a migration tool).
The XML export/import is unsupported (and possibly broken
under certain circumstances) - use it at your own risk.

I am moving a Web app from Zope 2.7 to 2.10.   I exported it
from 2.7 and imported to 2.10 and this worked.  But then I saw
the above note.  Is there a migration tool?  Where is it, please?


Thanks,
Aleksey

-- 
Aleksey Tsalolikhin
UNIX System Administrator
I get stuff done!
http://www.verticalsysadmin.com/
LinkedIn - http://www.linkedin.com/in/atsaloli
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] How to move acl_users from a Zope 2.7.8 server to Zope 2.10.7 ?

2009-06-06 Thread Aleksey Tsalolikhin
Hi.  I am moving a Web application from a Zope 2.7.8 server to 2.10.7.

How do I migrate the users in acl_users from the Zope 2.7.8 server to
the 2.10.7 one?

Andreas Jung suggested exporting it from the old server and importing
in the new.

Apparently this worked (although I had to blow away the acl_users
folder on the
new server before I could import the acl_users folder from the old server; and
I had to use zpasswd.py to create inituser and access files in my Zope root
so that I could access the ZMI to import the acl_users folder.)

I have very little experience with Zope so I turn to you guys, is this
a totally insane
thing I did, or is it absolutely correct and I (and Andreas) should be
rewarded?  :)

I did try using the copy_users.py script but had no luck with it.  :(

The record of my attempt follows.

If somebody has experience with migrating acl_users from one server to
another, please write me!


http://www.zope.org/Products/CMF/docs/admin/andrew_PTK2CMF/view


http://www.zope.org/Members/ensane/PTK2CMF/copy_users.py

I put the copy_users.py file in /var/lib/zope/Extensions and added it
as an External Method

(fill out the form as copy_users, copy_users, copy_users and copyUsers)

then add a DTML Method as per the instructions

---


I created a DTML Method called do_copyUsers:

dtml-call copy_users('acl_users', 'copy_of_acl_users')


but when I ran it, I got:


Site Error

An error was encountered while publishing this resource.

Error Type: KeyError
Error Value: 'copy_of_acl_users'

Troubleshooting Suggestions

* This resource may be trying to reference a nonexistent object or
variable 'copy_of_acl_users'.
* The URL may be incorrect.
* The parameters passed to this resource may be incorrect.
* A resource that this resource relies on may be encountering an error.

For more detailed information about the error, please refer to the error log.

If the error persists please contact the site maintainer. Thank you
for your patience.




so I created an empty folder called copy_of_acl_users

and tried running my DTML method again ,but got:
ite Error

An error was encountered while publishing this resource.

Error Type: AttributeError
Error Value: _addUser

Troubleshooting Suggestions

* The URL may be incorrect.
* The parameters passed to this resource may be incorrect.
* A resource that this resource relies on may be encountering an error.

For more detailed information about the error, please refer to the error log.

If the error persists please contact the site maintainer. Thank you
for your patience.


I also tried removing /copy_of_acl_users and recreating it again, but this
time I checked the create user folder box.

Tried running my DTML method again, but again got

Error Type: AttributeError
Error Value: _addUser

I also created a copy of the acl_users folder in /aleksey_temp/acl_users


Modified my DTML method to:

dtml-call copy_users('acl_users', 'aleksey_temp/acl_users')

and when I ran it, Zope output a zero byte file called do_CopyUsers


Best,
Aleksey
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] How to move acl_users from Zope 2.7.8 to 2.10.7 ?

2009-04-25 Thread Aleksey Tsalolikhin
Hi.  I am migrating a Web application from Zope 2.7.8 to 2.10.7.

I noticed the format of acl_users has changed (the format of
acl_users' exported XML file is different).

How do I migrate the contents of acl_users from Zope 2.7.8 to 2.10.7, please?

Thanks,
Aleksey

-- 
Aleksey Tsalolikhin
UNIX System Administrator
I get stuff done!
http://www.verticalsysadmin.com/
LinkedIn - http://www.linkedin.com/in/atsaloli
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] How to move acl_users from Zope 2.7.8 to 2.10.7 ?

2009-04-25 Thread Aleksey Tsalolikhin
On Sat, Apr 25, 2009 at 7:21 AM, Andreas Jung li...@zopyx.com wrote:

 Hi.  I am migrating a Web application from Zope 2.7.8 to 2.10.7.

 I noticed the format of acl_users has changed (the format of
 acl_users' exported XML file is different).

 Did you try the .zexp export?

No.  Ideally I would combine the acl_users from the old server
(existing, production system) with the acl_users form the new server
(test), so that we can do a full test involving both the existing user
accounts and the new user accounts.

I thought I would handle this by combining the XML files and then
importing the result, to replace acl_users on the
 new server... BUT I paused when I saw the XML formats were different.

I was also afraid I'd break the new server by export / import using
the zexp format; knowing the XML format changed, I assumed the zexp
contents for acl_users would be different as well, but maybe that was
a false assumption..  I am new to Zope by the way and appreciate your
advice.

Truly,
-at
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] How to move acl_users from Zope 2.7.8 to 2.10.7 ?

2009-04-25 Thread Aleksey Tsalolikhin
Dear Andreas,

 You have a backup and you have a testing server?!

I don't have a backup of the testing server but I can recreate it if I have to.

My questions:

1. can I export acl_users from the old server and import it into the
new server?

2. is there any way to combine acl_users from the old server with
acl_users from the new server?

Thanks,
-at
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] RIP Zope 2!

2009-04-03 Thread Aleksey Tsalolikhin
Hi.  FYI, I have a client using Zope 2 in production.   I am migrating
him from Zope 2.7 on SUSE 10.1 to Zope 2.10 on CentOS 5.2.

He's not using plone.  He has a custom Web app.  He expects to keep
using Zope 2, and to continue development of our Web application.

Best,
Aleksey Tsalolikhin
Unix system administrator
http://www.verticalsysadmin.com/
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Migrated from Zope 2.7.8 to 2.10; how to fix Unauthorized: You are not allowed to access 'standard_html_header' in this context error?

2009-03-31 Thread Aleksey Tsalolikhin
Thank you for your kind replies (Tres, Dieter), it was a matter of
security permissions on the 'standard_html_header'.

Thanks especially to Dieter, for the tip re enabling verbose security.

And TheJester helped me on #zope on IRC as well.   Thanks very much!

Best,
Aleksey
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Migrated from Zope 2.7.8 to 2.10; how to fix Unauthorized: You are not allowed to access 'standard_html_header' in this context error?

2009-03-28 Thread Aleksey Tsalolikhin
Hi.  I recently migrated from Zope 2.7.8 to 2.10 and am now seeing
this error in my event.log:


2009-03-28T21:15:52 ERROR root Exception while rendering an error message
Traceback (most recent call last):
  File /usr/lib/zope/lib/python/OFS/SimpleItem.py, line 225, in
raise_standardErrorMessage
v = s(client, REQUEST, **kwargs)
  File /usr/lib/zope/lib/python/OFS/DTMLMethod.py, line 144, in __call__
r=apply(HTML.__call__, (self, client, REQUEST), kw)
  File /usr/lib/zope/lib/python/DocumentTemplate/DT_String.py, line
476, in __call__
try: result = render_blocks(self._v_blocks, md)
Unauthorized: You are not allowed to access 'standard_html_header' in
this context

What does it mean?  How do I fix it, please?

I am new to Zope.

I copied the Web app by export from the old server and import to the new one.

Best,
Aleksey
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )