linuxserver / docker-netbox

GNU General Public License v3.0
84 stars 17 forks source link

Curly Brace in configuration.py #36

Closed NOMADEDCODER closed 1 year ago

NOMADEDCODER commented 2 years ago

linuxserver.io


Expected Behavior

Program Run

Current Behavior

Local Container keeps running but Netbox doesnt run

Steps to Reproduce

1.Fresh install on unraid

Docker logs

SyntaxError: unmatched '}' unable to load app 0 (mountpoint='') (callable not found or import error) no app loaded. going in full dynamic mode uWSGI is running in multiple interpreter mode spawned uWSGI master process (pid: 324) spawned uWSGI worker 1 (pid: 341, cores: 1) [uwsgi-daemons] spawning "/usr/bin/python3 ./manage.py rqworker" (uid: 99 gid: 100) Traceback (most recent call last): File "/app/netbox/netbox/./manage.py", line 10, in execute_from_command_line(sys.argv) File "/usr/lib/python3.9/site-packages/django/core/management/init.py", line 446, in execute_from_command_line utility.execute() File "/usr/lib/python3.9/site-packages/django/core/management/init.py", line 386, in execute settings.INSTALLED_APPS File "/usr/lib/python3.9/site-packages/django/conf/init.py", line 87, in getattr self._setup(name) File "/usr/lib/python3.9/site-packages/django/conf/init.py", line 74, in _setup self._wrapped = Settings(settings_module) File "/usr/lib/python3.9/site-packages/django/conf/init.py", line 183, in init mod = importlib.import_module(self.SETTINGS_MODULE) File "/usr/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 986, in _find_and_load_unlocked File "", line 680, in _load_unlocked File "", line 850, in exec_module File "", line 228, in _call_with_frames_removed File "/app/netbox/netbox/netbox/settings.py", line 55, in configuration = importlib.import_module(config_path) File "/usr/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 986, in _find_and_load_unlocked File "", line 680, in _load_unlocked File "", line 846, in exec_module File "", line 983, in get_code File "", line 913, in source_to_code File "", line 228, in _call_with_frames_removed File "/app/netbox/netbox/netbox/configuration.py", line 246 REMOTE_AUTH_DEFAULT_PERMISSIONS = REMOTE_AUTH_DEFAULT_PERMISSIONS} ^ SyntaxError: unmatched '}' daemon "/usr/bin/python3 ./manage.py rqworker" (pid: 342) annihilated

github-actions[bot] commented 2 years ago

Thanks for opening your first issue here! Be sure to follow the bug or feature issue templates!

t46g commented 2 years ago

Had the same problem today, with a fresh install on unraid.

github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

trollmehard commented 2 years ago

I've still the same issue on unraid with a fresh install. I tried to set REMOTE_AUTH_DEFAULT_PERMISSIONS to "{" which didn't help. Is there any workaround?

uWSGI is running in multiple interpreter mode spawned uWSGI master process (pid: 137) spawned uWSGI worker 1 (pid: 145, cores: 1) [uwsgi-daemons] spawning "/usr/bin/python3 ./manage.py rqworker" (uid: 99 gid: 100) Traceback (most recent call last): File "/app/netbox/netbox/./manage.py", line 10, in execute_from_command_line(sys.argv) File "/usr/lib/python3.9/site-packages/django/core/management/init.py", line 446, in execute_from_command_line utility.execute() File "/usr/lib/python3.9/site-packages/django/core/management/init.py", line 386, in execute settings.INSTALLED_APPS File "/usr/lib/python3.9/site-packages/django/conf/init.py", line 87, in getattr self._setup(name) File "/usr/lib/python3.9/site-packages/django/conf/init.py", line 74, in _setup self._wrapped = Settings(settings_module) File "/usr/lib/python3.9/site-packages/django/conf/init.py", line 183, in init mod = importlib.import_module(self.SETTINGS_MODULE) File "/usr/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 986, in _find_and_load_unlocked File "", line 680, in _load_unlocked File "", line 850, in exec_module File "", line 228, in _call_with_frames_removed File "/app/netbox/netbox/netbox/settings.py", line 55, in configuration = importlib.import_module(config_path) File "/usr/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 986, in _find_and_load_unlocked File "", line 680, in _load_unlocked File "", line 846, in exec_module File "", line 983, in get_code File "", line 913, in source_to_code File "", line 228, in _call_with_frames_removed File "/app/netbox/netbox/netbox/configuration.py", line 246 REMOTE_AUTH_DEFAULT_PERMISSIONS = {}} ^ SyntaxError: unmatched '}' daemon "/usr/bin/python3 ./manage.py rqworker" (pid: 146) annihilated

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

ready-1 commented 1 year ago

Same issue on a fresh install.

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

NathanWarrick commented 1 year ago

I'm getting the same issue!!! This is so frustrating!!

Qaezar commented 1 year ago

Hi there !

I also had the same error and i maybe have a beginning of something :

In fact, the file configuration.py (in my case at least), do not update or keep the right info in it So, i opened the unraid's terminal and gone to /mnt/user/appdata/netbox There lies the configuration.py

Edited it and verified all the variables (you can remove the unneeded curly brace here)

In my case i had to fix redis TASKS & CACHING variables (host, pwd..) ; remove the curly brace and set : BASE_PATH = '' (this, thanks to https://github.com/netbox-community/netbox/discussions/11002#discussioncomment-4231712 ) Plus correct some false into False and add ' characters at the beginning and ending of the REMOTE_AUTH_DEFAULT_GROUPS variable

After that, restarted Netbox docker and bim, welcome WebUI

BUT i'm now in another problem, i can't login :/ The container doesn't seem to take in count the superuser id&pwd fields... so it's throwing an error about that :/

image

If someone find how to fix this, please let me now ;) P.-S.: i tried to add SUPERUSER_EMAIL = & SUPERUSER_PASSWORD = in this configuration.py but no luck, it seems to be managed by app/netbox/netbox/manage.py but i don't know how to use it ATM

EDIT : Solved ! username is admin, pwd is what you wrote in SUPERUSER_PASSWORD = variable !

Have fun with Netbox ;)

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 1 year ago

This issue is locked due to inactivity