Closed bpivk closed 1 year ago
I've just started a container using the CA app and I cant reproduce,
You have 97 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): account, admin, app, auth, channels_presence, contenttypes, sessions, sites, socialaccount. Run 'python manage.py migrate' to apply them.
This is done in the dockerfile (https://github.com/imagegenius/docker-obico/blob/main/Dockerfile#L97-L98), it shouldn't be saying that.
can you edit the unraid template, just change anything so the apply button appears, (just remove the port and add it back), click apply and copy the command execution
bit, should look something like:
docker run
-d
--name='Obico'
--net='br0.2'
--ip='192.168.2.5'
-e TZ="Australia/Sydney"
-e HOST_OS="Unraid"
-e HOST_HOSTNAME="Discovery"
-e HOST_CONTAINERNAME="Obico"
-e 'TCP_PORT_3334'='3334'
-e 'PUID'='99'
-e 'PGID'='100'
-e 'UMASK'='022'
-l net.unraid.docker.managed=dockerman
-l net.unraid.docker.webui='http://[IP]:[PORT:3334]'
-l net.unraid.docker.icon='https://raw.githubusercontent.com/imagegenius/docker-templates/main/imagegenius/img/obico.png'
-v '/mnt/user/appdata/obico':'/config':'rw' 'ghcr.io/imagegenius/obico:latest'
The command finished successfully!
docker run -d --name='obico' --net='docker' -e TZ="Europe/Budapest" -e HOST_OS="Unraid" -e HOST_HOSTNAME="Tower" -e HOST_CONTAINERNAME="obico" -e 'PUID'='99' -e 'PGID'='100' -e 'UMASK'='022' -l net.unraid.docker.managed=dockerman -l net.unraid.docker.webui='http://[IP]:[PORT:3334]' -l net.unraid.docker.icon='https://raw.githubusercontent.com/imagegenius/docker-templates/main/imagegenius/img/obico.png' -p '3335:3335/tcp' -v '/mnt/user/appdata/obico':'/config':'rw' 'ghcr.io/imagegenius/obico' 9a8d5a0a2833ca313986b34b92d82958e711e4f04d1c0769b19cf438bfc10635
The command finished successfully!
can you also paste the entire output of docker logs obico
please.
[migrations] started [migrations] no migrations found
_ ____ | |||||||||||
'_ | | / ` |/ ` | _ / | |||||||||
_ | (_ | (_ | / / | ||||||||
_ | _ | __, | _, | _,/___ | |||||||
__/ | |||||||||||
___/ |
[custom-init] No custom files found, skipping... [ig-init] done. [2023-01-23 09:46:30 +0100] [157] [INFO] Starting gunicorn 19.9.0 [2023-01-23 09:46:30 +0100] [157] [INFO] Listening at: http://0.0.0.0:3333 (157) [2023-01-23 09:46:30 +0100] [157] [INFO] Using worker: sync [2023-01-23 09:46:30 +0100] [208] [INFO] Booting worker with pid: 208 layer filters size input output 0 conv 32 3 x 3 / 1 416 x 416 x 3 -> 416 x 416 x 32 0.299 BF 1 max 2 x 2 / 2 416 x 416 x 32 -> 208 x 208 x 32 0.006 BF 2 conv 64 3 x 3 / 1 208 x 208 x 32 -> 208 x 208 x 64 1.595 BF 3 max 2 x 2 / 2 208 x 208 x 64 -> 104 x 104 x 64 0.003 BF 4 conv 128 3 x 3 / 1 104 x 104 x 64 -> 104 x 104 x 128 1.595 BF 5 conv 64 1 x 1 / 1 104 x 104 x 128 -> 104 x 104 x 64 0.177 BF 6 conv 128 3 x 3 / 1 104 x 104 x 64 -> 104 x 104 x 128 1.595 BF 7 max 2 x 2 / 2 104 x 104 x 128 -> 52 x 52 x 128 0.001 BF 8 conv 256 3 x 3 / 1 52 x 52 x 128 -> 52 x 52 x 256 1.595 BF 9 conv 128 1 x 1 / 1 52 x 52 x 256 -> 52 x 52 x 128 0.177 BF 10 conv 256 3 x 3 / 1 52 x 52 x 128 -> 52 x 52 x 256 1.595 BF 11 max 2 x 2 / 2 52 x 52 x 256 -> 26 x 26 x 256 0.001 BF 12 conv 512 3 x 3 / 1 26 x 26 x 256 -> 26 x 26 x 512 1.595 BF 13 conv 256 1 x 1 / 1 26 x 26 x 512 -> 26 x 26 x 256 0.177 BF 14 conv 512 3 x 3 / 1 26 x 26 x 256 -> 26 x 26 x 512 1.595 BF 15 conv 256 1 x 1 / 1 26 x 26 x 512 -> 26 x 26 x 256 0.177 BF 16 conv 512 3 x 3 / 1 26 x 26 x 256 -> 26 x 26 x 512 1.595 BF 17 max 2 x 2 / 2 26 x 26 x 512 -> 13 x 13 x 512 0.000 BF 18 conv 1024 3 x 3 / 1 13 x 13 x 512 -> 13 x 13 x1024 1.595 BF 19 conv 512 1 x 1 / 1 13 x 13 x1024 -> 13 x 13 x 512 0.177 BF 20 conv 1024 3 x 3 / 1 13 x 13 x 512 -> 13 x 13 x1024 1.595 BF 21 conv 512 1 x 1 / 1 13 x 13 x1024 -> 13 x 13 x 512 0.177 BF 22 conv 1024 3 x 3 / 1 13 x 13 x 512 -> 13 x 13 x1024 1.595 BF 23 conv 1024 3 x 3 / 1 13 x 13 x1024 -> 13 x 13 x1024 3.190 BF 24 conv 1024 3 x 3 / 1 13 x 13 x1024 -> 13 x 13 x1024 3.190 BF 25 route 16 26 conv 64 1 x 1 / 1 26 x 26 x 512 -> 26 x 26 x 64 0.044 BF 27 reorg / 2 26 x 26 x 64 -> 13 x 13 x 256 28 route 27 24 29 conv 1024 3 x 3 / 1 13 x 13 x1280 -> 13 x 13 x1024 3.987 BF 30 conv 30 1 x 1 / 1 13 x 13 x1024 -> 13 x 13 x 30 0.010 BF 31 detection mask_scale: Using default '1.000000' Try to load cfg: /app/obico/ml_api/model/model.cfg, weights: /app/obico/ml_api/model/model.weights, clear = 0 Total BFLOPS 29.338 Loading weights from /app/obico/ml_api/model/model.weights...Done! [2023-01-23 08:46:33,851: INFO/Beat] beat: Starting... [2023-01-23 08:46:33,989: INFO/MainProcess] Connected to redis://localhost:6379// [2023-01-23 08:46:33,997: INFO/MainProcess] mingle: searching for neighbors [2023-01-23 08:46:35,012: INFO/MainProcess] mingle: all alone [2023-01-23 08:46:35,021: INFO/MainProcess] celery@41347a19476f ready.
I have added the :latest tag and now I get a connection refused error.
in your docker run command you show the port -p '3335:3335/tcp'
, obicos port is 3334
.
is your template correct...?
Huh. Strange. I never touched it? Same error when I reinstall and reset the ports though (500).
can you check for updates, if there are none recreate the container, wait a few seconds and open the WebUI url i.e http://192.168.1.x:3334/accounts/login/
, then paste the output of docker logs obico
[migrations] started [migrations] no migrations found
_ ____ | |||||||||||
'_ | | / ` |/ ` | _ / | |||||||||
_ | (_ | (_ | / / | ||||||||
_ | _ | __, | _, | _,/___ | |||||||
__/ | |||||||||||
___/ |
[custom-init] No custom files found, skipping...
[ig-init] done.
[2023-01-23 09:54:23 +0100] [157] [INFO] Starting gunicorn 19.9.0
[2023-01-23 09:54:23 +0100] [157] [INFO] Listening at: http://0.0.0.0:3333 (157)
[2023-01-23 09:54:23 +0100] [157] [INFO] Using worker: sync
[2023-01-23 09:54:23 +0100] [208] [INFO] Booting worker with pid: 208
layer filters size input output
0 conv 32 3 x 3 / 1 416 x 416 x 3 -> 416 x 416 x 32 0.299 BF
1 max 2 x 2 / 2 416 x 416 x 32 -> 208 x 208 x 32 0.006 BF
2 conv 64 3 x 3 / 1 208 x 208 x 32 -> 208 x 208 x 64 1.595 BF
3 max 2 x 2 / 2 208 x 208 x 64 -> 104 x 104 x 64 0.003 BF
4 conv 128 3 x 3 / 1 104 x 104 x 64 -> 104 x 104 x 128 1.595 BF
5 conv 64 1 x 1 / 1 104 x 104 x 128 -> 104 x 104 x 64 0.177 BF
6 conv 128 3 x 3 / 1 104 x 104 x 64 -> 104 x 104 x 128 1.595 BF
7 max 2 x 2 / 2 104 x 104 x 128 -> 52 x 52 x 128 0.001 BF
8 conv 256 3 x 3 / 1 52 x 52 x 128 -> 52 x 52 x 256 1.595 BF
9 conv 128 1 x 1 / 1 52 x 52 x 256 -> 52 x 52 x 128 0.177 BF
10 conv 256 3 x 3 / 1 52 x 52 x 128 -> 52 x 52 x 256 1.595 BF
11 max 2 x 2 / 2 52 x 52 x 256 -> 26 x 26 x 256 0.001 BF
12 conv 512 3 x 3 / 1 26 x 26 x 256 -> 26 x 26 x 512 1.595 BF
13 conv 256 1 x 1 / 1 26 x 26 x 512 -> 26 x 26 x 256 0.177 BF
14 conv 512 3 x 3 / 1 26 x 26 x 256 -> 26 x 26 x 512 1.595 BF
15 conv 256 1 x 1 / 1 26 x 26 x 512 -> 26 x 26 x 256 0.177 BF
16 conv 512 3 x 3 / 1 26 x 26 x 256 -> 26 x 26 x 512 1.595 BF
17 max 2 x 2 / 2 26 x 26 x 512 -> 13 x 13 x 512 0.000 BF
18 conv 1024 3 x 3 / 1 13 x 13 x 512 -> 13 x 13 x1024 1.595 BF
19 conv 512 1 x 1 / 1 13 x 13 x1024 -> 13 x 13 x 512 0.177 BF
20 conv 1024 3 x 3 / 1 13 x 13 x 512 -> 13 x 13 x1024 1.595 BF
21 conv 512 1 x 1 / 1 13 x 13 x1024 -> 13 x 13 x 512 0.177 BF
22 conv 1024 3 x 3 / 1 13 x 13 x 512 -> 13 x 13 x1024 1.595 BF
23 conv 1024 3 x 3 / 1 13 x 13 x1024 -> 13 x 13 x1024 3.190 BF
24 conv 1024 3 x 3 / 1 13 x 13 x1024 -> 13 x 13 x1024 3.190 BF
25 route 16
26 conv 64 1 x 1 / 1 26 x 26 x 512 -> 26 x 26 x 64 0.044 BF
27 reorg / 2 26 x 26 x 64 -> 13 x 13 x 256
28 route 27 24
29 conv 1024 3 x 3 / 1 13 x 13 x1280 -> 13 x 13 x1024 3.987 BF
30 conv 30 1 x 1 / 1 13 x 13 x1024 -> 13 x 13 x 30 0.010 BF
31 detection
mask_scale: Using default '1.000000'
Try to load cfg: /app/obico/ml_api/model/model.cfg, weights: /app/obico/ml_api/model/model.weights, clear = 0
Total BFLOPS 29.338
Loading weights from /app/obico/ml_api/model/model.weights...Done!
[2023-01-23 08:54:27,460: INFO/Beat] beat: Starting...
[2023-01-23 08:54:27,616: INFO/MainProcess] Connected to redis://localhost:6379//
[2023-01-23 08:54:27,623: INFO/MainProcess] mingle: searching for neighbors
[2023-01-23 08:54:28,639: INFO/MainProcess] mingle: all alone
[2023-01-23 08:54:28,649: INFO/MainProcess] celery@338808302c9c ready.
[2023-01-23 09:14:27,509: INFO/Beat] Scheduler: Sending due task app.tasks.prune_channel_rooms (app.tasks.prune_channel_rooms)
[2023-01-23 09:14:27,518: INFO/Beat] Scheduler: Sending due task app.tasks.prune_channel_presence (app.tasks.prune_channel_presence)
[2023-01-23 09:14:27,519: INFO/MainProcess] Received task: app.tasks.prune_channel_rooms[93ca2987-357a-44be-ba29-8e8b2e20726e]
[2023-01-23 09:14:27,520: INFO/MainProcess] Received task: app.tasks.prune_channel_presence[394c1155-be50-4e7d-b4a6-0d8bb6366469]
[2023-01-23 09:14:27,538: ERROR/ForkPoolWorker-2] Task app.tasks.prune_channel_presence[394c1155-be50-4e7d-b4a6-0d8bb6366469] raised unexpected: OperationalError('no such table: channels_presence_room')
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/django/db/backends/utils.py", line 84, in _execute
return self.cursor.execute(sql, params)
File "/usr/local/lib/python3.7/dist-packages/django/db/backends/sqlite3/base.py", line 383, in execute
return Database.Cursor.execute(self, query, params)
sqlite3.OperationalError: no such table: channels_presence_room
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/usr/local/lib/python3.7/dist-packages/celery/app/trace.py", line 412, in trace_task R = retval = fun(*args, *kwargs) File "/usr/local/lib/python3.7/dist-packages/celery/app/trace.py", line 704, in __protected_call__ return self.run(args, **kwargs) File "/app/obico/backend/app/tasks.py", line 244, in prune_channel_presence Room.objects.prune_presences(age=120) File "/usr/local/lib/python3.7/dist-packages/channels_presence/models.py", line 59, in prune_presences for room in Room.objects.all(): File "/usr/local/lib/python3.7/dist-packages/django/db/models/query.py", line 274, in iter self._fetch_all() File "/usr/local/lib/python3.7/dist-packages/nplusone/ext/django/patch.py", line 295, in fetch_all original_fetch_all(self) File "/usr/local/lib/python3.7/dist-packages/django/db/models/query.py", line 1242, in _fetch_all self._result_cache = list(self._iterable_class(self)) File "/usr/local/lib/python3.7/dist-packages/django/db/models/query.py", line 55, in iter results = compiler.execute_sql(chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size) File "/usr/local/lib/python3.7/dist-packages/django/db/models/sql/compiler.py", line 1142, in execute_sql cursor.execute(sql, params) File "/usr/local/lib/python3.7/dist-packages/django/db/backends/utils.py", line 67, in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) File "/usr/local/lib/python3.7/dist-packages/django/db/backends/utils.py", line 76, in _execute_with_wrappers return executor(sql, params, many, context) File "/usr/local/lib/python3.7/dist-packages/django/db/backends/utils.py", line 84, in _execute return self.cursor.execute(sql, params) File "/usr/local/lib/python3.7/dist-packages/django/db/utils.py", line 89, in exit raise dj_exc_value.with_traceback(traceback) from exc_value File "/usr/local/lib/python3.7/dist-packages/django/db/backends/utils.py", line 84, in _execute return self.cursor.execute(sql, params) File "/usr/local/lib/python3.7/dist-packages/django/db/backends/sqlite3/base.py", line 383, in execute return Database.Cursor.execute(self, query, params) django.db.utils.OperationalError: no such table: channels_presence_room [2023-01-23 09:14:27,539: ERROR/ForkPoolWorker-3] Task app.tasks.prune_channel_rooms[93ca2987-357a-44be-ba29-8e8b2e20726e] raised unexpected: OperationalError('no such table: channels_presence_room') Traceback (most recent call last): File "/usr/local/lib/python3.7/dist-packages/django/db/backends/utils.py", line 84, in _execute return self.cursor.execute(sql, params) File "/usr/local/lib/python3.7/dist-packages/django/db/backends/sqlite3/base.py", line 383, in execute return Database.Cursor.execute(self, query, params) sqlite3.OperationalError: no such table: channels_presence_room
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/usr/local/lib/python3.7/dist-packages/celery/app/trace.py", line 412, in trace_task R = retval = fun(*args, *kwargs) File "/usr/local/lib/python3.7/dist-packages/celery/app/trace.py", line 704, in __protected_call__ return self.run(args, **kwargs) File "/app/obico/backend/app/tasks.py", line 249, in prune_channel_rooms Room.objects.prune_rooms() File "/usr/local/lib/python3.7/dist-packages/channels_presence/models.py", line 63, in prune_rooms Room.objects.filter(presenceisnull=True).delete() File "/usr/local/lib/python3.7/dist-packages/django/db/models/query.py", line 710, in delete collector.collect(del_query) File "/usr/local/lib/python3.7/dist-packages/django/db/models/deletion.py", line 192, in collect reverse_dependency=reverse_dependency) File "/usr/local/lib/python3.7/dist-packages/django/db/models/deletion.py", line 88, in add if not objs: File "/usr/local/lib/python3.7/dist-packages/django/db/models/query.py", line 278, in bool self._fetch_all() File "/usr/local/lib/python3.7/dist-packages/nplusone/ext/django/patch.py", line 295, in fetch_all original_fetch_all(self) File "/usr/local/lib/python3.7/dist-packages/django/db/models/query.py", line 1242, in _fetch_all self._result_cache = list(self._iterable_class(self)) File "/usr/local/lib/python3.7/dist-packages/django/db/models/query.py", line 55, in iter results = compiler.execute_sql(chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size) File "/usr/local/lib/python3.7/dist-packages/django/db/models/sql/compiler.py", line 1142, in execute_sql cursor.execute(sql, params) File "/usr/local/lib/python3.7/dist-packages/django/db/backends/utils.py", line 67, in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) File "/usr/local/lib/python3.7/dist-packages/django/db/backends/utils.py", line 76, in _execute_with_wrappers return executor(sql, params, many, context) File "/usr/local/lib/python3.7/dist-packages/django/db/backends/utils.py", line 84, in _execute return self.cursor.execute(sql, params) File "/usr/local/lib/python3.7/dist-packages/django/db/utils.py", line 89, in exit__ raise dj_exc_value.with_traceback(traceback) from exc_value File "/usr/local/lib/python3.7/dist-packages/django/db/backends/utils.py", line 84, in _execute return self.cursor.execute(sql, params) File "/usr/local/lib/python3.7/dist-packages/django/db/backends/sqlite3/base.py", line 383, in execute return Database.Cursor.execute(self, query, params) django.db.utils.OperationalError: no such table: channels_presence_room
This is a real headache!
update the container, there's a new release, stop the container, delete db.sqlite3
and start the container, do the no such table
errors continue/does the webui work?
Still error 500.
No errors though (I navigated to admin and login): root@Tower:~# docker logs obico [migrations] started [migrations] no migrations found
[custom-init] No custom files found, skipping... [ig-init] done. [2023-01-23 10:26:44 +0100] [157] [INFO] Starting gunicorn 19.9.0 [2023-01-23 10:26:44 +0100] [157] [INFO] Listening at: http://0.0.0.0:3333 (157) [2023-01-23 10:26:44 +0100] [157] [INFO] Using worker: sync [2023-01-23 10:26:44 +0100] [208] [INFO] Booting worker with pid: 208 layer filters size input output 0 conv 32 3 x 3 / 1 416 x 416 x 3 -> 416 x 416 x 32 0.299 BF 1 max 2 x 2 / 2 416 x 416 x 32 -> 208 x 208 x 32 0.006 BF 2 conv 64 3 x 3 / 1 208 x 208 x 32 -> 208 x 208 x 64 1.595 BF 3 max 2 x 2 / 2 208 x 208 x 64 -> 104 x 104 x 64 0.003 BF 4 conv 128 3 x 3 / 1 104 x 104 x 64 -> 104 x 104 x 128 1.595 BF 5 conv 64 1 x 1 / 1 104 x 104 x 128 -> 104 x 104 x 64 0.177 BF 6 conv 128 3 x 3 / 1 104 x 104 x 64 -> 104 x 104 x 128 1.595 BF 7 max 2 x 2 / 2 104 x 104 x 128 -> 52 x 52 x 128 0.001 BF 8 conv 256 3 x 3 / 1 52 x 52 x 128 -> 52 x 52 x 256 1.595 BF 9 conv 128 1 x 1 / 1 52 x 52 x 256 -> 52 x 52 x 128 0.177 BF 10 conv 256 3 x 3 / 1 52 x 52 x 128 -> 52 x 52 x 256 1.595 BF 11 max 2 x 2 / 2 52 x 52 x 256 -> 26 x 26 x 256 0.001 BF 12 conv 512 3 x 3 / 1 26 x 26 x 256 -> 26 x 26 x 512 1.595 BF 13 conv 256 1 x 1 / 1 26 x 26 x 512 -> 26 x 26 x 256 0.177 BF 14 conv 512 3 x 3 / 1 26 x 26 x 256 -> 26 x 26 x 512 1.595 BF 15 conv 256 1 x 1 / 1 26 x 26 x 512 -> 26 x 26 x 256 0.177 BF 16 conv 512 3 x 3 / 1 26 x 26 x 256 -> 26 x 26 x 512 1.595 BF 17 max 2 x 2 / 2 26 x 26 x 512 -> 13 x 13 x 512 0.000 BF 18 conv 1024 3 x 3 / 1 13 x 13 x 512 -> 13 x 13 x1024 1.595 BF 19 conv 512 1 x 1 / 1 13 x 13 x1024 -> 13 x 13 x 512 0.177 BF 20 conv 1024 3 x 3 / 1 13 x 13 x 512 -> 13 x 13 x1024 1.595 BF 21 conv 512 1 x 1 / 1 13 x 13 x1024 -> 13 x 13 x 512 0.177 BF 22 conv 1024 3 x 3 / 1 13 x 13 x 512 -> 13 x 13 x1024 1.595 BF 23 conv 1024 3 x 3 / 1 13 x 13 x1024 -> 13 x 13 x1024 3.190 BF 24 conv 1024 3 x 3 / 1 13 x 13 x1024 -> 13 x 13 x1024 3.190 BF 25 route 16 26 conv 64 1 x 1 / 1 26 x 26 x 512 -> 26 x 26 x 64 0.044 BF 27 reorg / 2 26 x 26 x 64 -> 13 x 13 x 256 28 route 27 24 29 conv 1024 3 x 3 / 1 13 x 13 x1280 -> 13 x 13 x1024 3.987 BF 30 conv 30 1 x 1 / 1 13 x 13 x1024 -> 13 x 13 x 30 0.010 BF 31 detection mask_scale: Using default '1.000000' Try to load cfg: /app/obico/ml_api/model/model.cfg, weights: /app/obico/ml_api/model/model.weights, clear = 0 Total BFLOPS 29.338 Loading weights from /app/obico/ml_api/model/model.weights...Done! [2023-01-23 09:26:48,418: INFO/MainProcess] Connected to redis://localhost:6379// [2023-01-23 09:26:48,425: INFO/MainProcess] mingle: searching for neighbors [2023-01-23 09:26:48,473: INFO/Beat] beat: Starting... [2023-01-23 09:26:49,440: INFO/MainProcess] mingle: all alone [2023-01-23 09:26:49,451: INFO/MainProcess] celery@209ef7e354ba ready.
can you post a screenshot of the webui
This is a ghost case man, whats the output of ps -ax
within the container
I think these are the relevant parts. I have used both accounts/login and admin shortcuts. I have also used three browsers (Edge, Chrome and Chromium as a docker on the server itself). I have tried as Privileged and as Host, Bridge and on my custom docker network.
root@209ef7e354ba:/# ps -ax PID TTY STAT TIME COMMAND 1 ? Ss 0:00 /package/admin/s6/command/s6-svscan -d4 -- /run/service 15 ? S 0:00 s6-supervise s6-linux-init-shutdownd 18 ? Ss 0:00 /package/admin/s6-linux-init/command/s6-linux-init-shutdownd -c /run/s6/basedir -g 3000 -C -B 37 ? S 0:00 s6-supervise s6rc-oneshot-runner 38 ? S 0:00 s6-supervise s6rc-fdholder 39 ? S 0:00 s6-supervise svc-backend 40 ? S 0:00 s6-supervise svc-celery 41 ? S 0:00 s6-supervise svc-ml_api 42 ? S 0:00 s6-supervise svc-redis 50 ? Ss 0:00 /package/admin/s6/command/s6-ipcserverd -1 -- /package/admin/s6/command/s6-ipcserver-access -v0 -E -l0 -i data/rules -- 152 ? Ssl 0:00 redis-server *:6379 157 ? Ss 0:00 /usr/bin/python3.7 /usr/local/bin/gunicorn --bind 0.0.0.0:3333 --workers 1 wsgi 164 ? Ssl 0:04 python3.7 manage.py runserver --nostatic --noreload 0.0.0.0:3334 171 ? Ss 0:04 /usr/bin/python3.7 /usr/local/bin/celery -A config worker --beat -l info -c 2 -Q realtime,celery 208 ? Sl 0:05 /usr/bin/python3.7 /usr/local/bin/gunicorn --bind 0.0.0.0:3333 --workers 1 wsgi 254 ? S 0:00 /usr/bin/python3.7 /usr/local/bin/celery -A config worker --beat -l info -c 2 -Q realtime,celery 255 ? S 0:00 /usr/bin/python3.7 /usr/local/bin/celery -A config worker --beat -l info -c 2 -Q realtime,celery 256 ? S 0:00 /usr/bin/python3.7 /usr/local/bin/celery -A config worker --beat -l info -c 2 -Q realtime,celery 272 pts/0 Ss 0:00 bash 280 pts/0 R+ 0:00 ps -ax root@209ef7e354ba:/#
all that looks fine, so far everything just points to it should be working haha, one last trick:
run this whole command:
cd /app/obico/backend && python3.7 manage.py migrate && python3.7 manage.py collectstatic -v 2 --noinput
this will spam the console with Post-processed... seizure warning. but at the end it'll say
0 static files copied to '/app/obico/backend/static_build', 306 unmodified, 986 post-processed.
please tell me if you get anything different (looking at the numbers here)
restart (not recreate, restart!) the container and see if there's a webui
Yes! It works now!
ahhh! did you manage to get that output at the end?
Yes. Same output as you had. 0 static files copied to '/app/obico/backend/static_build', 306 unmodified, 986 post-processed.
so that output was the same however the webui works now?
Exactly
That is really interesting, if you recreate the container does the webui still work?
When removing and creating the docker the app still works. I'll try removing the db file and see what happens.
Totally removing the db file and installing throws out the error 500 again.
Running cd /app/obico/backend && python3.7 manage.py migrate && python3.7 manage.py collectstatic -v 2 --noinput
makes it work again.
Output:
0 static files copied to '/app/obico/backend/static_build', 306 unmodified, 986 post-processed.
hmmm. please bear me, ill quickly open a pr for you to test out
No problem. I'll test as needed.
Running
cd /app/obico/backend && python3.7 manage.py migrate && python3.7 manage.py collectstatic -v 2 --noinput
makes it work again.
Yep, this command solved the problem !
im working on https://github.com/imagegenius/docker-obico/pull/4, which will fix this. hopfully it builds first time without me goofing around again
@bpivk try ghcr.io/imagegenius/igpipepr-obico:7e02e29a-pkg-f80a0581-pr-4
😃
Also here to drop my 5 cents in to say " cd /app/obico/backend && python3.7 manage.py migrate && python3.7 manage.py collectstatic -v 2 --noinput " also fixed my Server Error 500
It works but some errors maybe?
[migrations] started
[migrations] no migrations found
-------------------------------------
| __ _____ _____ __ |
| / / |_ _/ ____| / / |
| / / | || | __ / / |
| / / | || | |_ | / / |
| / / _| || |__| | / / |
| /_/ |_____\_____| /_/ |
-------------------------------------
To support the app dev(s) visit:
Obico: https://www.obico.io/docs/developer-guides/contribute/#buy-us-a-coffee
-------------------------------------
User/Group ID
-------------------------------------
User UID: 99
User GID: 100
-------------------------------------
Initialising obico-server (First time setup)
[custom-init] No custom files found, skipping...
[ig-init] done.
[2023-01-23 11:47:51 +0100] [168] [INFO] Starting gunicorn 19.9.0
[2023-01-23 11:47:51 +0100] [168] [INFO] Listening at: http://0.0.0.0:3333 (168)
[2023-01-23 11:47:51 +0100] [168] [INFO] Using worker: sync
[2023-01-23 11:47:51 +0100] [221] [INFO] Booting worker with pid: 221
layer filters size input output
0 conv 32 3 x 3 / 1 416 x 416 x 3 -> 416 x 416 x 32 0.299 BF
1 max 2 x 2 / 2 416 x 416 x 32 -> 208 x 208 x 32 0.006 BF
2 conv 64 3 x 3 / 1 208 x 208 x 32 -> 208 x 208 x 64 1.595 BF
3 max 2 x 2 / 2 208 x 208 x 64 -> 104 x 104 x 64 0.003 BF
4 conv 128 3 x 3 / 1 104 x 104 x 64 -> 104 x 104 x 128 1.595 BF
5 conv 64 1 x 1 / 1 104 x 104 x 128 -> 104 x 104 x 64 0.177 BF
6 conv 128 3 x 3 / 1 104 x 104 x 64 -> 104 x 104 x 128 1.595 BF
7 max 2 x 2 / 2 104 x 104 x 128 -> 52 x 52 x 128 0.001 BF
8 conv 256 3 x 3 / 1 52 x 52 x 128 -> 52 x 52 x 256 1.595 BF
9 conv 128 1 x 1 / 1 52 x 52 x 256 -> 52 x 52 x 128 0.177 BF
10 conv 256 3 x 3 / 1 52 x 52 x 128 -> 52 x 52 x 256 1.595 BF
11 max 2 x 2 / 2 52 x 52 x 256 -> 26 x 26 x 256 0.001 BF
12 conv 512 3 x 3 / 1 26 x 26 x 256 -> 26 x 26 x 512 1.595 BF
13 conv 256 1 x 1 / 1 26 x 26 x 512 -> 26 x 26 x 256 0.177 BF
14 conv 512 3 x 3 / 1 26 x 26 x 256 -> 26 x 26 x 512 1.595 BF
15 conv 256 1 x 1 / 1 26 x 26 x 512 -> 26 x 26 x 256 0.177 BF
16 conv 512 3 x 3 / 1 26 x 26 x 256 -> 26 x 26 x 512 1.595 BF
17 max 2 x 2 / 2 26 x 26 x 512 -> 13 x 13 x 512 0.000 BF
18 conv 1024 3 x 3 / 1 13 x 13 x 512 -> 13 x 13 x1024 1.595 BF
19 conv 512 1 x 1 / 1 13 x 13 x1024 -> 13 x 13 x 512 0.177 BF
20 conv 1024 3 x 3 / 1 13 x 13 x 512 -> 13 x 13 x1024 1.595 BF
21 conv 512 1 x 1 / 1 13 x 13 x1024 -> 13 x 13 x 512 0.177 BF
22 conv 1024 3 x 3 / 1 13 x 13 x 512 -> 13 x 13 x1024 1.595 BF
23 conv 1024 3 x 3 / 1 13 x 13 x1024 -> 13 x 13 x1024 3.190 BF
24 conv 1024 3 x 3 / 1 13 x 13 x1024 -> 13 x 13 x1024 3.190 BF
25 route 16
26 conv 64 1 x 1 / 1 26 x 26 x 512 -> 26 x 26 x 64 0.044 BF
27 reorg / 2 26 x 26 x 64 -> 13 x 13 x 256
28 route 27 24
29 [2023-01-23 10:47:53,652: INFO/MainProcess] Connected to redis://localhost:6379//
[2023-01-23 10:47:53,659: INFO/MainProcess] mingle: searching for neighbors
[2023-01-23 10:47:53,709: INFO/Beat] beat: Starting...
conv 1024 3 x 3 / 1 13 x 13 x1280 -> 13 x 13 x1024 3.987 BF
30 conv 30 1 x 1 / 1 13 x 13 x1024 -> 13 x 13 x 30 0.010 BF
31 detection
mask_scale: Using default '1.000000'
Try to load cfg: /app/obico/ml_api/model/model.cfg, weights: /app/obico/ml_api/model/model.weights, clear = 0
Total BFLOPS 29.338
Loading weights from /app/obico/ml_api/model/model.weights...Done!
Traceback (most recent call last):
File "/app/obico/backend/api/consumers.py", line 52, in inner
return fn(self, *args, **kwargs)
File "/app/obico/backend/api/consumers.py", line 205, in connect
self.printer = self.get_printer()
File "/app/obico/backend/api/consumers.py", line 193, in get_printer
auth_token=token_key
File "/usr/local/lib/python3.7/dist-packages/safedelete/queryset.py", line 88, in get
return super(SafeDeleteQueryset, self).get(*args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/nplusone/core/signals.py", line 23, in wrapped
ret = func(*args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/django/db/models/query.py", line 408, in get
self.model._meta.object_name
app.models.Printer.DoesNotExist: Printer matching query does not exist.
DoesNotExist in api.consumers.OctoPrintConsumer.connect
Traceback (most recent call last):
File "/app/obico/backend/api/consumers.py", line 52, in inner
return fn(self, *args, **kwargs)
File "/app/obico/backend/api/consumers.py", line 205, in connect
self.printer = self.get_printer()
File "/app/obico/backend/api/consumers.py", line 193, in get_printer
auth_token=token_key
File "/usr/local/lib/python3.7/dist-packages/safedelete/queryset.py", line 88, in get
return super(SafeDeleteQueryset, self).get(*args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/nplusone/core/signals.py", line 23, in wrapped
ret = func(*args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/django/db/models/query.py", line 408, in get
self.model._meta.object_name
app.models.Printer.DoesNotExist: Printer matching query does not exist.
OctoPrintConsumer: Closed websocket with code: 1006
[2023-01-23 10:47:54,673: INFO/MainProcess] mingle: all alone
[2023-01-23 10:47:54,685: INFO/MainProcess] celery@c3a33c320884 ready.
app.models.Printer.DoesNotExist: Printer matching query does not exist.
do you have any printers associated with obico? think this just means that its looking for printers and none exist yet.
No printers yet. It's a clean install. As long as it's not an app error it doesn't matter.
tags can be changed back to :latest
once CI has built it :)
tags can be changed back to
:latest
once CI has built it :)
Maybe even now as the migration is already done. It shouldn't matter. :)
i didnt think that the migration touched the database, that's why I was stumped before
I seem to be having this problem again now on a fresh install, had to reinstall. It was working up until about a week or 2 ago
And i tried to run the command above in the container but it complains about python not being available.
I have tried to install on 2 different unraid servers now, one has never had obico installed and it does the same.
Using the cuda image
work around for now seems to be that you can change the tag from cuda to latest, run the container, i then went and set the site, stopped the container and changed the tag to cuda and now it works. At least i do not get the Error 500 now.
On Unraid the docker throws out a Server Error (500) when installed.
Logs only show: `Performing system checks...
System check identified no issues (0 silenced).
You have 97 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): account, admin, app, auth, channels_presence, contenttypes, sessions, sites, socialaccount. Run 'python manage.py migrate' to apply them. January 22, 2023 - 20:31:54 Django version 2.2.27, using settings 'config.settings' Starting ASGI/Channels version 2.4.0 development server at http://0.0.0.0:3334/ Quit the server with CONTROL-C.
seen 64 Loaded - names_list: /app/model/names, classes = 1 [migrations] started [migrations] no migrations found
To support the app dev(s) visit: Obico: https://www.obico.io/docs/developer-guides/contribute/#buy-us-a-coffee
User/Group ID
User UID: 99 User GID: 100
[custom-init] No custom files found, skipping... [ig-init] done. Try to load cfg: /app/obico/ml_api/model/model.cfg, weights: /app/obico/ml_api/model/model.weights, clear = 0 Total BFLOPS 29.338 `
There are no files created under mappings except the redis log (looks ok) and a db.sqlite3 file.