Re: [Zope] zope stopped working suddenly

2007-06-18 Thread Maciej Wisniowski

> I tried to change effective-user from the zope.conf.in
>  file and saved it as zope.conf, I used the command
>  
> effective-user tleis , as stated in the example of that file, but no
> thing changed. if anyone knows why please tell me (just curousity)
Maybe user tleis had no permissions to folders you've created as root.
> I created a new user as Maciej said, and there i tried to create an
> instance, but I got a denied permission message. 
If you tried to override existing instance created
by root then it is correct behaviour I think.

> What I did finally is that I deleted the folders in both /tmp/zope and
> /opt/Zope-2.10 folders, and installed Zope Again and everything is
> working fine right
:)

-- 
Maciej Wisniowski
___
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] zope stopped working suddenly

2007-06-17 Thread Mohammed Tlais

On 6/15/07, Maciej Wisniowski <[EMAIL PROTECTED]> wrote:



>   File "/opt/Zope-2.10/lib/python/Zope2/Startup/__init__.py", line
> 234, in dropPrivileges
> return dropPrivileges(self.cfg)
>   File "/opt/Zope-2.10/lib/python/Zope2/Startup/__init__.py", line
> 403, in dropPrivileges
> raise ZConfig.ConfigurationError(msg)
> ZConfig.ConfigurationError: A user was not specified to setuid to; fix
> this to start as root (change the effective-user directive in zope.conf)
> /** END **/
You have answer above. To run as root you have
to change effective-user at zope.conf file



I tried to change effective-user from the zope.conf.in file and saved it as
zope.conf, I used the command

effective-user tleis , as stated in the example of that file, but no thing
changed. if anyone knows why please tell me (just curousity)




>
> When everything was ok in the past I was able to run zope through
> ./zopectl start (as a root)
> but now the stop command displays that  the daemon manager is not open.
Strange that it worked. In general I think you shouldn't
run zope as root.

--
Maciej Wisniowski



I created a new user as Maciej said, and there i tried to create an
instance, but I got a denied permission message. What I did finally is that
I deleted the folders in both /tmp/zope and /opt/Zope-2.10 folders, and
installed Zope Again and everything is working fine right
now! but i still want to understand why this happened to me?
Thanks for you
___
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] zope stopped working suddenly

2007-06-15 Thread Maciej Wisniowski

>   File "/opt/Zope-2.10/lib/python/Zope2/Startup/__init__.py", line
> 234, in dropPrivileges
> return dropPrivileges(self.cfg)
>   File "/opt/Zope-2.10/lib/python/Zope2/Startup/__init__.py", line
> 403, in dropPrivileges
> raise ZConfig.ConfigurationError(msg)
> ZConfig.ConfigurationError: A user was not specified to setuid to; fix
> this to start as root (change the effective-user directive in zope.conf)
> /** END **/
You have answer above. To run as root you have
to change effective-user at zope.conf file

>
> When everything was ok in the past I was able to run zope through
> ./zopectl start (as a root)
> but now the stop command displays that  the daemon manager is not open.
Strange that it worked. In general I think you shouldn't
run zope as root.

-- 
Maciej Wisniowski
___
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] zope stopped working suddenly

2007-06-15 Thread Mohammed Tlais

On 6/15/07, Maciej Wisniowski <[EMAIL PROTECTED]> wrote:



> Greetings
> thank you for your help.
> first i want to ask if i should reply to you like what i am doing now,
> or send the message to zope@zope.org ? I am new
> to mailing lists and don't know the rules.
You should always stay on the list. It is common to just use 'Reply all'
option when replying.

> In my zope/log folder there is no event.log file, just a simple line
> readme.txt file.
> running the zopectl fg displayed the following:
>
> /** OUTPUT **/
> /tmp/zope/bin/runzope -X debug-mode=on
> 2007-06-15 09:33:41 INFO ZServer HTTP server started at Fri Jun 15
> 09:33:41 2007
> Hostname: 0.0.0.0 
> Port: 8080
> 2007-06-15 09:33:51 INFO Zope Ready to handle requests
> Traceback (most recent call last):
>   File "/opt/Zope-2.10/lib/python/Zope2/Startup/run.py", line 56, in ?
> run()
>   File "/opt/Zope- 2.10/lib/python/Zope2/Startup/run.py", line 21, in
run
> starter.prepare()
>   File "/opt/Zope-2.10/lib/python/Zope2/Startup/__init__.py", line
> 111, in prepare
> self.setupFinalLogging ()
>   File "/opt/Zope-2.10/lib/python/Zope2/Startup/__init__.py", line
> 372, in setupFinalLogging
> self.setupConfiguredLoggers()
>   File "/opt/Zope-2.10/lib/python/Zope2/Startup/__init__.py", line
> 254, in setupConfiguredLoggers
> self.cfg.eventlog()
>   File
> "/opt/Zope-2.10/lib/python/ZConfig/components/logger/factory.py", line
> 32, in __call__
> self.instance = self.create()
>   File
> "/opt/Zope-2.10/lib/python/ZConfig/components/logger/logger.py", line
> 42, in create
> handler = handler_factory()
>   File
> "/opt/Zope- 2.10/lib/python/ZConfig/components/logger/factory.py", line
> 32, in __call__
> self.instance = self.create()
>   File
> "/opt/Zope-2.10/lib/python/ZConfig/components/logger/handlers.py",
> line 69, in create
> logger = self.create_loghandler()
>   File
> "/opt/Zope-2.10/lib/python/ZConfig/components/logger/handlers.py",
> line 87, in create_loghandler
> handler = loghandler.FileHandler(path)
>   File "/opt/Zope-
> 2.10/lib/python/ZConfig/components/logger/loghandler.py", line 34, in
> __init__
> StreamHandler.__init__(self, open(filename, mode))
> IOError: [Errno 13] Permission denied: '/tmp/zope/log/event.log'
> /** END **/
So seems  that you have incorrect permissions
set for /tmp/zope/log/event.log and
you need to change them or start zope as different user.


BTW you've chosen strange place (/tmp) to install your zope ;)
what is strange is that event.log does not actually exist in the log folder,

I deleted the /tmp/zope folder and deleted the opt/Zope-2.10  , and
installed zope again and created a new instance in /opt/zope.
I am still working in root, and the problem still exist. running ./zopectl
fg couldn't continue :

/** OUTPUT **/
[EMAIL PROTECTED] bin]# ./zopectl fg
/opt/zope/bin/runzope -X debug-mode=on
2007-06-15 11:39:34 INFO ZServer HTTP server started at Fri Jun 15 11:39:34
2007
   Hostname: 0.0.0.0
   Port: 8080
2007-06-15 11:39:34 CRITICAL Zope A user was not specified to setuid to; fix
this to start as root (change the effective-user directive in zope.conf)
Traceback (most recent call last):
 File "/opt/Zope-2.10/lib/python/Zope2/Startup/run.py", line 56, in ?
   run()
 File "/opt/Zope-2.10/lib/python/Zope2/Startup/run.py", line 21, in run
   starter.prepare()
 File "/opt/Zope-2.10/lib/python/Zope2/Startup/__init__.py", line 98, in
prepare
   self.dropPrivileges()
 File "/opt/Zope-2.10/lib/python/Zope2/Startup/__init__.py", line 234, in
dropPrivileges
   return dropPrivileges(self.cfg)
 File "/opt/Zope-2.10/lib/python/Zope2/Startup/__init__.py", line 403, in
dropPrivileges
   raise ZConfig.ConfigurationError(msg)
ZConfig.ConfigurationError: A user was not specified to setuid to; fix this
to start as root (change the effective-user directive in zope.conf)
/** END **/

When everything was ok in the past I was able to run zope through ./zopectl
start (as a root)
but now the stop command displays that  the daemon manager is not open.


