[genropy] Re: Problema server
- From: Alessandro Tufi <alessandro.tufi@xxxxxxxxx>
- To: genropy@xxxxxxxxxxxxx
- Date: Thu, 9 Feb 2017 11:08:15 +0100
Il 09/02/17 10:41, Luigi Renna ha scritto:
Ho rifatto l'installazione ma continuo a non potermi collegare.
Io ho un problema ripetibile e non documentato: ad ogni istallazione
pulita il gnrdaemon non riesce a partire con uwsgi.
Aggiungo "logto = /var/log/uwsgi/gnrdaemon.log " nel suo file di
configurazione, così vedo il problema:
[uwsgi-daemons] respawning "gnrdaemon" (uid: 0 gid: 0)
Traceback (most recent call last):
File "/usr/local/bin/gnrdaemon", line 6, in <module>
exec(compile(open(__file__).read(), __file__, 'exec'))
File "/home/genro/prj/genropy/scripts/gnrdaemon", line 66, in <module>
server.start(use_environment=True,**options)
File "/home/genro/prj/genropy/gnrpy/gnr/web/gnrdaemonhandler.py",
line 106, in start
options = getFullOptions(options=kwargs)
File "/home/genro/prj/genropy/gnrpy/gnr/web/gnrdaemonhandler.py",
line 39, in getFullOptions
env_options = Bag(expandpath(enviroment_path)).getAttr('gnrdaemon')
File "/home/genro/prj/genropy/gnrpy/gnr/core/gnrbag.py", line 432, in
__init__
self.fillFrom(source)
File "/home/genro/prj/genropy/gnrpy/gnr/core/gnrbag.py", line 1847,
in fillFrom
b = self._fromSource(*self._sourcePrepare(source))
File "/home/genro/prj/genropy/gnrpy/gnr/core/gnrbag.py", line 1891,
in _fromSource
raise BagException('invalid source: %s' % source)
gnr.core.gnrbag.BagException: !!Error code GNR-001 : invalid source:
/etc/gnr/environment.xml.
In pratica non trova la configurazione.
Ciò ha senso: la configurazione è sotto "/home/genro/.gnr/...", ma lui
parte come root ma "/root/.gnr/.." non esiste (gli serve davvero la
configurazione?)
Ho risolto temporaneamente copiando "/home/genro/.gnr/*" sotto "/etc/gnr/".
Probabilmente è meglio far partire il suo emperor come utente genro ,
come diceva ieri Michele.
Ale
Other related posts: