I have an python error when I start te service for omero web (version 5.3) :
- Code: Select all
-bash-4.2$ /home/omero/omerowebvenv/bin/python /home/omero/OMERO.py/bin/omero web start
Post-processed 'omeroweb.viewer.min.css' as 'omeroweb.viewer.min.css'
Post-processed 'omeroweb.viewer.min.js' as 'omeroweb.viewer.min.js'
0 static files copied to '/home/omero/OMERO.py/lib/python/omeroweb/static', 611 unmodified, 2 post-processed.
Clearing expired sessions. This may take some time... [OK]
Starting OMERO.web... Traceback (most recent call last):
File "/home/omero/OMERO.py/bin/omero", line 125, in <module>
rv = omero.cli.argv()
File "/home/omero/OMERO.py/lib/python/omero/cli.py", line 1507, in argv
cli.invoke(args[1:])
File "/home/omero/OMERO.py/lib/python/omero/cli.py", line 992, in invoke
stop = self.onecmd(line, previous_args)
File "/home/omero/OMERO.py/lib/python/omero/cli.py", line 1069, in onecmd
self.execute(line, previous_args)
File "/home/omero/OMERO.py/lib/python/omero/cli.py", line 1151, in execute
args.func(args)
File "/home/omero/OMERO.py/lib/python/omero/install/windows_warning.py", line 26, in wrapper
return func(self, *args, **kwargs)
File "/home/omero/OMERO.py/lib/python/omero/plugins/web.py", line 80, in wrapper
return func(self, *args, **kwargs)
File "/home/omero/OMERO.py/lib/python/omero/plugins/web.py", line 588, in start
rv = self.ctx.popen(args=runserver, cwd=location) # popen
File "/home/omero/OMERO.py/lib/python/omero/cli.py", line 1242, in popen
stdout=stdout, stderr=stderr)
File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__
errread, errwrite)
File "/usr/lib64/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
And it seems that in the config file there is an error in the path, see inbold:
- Code: Select all
[Unit]
Description=OMERO.web
# Not mandatory, Nginx may be running on a different server
Requires=nginx.service
After=network.service
[Service]
User=omero
Type=forking
PIDFile=/home/omero/OMERO.py/var/django.pid
Restart=no
RestartSec=10
Environment="PATH=/home/omero/omerowebvenv/[b]venv[/b]/bin:/bin:/usr/bin" "WEBBINDIR=/home/omero/OMERO.py/bin"
ExecStart=/home/omero/omerowebvenv/[b]venv[/b]/python $WEBBINDIR/omero web start
ExecStop=/home/omero/omerowebvenv/[b]venv[/b]/python $WEBBINDIR/omero web stop
[Install]
WantedBy=multi-user.target
Philippe