--

Maciej Wisniowski




___
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] zope stopped working suddenly

2007-06-15 Thread Maciej Wisniowski

> Greetings
> thank you for your help.
> first i want to ask if i should reply to you like what i am doing now,
> or send the message to zope@zope.org ? I am new
> to mailing lists and don't know the rules.
You should always stay on the list. It is common to just use 'Reply all'
option when replying.

> In my zope/log folder there is no event.log file, just a simple line
> readme.txt file.
> running the zopectl fg displayed the following:
>
> /** OUTPUT **/
> /tmp/zope/bin/runzope -X debug-mode=on
> 2007-06-15 09:33:41 INFO ZServer HTTP server started at Fri Jun 15
> 09:33:41 2007
> Hostname: 0.0.0.0 
> Port: 8080
> 2007-06-15 09:33:51 INFO Zope Ready to handle requests
> Traceback (most recent call last):
>   File "/opt/Zope-2.10/lib/python/Zope2/Startup/run.py", line 56, in ?
> run()
>   File "/opt/Zope-2.10/lib/python/Zope2/Startup/run.py", line 21, in run
> starter.prepare()
>   File "/opt/Zope-2.10/lib/python/Zope2/Startup/__init__.py", line
> 111, in prepare
> self.setupFinalLogging()
>   File "/opt/Zope-2.10/lib/python/Zope2/Startup/__init__.py", line
> 372, in setupFinalLogging
> self.setupConfiguredLoggers()
>   File "/opt/Zope-2.10/lib/python/Zope2/Startup/__init__.py", line
> 254, in setupConfiguredLoggers
> self.cfg.eventlog()
>   File
> "/opt/Zope-2.10/lib/python/ZConfig/components/logger/factory.py", line
> 32, in __call__
> self.instance = self.create()
>   File
> "/opt/Zope-2.10/lib/python/ZConfig/components/logger/logger.py", line
> 42, in create
> handler = handler_factory()
>   File
> "/opt/Zope-2.10/lib/python/ZConfig/components/logger/factory.py", line
> 32, in __call__
> self.instance = self.create()
>   File
> "/opt/Zope-2.10/lib/python/ZConfig/components/logger/handlers.py",
> line 69, in create
> logger = self.create_loghandler()
>   File
> "/opt/Zope-2.10/lib/python/ZConfig/components/logger/handlers.py",
> line 87, in create_loghandler
> handler = loghandler.FileHandler(path)
>   File "/opt/Zope-
> 2.10/lib/python/ZConfig/components/logger/loghandler.py", line 34, in
> __init__
> StreamHandler.__init__(self, open(filename, mode))
> IOError: [Errno 13] Permission denied: '/tmp/zope/log/event.log'
> /** END **/
So seems  that you have incorrect permissions
set for /tmp/zope/log/event.log and
you need to change them or start zope as different user.
BTW you've chosen strange place (/tmp) to install your zope ;)

-- 
Maciej Wisniowski



___
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] zope stopped working suddenly

2007-06-13 Thread Maciej Wisniowski
> Greetings
> First , I am glad to join you at this list. I installed Zope on Fedora Core
> 6, and started to learn how to use it. for a few days i was able to access
> the management interface (ZMI) through http://127.0.0.1:8080 after starting
> zope through .../zopectl start. but as a sudden I found myself unable to
> enter to the ZMI anymore. The browser displays  an error as if zope is not
> started at all.
> I am a newbie in both Linux and Zope, so please can anyone pass me some
> tips
> on how to check what is causing the problem and how to solve it?
> I searched the internet for two weeks now, but there is no hint about the
> problem!!
Possibly your Zope doesn't start because of some errors.
Take a look at log/event.log to see if there are any errors at the
end of this file.

Also try to run: .../zopectl fg
This command starts zope but stays attached to the console and displays
startup errors etc.

If you find any errors post full traceback here.

-- 
Maciej Wisniowski

___
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 )