πŸ‡ΊπŸ‡¦ We stand with Ukraine! πŸ‡ΊπŸ‡¦

Problem octoprint wont restart in normal mode, only safe

What is the problem?

my octoprint wont restart in normal mode after a lang install
only safe mode

What did you already try to solve it?

tried to delete lang pack.. no solved

Have you tried running in safe mode?

yes in safe mode it work

Systeminfo Bundle

octoprint-systeminfo-20220507193219.zip (1.3 MB)

Additional information about your setup

octoprint 1.8.0rc5 on raspberry

this is the error log:

2022-05-07 19:19:18,786 - octoprint.server.heartbeat - INFO - Starting server heartbeat, 900.0s interval
2022-05-07 19:19:18,793 - octoprint.cli.server - ERROR - Uncaught exception
Traceback (most recent call last):
File "/home/pi/oprint/bin/octoprint", line 8, in
sys.exit(main())
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/init.py", line 936, in main
octo(args=args, prog_name="octoprint", auto_envvar_prefix="OCTOPRINT")
File "/home/pi/oprint/lib/python3.7/site-packages/click/core.py", line 1130, in call
return self.main(*args, **kwargs)
File "/home/pi/oprint/lib/python3.7/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/home/pi/oprint/lib/python3.7/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/pi/oprint/lib/python3.7/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/pi/oprint/lib/python3.7/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/home/pi/oprint/lib/python3.7/site-packages/click/decorators.py", line 26, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/cli/server.py", line 330, in serve_command
disable_color=no_color,
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/cli/server.py", line 163, in run_server
octoprint_server.run()
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/server/init.py", line 358, in run
self._setup_i18n(app)
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/server/init.py", line 1454, in _setup_i18n
LOCALES = babel.list_translations()
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/server/util/flask.py", line 86, in fixed_list_translations
result += list_translations(dir)
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/server/util/flask.py", line 70, in list_translations
result.append(Locale.parse(entry.name))
File "/home/pi/oprint/lib/python3.7/site-packages/babel/core.py", line 268, in parse
parts = parse_locale(identifier, sep=sep)
File "/home/pi/oprint/lib/python3.7/site-packages/babel/core.py", line 1094, in parse_locale
raise ValueError('expected only letters, got %r' % lang)
ValueError: expected only letters, got 'it-1'

I got solution!!!

pi@OctoPi:~/.octoprint/translations $ ls
it-1 __MACOSX

simply remove dir it-1

1 Like