it seems a "bug" within languages, not scheduler. However - just to be sure - when you restored the db, if there was any scheduled_task there? If there was, the column "application_name" of the table scheduler_task needs to be updated to the new name.
On Thursday, September 27, 2012 12:08:59 AM UTC+2, Vincenzo Ampolo wrote: > > 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 > --