mirror of
https://github.com/amidaware/tacticalrmm.git
synced 2026-04-26 15:05:57 +03:00
[GH-ISSUE #447] SyntaxError: EOL while scanning string literal - MESH_TOKEN_KEY = 'Resetting power events indexes... #2219
Labels
No labels
In Process
bug
bug
dev-triage
documentation
duplicate
enhancement
fixed
good first issue
help wanted
integration
invalid
pull-request
question
requires agent update
security
ui tweak
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tacticalrmm#2219
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @WouterLS on GitHub (Apr 28, 2021).
Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/447
Server Info (please complete the following information):
OS Ubuntu
Installation Method:
Docker
Agent Info (please complete the following information):
Describe the bug
It seems the MESH_TOKEY_KEY isn't getting filled with the right data.
To Reproduce
https://github.com/wh1te909/tacticalrmm/tree/develop/docker
Expected behavior
should be able to log in into tacticalRMM after a clean docker install
Screenshots
SyntaxError: EOL while scanning string literal
cannot delete non-empty directory: tmp
cannot delete non-empty directory: certs
Traceback (most recent call last):
File "/opt/tactical/api/manage.py", line 21, in
main()
File "/opt/tactical/api/manage.py", line 17, in main
execute_from_command_line(sys.argv)
File "/opt/venv/lib/python3.9/site-packages/django/core/management/init.py", line 419, in execute_from_command_line
utility.execute()
File "/opt/venv/lib/python3.9/site-packages/django/core/management/init.py", line 363, in execute
settings.INSTALLED_APPS
File "/opt/venv/lib/python3.9/site-packages/django/conf/init.py", line 82, in getattr
self._setup(name)
File "/opt/venv/lib/python3.9/site-packages/django/conf/init.py", line 69, in _setup
self._wrapped = Settings(settings_module)
File "/opt/venv/lib/python3.9/site-packages/django/conf/init.py", line 170, in init
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/local/lib/python3.9/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 972, in _find_and_load_unlocked
File "", line 228, in _call_with_frames_removed
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "", line 790, in exec_module
File "", line 228, in _call_with_frames_removed
File "/opt/tactical/api/tacticalrmm/init.py", line 3, in
from .celery import app as celery_app
File "/opt/tactical/api/tacticalrmm/celery.py", line 13, in
backend="redis://" + settings.REDIS_HOST,
File "/opt/venv/lib/python3.9/site-packages/django/conf/init.py", line 82, in getattr
self._setup(name)
File "/opt/venv/lib/python3.9/site-packages/django/conf/init.py", line 69, in _setup
self._wrapped = Settings(settings_module)
File "/opt/venv/lib/python3.9/site-packages/django/conf/init.py", line 170, in init
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/local/lib/python3.9/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/opt/tactical/api/tacticalrmm/settings.py", line 46, in
from .local_settings import *
File "/opt/tactical/api/tacticalrmm/local_settings.py", line 54
MESH_TOKEN_KEY = 'Resetting power events indexes...
^
SyntaxError: EOL while scanning string literal
@sadnub commented on GitHub (Apr 29, 2021):
Can you send the output of this command
That is where the mesh token is saved and is populated into the local_settings.py file
@sadnub commented on GitHub (Apr 29, 2021):
Mesh might have also outputed some additional text when the -logintoken command was running. You can also delete that mesh_token file and it will regenerate a key.
@WouterLS commented on GitHub (Apr 29, 2021):
Yeah,
something like that. there were 2 lines in front saying "Resetting power events indexes...
and resetting something else"
I've manually edited the file to just contain the key and restarted the trmm-init container and after that it was fine.