[Pkg-zope-developers] Bug#313621: Minor error in script mkzope2.7instance

Dmitry E. Oboukhov "Dmitry E. Oboukhov" <dimka@uvw.ru>, 313621@bugs.debian.org
Tue, 14 Jun 2005 21:17:38 +0400


Package: zope2.7
Severity: normal


uvw.ru:[/home/dimka]# umask
027

uvw.ru:[/home/dimka]# mkzope2.7instance    
========== List of existing instances in /var/lib/zope2.7/instance
Instance	Type	Data.fs	EmergencyUser
inst1		>= 2.7	yes	yes, (in 'inituser', for >=2.7)

Quick reminder:
To run zope on an instance of type >=2.7 , use
  /var/lib/zope2.7/instance/<instance>/bin/runzope
To start the server on the instance, use
 ' /var/lib/zope2.7/instance/<instance>/bin/zopectl start '

You may now create another instance
Hit any key to go on, ctrl-c to stop

Please choose a directory in which you'd like to install
Zope "instance home" files such as database files, configuration
files, etc.

Directory: /tmp/demo-mkzope2.7instance
Please choose a username and password for the initial user.
These will be the credentials you use to initially manage
your new Zope instance.

Username: dimka
Password: 
Verify password: 

You may want to customize
/var/lib/zope2.7/instance/<instance>/etc/zope.conf
-> You must at least customize the ports for http and ftp servers!
If you don't change the default values, all zope servers will try to
bind the
 same TCP ports and this will not work.



uvw.ru:[/home/dimka]# ls -l /tmp|grep demo-mkzope
drwxr-x---  9 root root 4096 2005-06-14 21:07 demo-mkzope2.7instance
^^^^^^^^^
  Problem! See also:

uvw.ru:[/home/dimka]# /tmp/demo-mkzope2.7instance/bin/runzope
------
2005-06-14T21:10:54 INFO(0) ZServer HTTP server started at Tue Jun 14 21:10:54 2005
	Hostname: uvw.ru
	Port: 9673
------
2005-06-14T21:10:54 INFO(0) ZServer FTP server started at Tue Jun 14 21:10:54 2005
	Hostname: uvw.ru
	Port: 8021
------
2005-06-14T21:10:54 INFO(0) Zope Set effective user to "zope"
Traceback (most recent call last):
  File "/usr/lib/zope2.7/lib/python/Zope/Startup/run.py", line 50, in ? run()
  File "/usr/lib/zope2.7/lib/python/Zope/Startup/run.py", line 19, in run start_zope(opts.configroot)
  File "/usr/lib/zope2.7/lib/python/Zope/Startup/__init__.py", line 52, in start_zope starter.startZope()
  File "/usr/lib/zope2.7/lib/python/Zope/Startup/__init__.py", line 231, in startZope Zope.startup()
  File "/usr/lib/zope2.7/lib/python/Zope/__init__.py", line 47, in startup _startup()
  File "/usr/lib/zope2.7/lib/python/Zope/App/startup.py", line 45, in startup OFS.Application.import_products()
  File "/usr/lib/zope2.7/lib/python/OFS/Application.py", line 639, in import_products products = get_products()
  File "/usr/lib/zope2.7/lib/python/OFS/Application.py", line 616, in get_products product_names=os.listdir(product_dir)
OSError: [Errno 13] Permission denied: '/tmp/demo-mkzope2.7instance/Products'
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Problem!

Sorry, my bad english!




-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.11-1-686
Locale: LANG=ru_RU.KOI8-R, LC_CTYPE=ru_RU.KOI8-R (charmap=KOI8-R)