cant add new sets #34

Closed
opened 2025-01-02 22:53:42 +01:00 by csuno · 4 comments

like on Issue #33... i cant add new sets.

I've used the unraid docker app. Created an .env and app.db. Gave all the folders... but every time i want to add an new set i cot these logs:

File "/usr/local/lib/python3.13/threading.py", line 1041, in _bootstrap_inner self.run() ~~~~~~~~^^ File "/usr/local/lib/python3.13/threading.py", line 992, in run self._target(*self._args, **self._kwargs) ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/app.py", line 197, in new_set response = json.loads(rebrick.lego.get_set(set_num).read()) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/rebrick/api_lego.py", line 675, in get_set return request(path, parameters) File "/usr/local/lib/python3.13/site-packages/rebrick/request.py", line 68, in request handle = urllib.request.urlopen(url, context=_SSL_CONTEXT) File "/usr/local/lib/python3.13/urllib/request.py", line 189, in urlopen return opener.open(url, data, timeout) ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/urllib/request.py", line 495, in open response = meth(req, response) File "/usr/local/lib/python3.13/urllib/request.py", line 604, in http_response response = self.parent.error( 'http', request, response, code, msg, hdrs) File "/usr/local/lib/python3.13/urllib/request.py", line 533, in error return self._call_chain(*args) ~~~~~~~~~~~~~~~~^^^^^^^ File "/usr/local/lib/python3.13/urllib/request.py", line 466, in _call_chain result = func(*args) File "/usr/local/lib/python3.13/urllib/request.py", line 613, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 401: Unauthorized

like on Issue #33... i cant add new sets. I've used the unraid docker app. Created an .env and app.db. Gave all the folders... but every time i want to add an new set i cot these logs: ` File "/usr/local/lib/python3.13/threading.py", line 1041, in _bootstrap_inner self.run() ~~~~~~~~^^ File "/usr/local/lib/python3.13/threading.py", line 992, in run self._target(*self._args, **self._kwargs) ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/app.py", line 197, in new_set response = json.loads(rebrick.lego.get_set(set_num).read()) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/rebrick/api_lego.py", line 675, in get_set return request(path, parameters) File "/usr/local/lib/python3.13/site-packages/rebrick/request.py", line 68, in request handle = urllib.request.urlopen(url, context=_SSL_CONTEXT) File "/usr/local/lib/python3.13/urllib/request.py", line 189, in urlopen return opener.open(url, data, timeout) ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/urllib/request.py", line 495, in open response = meth(req, response) File "/usr/local/lib/python3.13/urllib/request.py", line 604, in http_response response = self.parent.error( 'http', request, response, code, msg, hdrs) File "/usr/local/lib/python3.13/urllib/request.py", line 533, in error return self._call_chain(*args) ~~~~~~~~~~~~~~~~^^^^^^^ File "/usr/local/lib/python3.13/urllib/request.py", line 466, in _call_chain result = func(*args) File "/usr/local/lib/python3.13/urllib/request.py", line 613, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 401: Unauthorized `

Your issue is likely wrong environment variables in the docker compose file. Look at https://gitea.baerentsen.space/FrederikBaerentsen/BrickTracker#setup-using-pre-build-docker-image.

If using the pre-build image, you need to have use docker environment variables and not an .env file.

I don't use unraid and i did not create the unraid template.

Your issue is likely wrong environment variables in the docker compose file. Look at https://gitea.baerentsen.space/FrederikBaerentsen/BrickTracker#setup-using-pre-build-docker-image. If using the pre-build image, you need to have use docker environment variables and not an `.env` file. I don't use unraid and i did not create the unraid template.

You have to add variables like this

image

You have to add variables like this ![image](/attachments/a6e6f6d8-3595-4982-9512-107557838e03)
108 KiB

@csuno Try using @bckthms setup. I am sorry, but I can't help with unraid.

@csuno Try using @bckthms setup. I am sorry, but I can't help with unraid.
Author

Thanks alot. Than the UNRAID Template was not prepared, good enough. ;)
I've added this manualy... and now everything works!

THANKS!

Thanks alot. Than the UNRAID Template was not prepared, good enough. ;) I've added this manualy... and now everything works! THANKS!
FrederikBaerentsen added the
Unraid
label 2025-01-03 19:01:51 +01:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: FrederikBaerentsen/BrickTracker#34
No description provided.