Hi,
I've deployed my application in a server, in the meantime I also changed
the application name.
To do so I installed web2py, then created a new application using the
admin interface and then I copied the content of the directory of the
project in the newly created directory.
For the db I did a dump and restored on the new server.
Everything work smooth except the scheduler. When a worker picks up a
job it dies with this error:
Traceback (most recent call last):
File "/var/www/milo-reloaded/web2py/gluon/scheduler.py", line 203, in
executor
_env = env(a=a,c=c,import_models=True)
File "/var/www/milo-reloaded/web2py/gluon/shell.py", line 127, in env
environment = build_environment(request, response, session)
File "/var/www/milo-reloaded/web2py/gluon/compileapp.py", line 375, in
build_environment
t = environment['T'] = translator(request)
File "/var/www/milo-reloaded/web2py/gluon/languages.py", line 437, in
__init__
self.set_current_languages()
File "/var/www/milo-reloaded/web2py/gluon/languages.py", line 492, in
set_current_languages
pl_info = self.get_possible_languages_info('default')
File "/var/www/milo-reloaded/web2py/gluon/languages.py", line 471, in
get_possible_languages_info
info = read_possible_languages(self.folder)
File "/var/www/milo-reloaded/web2py/gluon/languages.py", line 250, in
read_possible_languages
lambda: read_possible_languages_aux(langdir))
File "/var/www/milo-reloaded/web2py/gluon/cfs.py", line 40, in getcfs
return filter() if callable(filter) else ''
File "/var/www/milo-reloaded/web2py/gluon/languages.py", line 250, in
<lambda>
lambda: read_possible_languages_aux(langdir))
File "/var/www/milo-reloaded/web2py/gluon/languages.py", line 215, in
read_possible_languages_aux
flist = oslistdir(langdir)
OSError: [Errno 2] No such file or directory: 'applications/milo/languages'
the application was named milo, now it's named movish. Any clue?
I'm fixing it easily with a syslink for now.
--
Vincenzo Ampolo
http://vincenzo-ampolo.net
http://goshawknest.wordpress.com
--