[Gitec] acesso http://localhost

Paulo Fernandes de Souza Jr. paulofernandes at interlegis.gov.br
Mon Sep 20 09:51:14 BRT 2004


Juliano, 

  O problema está nas permissões do Linux, e não no ZOPE. Você está
chamando o runzope como root, ok. Isto só deve ser feito se você quiser
rodar o ZOPE em uma porta baixa, como a 80 por exemplo. Qual o usuário
que está configurado para suid no zope.conf (diretiva effective-user)?
Este usuário tem as permissões para ler e gravar no arquivo Data.fs.lock
e em todo diretório var?

[]s,

Paulo Fernandes.
Brasília - Interlegis.


Em Sex, 2004-09-17 às 17:54, Luciano De Fázio escreveu:
> Juliano,
> 
> Parece coisa estranha está acontecendo.
> 
> Alguma idéia, Paulo ?
> 
> Luciano
> 
> 
> Juliano Rafael Bringer escreveu:
> 
> >[root at interlegis bin]# ./runzope
> >------
> >2004-09-17T17:29:18 INFO(0) ZServer HTTP server started at Fri Sep 17
> >17:29:18 2004
> >        Hostname: interlegis.localdomain
> >        Port: 8080
> >------
> >2004-09-17T17:29:18 INFO(0) Zope Set effective user to "zopesapl"
> >------
> >2004-09-17T17:29:22 BLATHER(-100) NuxDocument PortalStorage not found,
> >support disabled
> >/usr/local/interlegis/Zope-2.7.0-sapl/Products/ZMySQLDA/db.py:89:
> >RuntimeWarning: Python C API version mismatch for module _mysql: This
> >Python has API version 1012, module _mysql has version 1010.
> >  import _mysql
> >Traceback (most recent call last):
> >  File
> >"/usr/local/interlegis/Zope-2.7.0/lib/python/Zope/Startup/run.py",
> >line 49, in ?
> >    run()
> >  File
> >"/usr/local/interlegis/Zope-2.7.0/lib/python/Zope/Startup/run.py",
> >line 19, in run
> >    start_zope(opts.configroot)
> >  File
> >"/usr/local/interlegis/Zope-2.7.0/lib/python/Zope/Startup/__init__.py",
> >line 51, in start_zope
> >    starter.startZope()
> >  File
> >"/usr/local/interlegis/Zope-2.7.0/lib/python/Zope/Startup/__init__.py",
> >line 230, in startZope
> >    Zope.startup()
> >  File "/usr/local/interlegis/Zope-2.7.0/lib/python/Zope/__init__.py",
> >line 46, in startup
> >    _startup()
> >  File
> >"/usr/local/interlegis/Zope-2.7.0/lib/python/Zope/App/startup.py",
> >line 54, in startup
> >    DB = configuration.dbtab.getDatabase('/', is_root=1)
> >  File "/usr/local/interlegis/Zope-2.7.0/lib/python/DBTab/DBTab.py",
> >line 96, in getDatabase
> >    db = self._createDatabase(name, is_root)
> >  File "/usr/local/interlegis/Zope-2.7.0/lib/python/DBTab/DBTab.py",
> >line 113, in _createDatabase
> >    db = factory.open()
> >  File
> >"/usr/local/interlegis/Zope-2.7.0/lib/python/Zope/Startup/datatypes.py",
> >line 172, in open
> >    DB = self.createDB()
> >  File
> >"/usr/local/interlegis/Zope-2.7.0/lib/python/Zope/Startup/datatypes.py",
> >line 169, in createDB
> >    return ZODBDatabase.open(self)
> >  File "/usr/local/interlegis/Zope-2.7.0/lib/python/ZODB/config.py",
> >line 97, in open
> >    return ZODB.DB(section.storage.open(),
> >  File "/usr/local/interlegis/Zope-2.7.0/lib/python/ZODB/config.py",
> >line 128, in open
> >    quota=self.config.quota)
> >  File
> >"/usr/local/interlegis/Zope-2.7.0/lib/python/ZODB/FileStorage.py",
> >line 232, in __init__
> >    self._lock_file = LockFile(file_name + '.lock')
> >  File
> >"/usr/local/interlegis/Zope-2.7.0/lib/python/ZODB/lock_file.py", line
> >57, in __init__
> >    self._fp = open(path, 'r+')
> >IOError: [Errno 13] Permissão negada:
> >'/usr/local/interlegis/Zope-2.7.0-sapl/var/Data.fs.lock'
> >[root at interlegis bin]#
> >
> >
> >
> >Luciano,
> >
> >Foi isso q apareceu depois de tentar inicializar na mão com o comando
> >./runzope dentro do caminho ao qual vc indicou.
> >
> >Abraços,
> >
> >Juliano Bringer
> >
> >  
> >
> 
> _______________________________________________
> Gitec mailing list
> Gitec at listas.interlegis.gov.br
> http://listas.interlegis.gov.br/mailman/listinfo/gitec



Mais detalhes sobre a lista de discussão Gitec