Describe the bug
When uploading m4a files through the web interface, they successfully upload but get stuck in the processing stage. The message given in the UI is Upload is still pending and will soon be processed by the server.
When I tried to re-import (deleted the pending files and uploaded fresh) the following logs are shown whilst tailing the docker logs
funkwhale | 2021-02-19 17:59:02,315 django.request WARNING Bad Request: /api/v1/libraries/fs-import
If I am trying to restart the import via the UI, no additional notable logs are added.
Logs
Stdout
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 10-users: executing...
usermod: no changes
[cont-init.d] 10-users: exited 0.
[cont-init.d] 20-directories: executing...
mkdir: can't create directory '/data': File exists
[cont-init.d] 20-directories: exited 0.
[cont-init.d] 30-database: executing...
[cont-init.d] 30-database: exited 0.
[cont-init.d] 40-funkwhale: executing...
collecting static files
2021-02-19 19:36:57,244 funkwhale_api.config INFO Running with the following plugins enabled: funkwhale_api.contrib.scrobbler
173 static files copied to '/app/api/staticfiles'.
running data migration
pg_ctl: another server might be running; trying to start server anyway
waiting for server to start....2021-02-19 19:37:04.975 UTC [283] LOG: listening on IPv4 address "127.0.0.1", port 5432
2021-02-19 19:37:04.975 UTC [283] LOG: could not bind IPv6 address "::1": Address not available
2021-02-19 19:37:04.975 UTC [283] HINT: Is another postmaster already running on port 5432? If not, wait a few seconds and retry.
2021-02-19 19:37:05.000 UTC [283] LOG: listening on Unix socket "/run/postgresql/.s.PGSQL.5432"
2021-02-19 19:37:05.013 UTC [283] LOG: listening on Unix socket "/tmp/.s.PGSQL.5432"
2021-02-19 19:37:05.059 UTC [284] LOG: database system was interrupted; last known up at 2021-02-19 18:05:03 UTC
2021-02-19 19:37:05.460 UTC [284] LOG: database system was not properly shut down; automatic recovery in progress
2021-02-19 19:37:05.488 UTC [284] LOG: redo starts at 0/B0319AB8
2021-02-19 19:37:05.488 UTC [284] LOG: invalid record length at 0/B0319B98: wanted 24, got 0
2021-02-19 19:37:05.488 UTC [284] LOG: redo done at 0/B0319B60
2021-02-19 19:37:05.532 UTC [283] LOG: database system is ready to accept connections
done
server started
2021-02-19 19:37:06,805 funkwhale_api.config INFO Running with the following plugins enabled: funkwhale_api.contrib.scrobbler
Operations to perform:
Apply all migrations: account, admin, audio, auth, authtoken, common, contenttypes, dynamic_preferences, favorites, federation, history, moderation, music, playlists, radios, requests, sessions, sites, socialaccount, tags, users
Running migrations:
No migrations to apply.
waiting for server to shut down...2021-02-19 19:37:17.946 UTC [283] LOG: received fast shutdown request
.2021-02-19 19:37:17.949 UTC [283] LOG: aborting any active transactions
2021-02-19 19:37:17.952 UTC [283] LOG: background worker "logical replication launcher" (PID 290) exited with exit code 1
2021-02-19 19:37:17.952 UTC [285] LOG: shutting down
2021-02-19 19:37:17.977 UTC [283] LOG: database system is shut down
done
server stopped
[cont-init.d] 40-funkwhale: exited 0.
[cont-init.d] 50-webserver: executing...
Setting up nested proxy conf…
[cont-init.d] 50-webserver: exited 0.
[cont-init.d] done.
[services.d] starting services
............NNNNNNNNNN............................NNNNNNNNN.............
............NmmmmmmmmmmmmNN..................NNmmmmmmmmmmmmN............
............NmmmmmmmmmmmmmmmmmNN.......NNNmmmmmmmmmmmmmmmmm.............
.............NmmmmmmmmmmmmmmmmmmmmN.NmmmmmmmmmmmmmmmmmmmmmN.............
..............NmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmN...............
................NNmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmN.................
...................NNmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmNN...................
........................NNNmmmmmmmmmmmmmmmmmmNNN........................
............................NmmmmmmmmmmmmmNN............................
..............................NmmmmmmmmmmN..............................
...............................Nmmmmmmmm................................
................................mmmmmmmm................................
................................mmmmmmmN................................
................................NmmmmmmN................................
.hsssssm....dsssssh.....ssssss...NNmmN....ssssss.....hsssssd....Nsssssh.
.hsssssd....Nsssssy.....ysssssd..........dssssss.....ysssssm....msssssh.
.dsssssh.....ssssssm....msssssshm......Nhssssssm....Nssssss.....hsssssd.
.Nssssss.....dsssssy.....mssssssssyhhyssssssssm.....ysssssh....NssssssN.
..hsssssh.....ysssssyN....NhsssssssssssssssshN.....ysssssy.....hsssssy..
..Nssssssm....Nsssssssm.....NdhssssssssssydN.....myssssssN....mssssssN..
...dssssssN....NysssssshN.......NmmddmmN.......NhssssssyN....Nssssssd...
....hssssssm.....dsssssssydN................Ndysssssssd.....mssssssh....
.....hssssssd.....NhssssssssshdmN......NmdhssssssssshN.....dssssssh.....
......dssssssym.....NdssssssssssssssssssssssssssssdN.....Nyssssssd......
.......mssssssshN......mdyssssssssssssssssssssydN......Nhsssssssm.......
.........dsssssssym........mmdyyyssssssyyhdmN........mysssssssh.........
..........Nhsssssssshm............................mhsssssssshN..........
............NhsssssssssydmN..................NmdyssssssssshN............
...............mhsssssssssssyyhddmmmmmmddhyyssssssssssshm...............
..................mhyssssssssssssssssssssssssssssssyhm..................
.....................NmdyssssssssssssssssssssssydmN.....................
...........................NmmddhhhyyhhhhdmmN...........................
335:C 19 Feb 2021 19:37:18.133 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
335:C 19 Feb 2021 19:37:18.133 # Redis version=5.0.5, bits=64, commit=47edd290, modified=0, pid=335, just started
335:C 19 Feb 2021 19:37:18.133 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
335:M 19 Feb 2021 19:37:18.140 * Running mode=standalone, port=6379.
335:M 19 Feb 2021 19:37:18.140 # Server initialized
335:M 19 Feb 2021 19:37:18.140 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
335:M 19 Feb 2021 19:37:18.140 * Ready to accept connections
[services.d] done.
[2021-02-19 19:37:19 +0000] [332] [INFO] Starting gunicorn 20.0.4
[2021-02-19 19:37:19 +0000] [332] [INFO] Listening at: http://127.0.0.1:8000 (332)
[2021-02-19 19:37:19 +0000] [332] [INFO] Using worker: uvicorn.workers.UvicornWorker
[2021-02-19 19:37:19 +0000] [373] [INFO] Booting worker with pid: 373
2021-02-19 19:37:20,707 funkwhale_api.config INFO Running with the following plugins enabled: funkwhale_api.contrib.scrobbler
2021-02-19 19:37:20,743 funkwhale_api.config INFO Running with the following plugins enabled: funkwhale_api.contrib.scrobbler
2021-02-19 19:37:20,870 funkwhale_api.config INFO Running with the following plugins enabled: funkwhale_api.contrib.scrobbler
[2021-02-19 19:37:27 +0000] [373] [INFO] Started server process [373]
[2021-02-19 19:37:27 +0000] [373] [INFO] Waiting for application startup.
[2021-02-19 19:37:27 +0000] [373] [INFO] ASGI 'lifespan' protocol appears unsupported.
[2021-02-19 19:37:27 +0000] [373] [INFO] Application startup complete.
[2021-02-19 19:37:27 +0000] [373] [INFO] ('172.19.0.1', 0) - "WebSocket /api/v1/activity" 403
[2021-02-19 19:37:27 +0000] [373] [ERROR] Exception in ASGI application
Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/uvicorn/protocols/websockets/websockets_impl.py", line 154, in run_asgi
result = await self.app(self.scope, self.asgi_receive, self.asgi_send)
File "/usr/lib/python3.7/site-packages/uvicorn/middleware/proxy_headers.py", line 45, in __call__
return await self.app(scope, receive, send)
File "/usr/lib/python3.7/site-packages/uvicorn/middleware/asgi2.py", line 7, in __call__
await instance(receive, send)
File "/usr/lib/python3.7/site-packages/channels/sessions.py", line 183, in __call__
return await self.inner(receive, self.send)
File "/usr/lib/python3.7/site-packages/channels/middleware.py", line 41, in coroutine_call
await inner_instance(receive, send)
File "/usr/lib/python3.7/site-packages/channels/consumer.py", line 59, in __call__
[receive, self.channel_receive], self.dispatch
File "/usr/lib/python3.7/site-packages/channels/utils.py", line 58, in await_many_dispatch
await task
File "/usr/lib/python3.7/site-packages/channels/utils.py", line 50, in await_many_dispatch
result = task.result()
File "/usr/lib/python3.7/site-packages/uvicorn/protocols/websockets/websockets_impl.py", line 240, in asgi_receive
data = await self.recv()
File "/usr/lib/python3.7/site-packages/websockets/protocol.py", line 495, in recv
return_when=asyncio.FIRST_COMPLETED,
File "/usr/lib/python3.7/asyncio/tasks.py", line 387, in wait
fs = {ensure_future(f, loop=loop) for f in set(fs)}
File "/usr/lib/python3.7/asyncio/tasks.py", line 387, in <setcomp>
fs = {ensure_future(f, loop=loop) for f in set(fs)}
File "/usr/lib/python3.7/asyncio/tasks.py", line 619, in ensure_future
raise TypeError('An asyncio.Future, a coroutine or an awaitable is '
TypeError: An asyncio.Future, a coroutine or an awaitable is required
[2021-02-19 19:37:37 +0000] [373] [INFO] ('172.19.0.1', 0) - "WebSocket /api/v1/activity" 403
[2021-02-19 19:37:37 +0000] [373] [ERROR] Exception in ASGI application
Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/uvicorn/protocols/websockets/websockets_impl.py", line 154, in run_asgi
result = await self.app(self.scope, self.asgi_receive, self.asgi_send)
File "/usr/lib/python3.7/site-packages/uvicorn/middleware/proxy_headers.py", line 45, in __call__
return await self.app(scope, receive, send)
File "/usr/lib/python3.7/site-packages/uvicorn/middleware/asgi2.py", line 7, in __call__
await instance(receive, send)
File "/usr/lib/python3.7/site-packages/channels/sessions.py", line 183, in __call__
return await self.inner(receive, self.send)
File "/usr/lib/python3.7/site-packages/channels/middleware.py", line 41, in coroutine_call
await inner_instance(receive, send)
File "/usr/lib/python3.7/site-packages/channels/consumer.py", line 59, in __call__
[receive, self.channel_receive], self.dispatch
File "/usr/lib/python3.7/site-packages/channels/utils.py", line 58, in await_many_dispatch
await task
File "/usr/lib/python3.7/site-packages/channels/utils.py", line 50, in await_many_dispatch
result = task.result()
File "/usr/lib/python3.7/site-packages/uvicorn/protocols/websockets/websockets_impl.py", line 240, in asgi_receive
data = await self.recv()
File "/usr/lib/python3.7/site-packages/websockets/protocol.py", line 495, in recv
return_when=asyncio.FIRST_COMPLETED,
File "/usr/lib/python3.7/asyncio/tasks.py", line 387, in wait
fs = {ensure_future(f, loop=loop) for f in set(fs)}
File "/usr/lib/python3.7/asyncio/tasks.py", line 387, in <setcomp>
fs = {ensure_future(f, loop=loop) for f in set(fs)}
File "/usr/lib/python3.7/asyncio/tasks.py", line 619, in ensure_future
raise TypeError('An asyncio.Future, a coroutine or an awaitable is '
TypeError: An asyncio.Future, a coroutine or an awaitable is required
[2021-02-19 19:37:47 +0000] [373] [INFO] ('172.19.0.1', 0) - "WebSocket /api/v1/activity" 403
[2021-02-19 19:37:47 +0000] [373] [ERROR] Exception in ASGI application
Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/uvicorn/protocols/websockets/websockets_impl.py", line 154, in run_asgi
result = await self.app(self.scope, self.asgi_receive, self.asgi_send)
File "/usr/lib/python3.7/site-packages/uvicorn/middleware/proxy_headers.py", line 45, in __call__
return await self.app(scope, receive, send)
File "/usr/lib/python3.7/site-packages/uvicorn/middleware/asgi2.py", line 7, in __call__
await instance(receive, send)
File "/usr/lib/python3.7/site-packages/channels/sessions.py", line 183, in __call__
return await self.inner(receive, self.send)
File "/usr/lib/python3.7/site-packages/channels/middleware.py", line 41, in coroutine_call
await inner_instance(receive, send)
File "/usr/lib/python3.7/site-packages/channels/consumer.py", line 59, in __call__
[receive, self.channel_receive], self.dispatch
File "/usr/lib/python3.7/site-packages/channels/utils.py", line 58, in await_many_dispatch
await task
File "/usr/lib/python3.7/site-packages/channels/utils.py", line 50, in await_many_dispatch
result = task.result()
File "/usr/lib/python3.7/site-packages/uvicorn/protocols/websockets/websockets_impl.py", line 240, in asgi_receive
data = await self.recv()
File "/usr/lib/python3.7/site-packages/websockets/protocol.py", line 495, in recv
return_when=asyncio.FIRST_COMPLETED,
File "/usr/lib/python3.7/asyncio/tasks.py", line 387, in wait
fs = {ensure_future(f, loop=loop) for f in set(fs)}
File "/usr/lib/python3.7/asyncio/tasks.py", line 387, in <setcomp>
fs = {ensure_future(f, loop=loop) for f in set(fs)}
File "/usr/lib/python3.7/asyncio/tasks.py", line 619, in ensure_future
raise TypeError('An asyncio.Future, a coroutine or an awaitable is '
TypeError: An asyncio.Future, a coroutine or an awaitable is required
2021-02-19 19:37:48,450 django.request WARNING Unauthorized: /api/v1/users/me/
[2021-02-19 19:37:48 +0000] [373] [INFO] ('172.19.0.1', 0) - "WebSocket /api/v1/activity" 403
[2021-02-19 19:37:48 +0000] [373] [ERROR] Exception in ASGI application
Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/uvicorn/protocols/websockets/websockets_impl.py", line 154, in run_asgi
result = await self.app(self.scope, self.asgi_receive, self.asgi_send)
File "/usr/lib/python3.7/site-packages/uvicorn/middleware/proxy_headers.py", line 45, in __call__
return await self.app(scope, receive, send)
File "/usr/lib/python3.7/site-packages/uvicorn/middleware/asgi2.py", line 7, in __call__
await instance(receive, send)
File "/usr/lib/python3.7/site-packages/channels/sessions.py", line 183, in __call__
return await self.inner(receive, self.send)
File "/usr/lib/python3.7/site-packages/channels/middleware.py", line 41, in coroutine_call
await inner_instance(receive, send)
File "/usr/lib/python3.7/site-packages/channels/consumer.py", line 59, in __call__
[receive, self.channel_receive], self.dispatch
File "/usr/lib/python3.7/site-packages/channels/utils.py", line 58, in await_many_dispatch
await task
File "/usr/lib/python3.7/site-packages/channels/utils.py", line 50, in await_many_dispatch
result = task.result()
File "/usr/lib/python3.7/site-packages/uvicorn/protocols/websockets/websockets_impl.py", line 240, in asgi_receive
data = await self.recv()
File "/usr/lib/python3.7/site-packages/websockets/protocol.py", line 495, in recv
return_when=asyncio.FIRST_COMPLETED,
File "/usr/lib/python3.7/asyncio/tasks.py", line 387, in wait
fs = {ensure_future(f, loop=loop) for f in set(fs)}
File "/usr/lib/python3.7/asyncio/tasks.py", line 387, in <setcomp>
fs = {ensure_future(f, loop=loop) for f in set(fs)}
File "/usr/lib/python3.7/asyncio/tasks.py", line 619, in ensure_future
raise TypeError('An asyncio.Future, a coroutine or an awaitable is '
TypeError: An asyncio.Future, a coroutine or an awaitable is required
2021-02-19 19:37:48,665 django.request ERROR Internal Server Error: /api/v1/uploads/
Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/django/core/handlers/exception.py", line 34, in inner
response = get_response(request)
File "/usr/lib/python3.7/site-packages/django/core/handlers/base.py", line 115, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/usr/lib/python3.7/site-packages/django/core/handlers/base.py", line 113, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python3.7/contextlib.py", line 74, in inner
return func(*args, **kwds)
File "/usr/lib/python3.7/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
return view_func(*args, **kwargs)
File "/usr/lib/python3.7/site-packages/rest_framework/viewsets.py", line 114, in view
return self.dispatch(request, *args, **kwargs)
File "/usr/lib/python3.7/site-packages/rest_framework/views.py", line 505, in dispatch
response = self.handle_exception(exc)
File "/usr/lib/python3.7/site-packages/rest_framework/views.py", line 465, in handle_exception
self.raise_uncaught_exception(exc)
File "/usr/lib/python3.7/site-packages/rest_framework/views.py", line 476, in raise_uncaught_exception
raise exc
File "/usr/lib/python3.7/site-packages/rest_framework/views.py", line 502, in dispatch
response = handler(request, *args, **kwargs)
File "/usr/lib/python3.7/site-packages/rest_framework/mixins.py", line 38, in list
queryset = self.filter_queryset(self.get_queryset())
File "/app/api/funkwhale_api/music/views.py", line 736, in get_queryset
qs = qs.filter(library__actor=self.request.user.actor)
AttributeError: 'AnonymousUser' object has no attribute 'actor'
2021-02-19 19:37:48,700 django.request ERROR Internal Server Error: /api/v1/uploads/
Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/django/core/handlers/exception.py", line 34, in inner
response = get_response(request)
File "/usr/lib/python3.7/site-packages/django/core/handlers/base.py", line 115, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/usr/lib/python3.7/site-packages/django/core/handlers/base.py", line 113, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python3.7/contextlib.py", line 74, in inner
return func(*args, **kwds)
File "/usr/lib/python3.7/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
return view_func(*args, **kwargs)
File "/usr/lib/python3.7/site-packages/rest_framework/viewsets.py", line 114, in view
return self.dispatch(request, *args, **kwargs)
File "/usr/lib/python3.7/site-packages/rest_framework/views.py", line 505, in dispatch
response = self.handle_exception(exc)
File "/usr/lib/python3.7/site-packages/rest_framework/views.py", line 465, in handle_exception
self.raise_uncaught_exception(exc)
File "/usr/lib/python3.7/site-packages/rest_framework/views.py", line 476, in raise_uncaught_exception
raise exc
File "/usr/lib/python3.7/site-packages/rest_framework/views.py", line 502, in dispatch
response = handler(request, *args, **kwargs)
File "/usr/lib/python3.7/site-packages/rest_framework/mixins.py", line 38, in list
queryset = self.filter_queryset(self.get_queryset())
File "/app/api/funkwhale_api/music/views.py", line 736, in get_queryset
qs = qs.filter(library__actor=self.request.user.actor)
AttributeError: 'AnonymousUser' object has no attribute 'actor'
2021-02-19 19:37:48,719 django.request ERROR Internal Server Error: /api/v1/uploads/
Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/django/core/handlers/exception.py", line 34, in inner
response = get_response(request)
File "/usr/lib/python3.7/site-packages/django/core/handlers/base.py", line 115, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/usr/lib/python3.7/site-packages/django/core/handlers/base.py", line 113, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python3.7/contextlib.py", line 74, in inner
return func(*args, **kwds)
File "/usr/lib/python3.7/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
return view_func(*args, **kwargs)
File "/usr/lib/python3.7/site-packages/rest_framework/viewsets.py", line 114, in view
return self.dispatch(request, *args, **kwargs)
File "/usr/lib/python3.7/site-packages/rest_framework/views.py", line 505, in dispatch
response = self.handle_exception(exc)
File "/usr/lib/python3.7/site-packages/rest_framework/views.py", line 465, in handle_exception
self.raise_uncaught_exception(exc)
File "/usr/lib/python3.7/site-packages/rest_framework/views.py", line 476, in raise_uncaught_exception
raise exc
File "/usr/lib/python3.7/site-packages/rest_framework/views.py", line 502, in dispatch
response = handler(request, *args, **kwargs)
File "/usr/lib/python3.7/site-packages/rest_framework/mixins.py", line 38, in list
queryset = self.filter_queryset(self.get_queryset())
File "/app/api/funkwhale_api/music/views.py", line 736, in get_queryset
qs = qs.filter(library__actor=self.request.user.actor)
AttributeError: 'AnonymousUser' object has no attribute 'actor'
2021-02-19 19:37:48,739 django.request ERROR Internal Server Error: /api/v1/uploads/
Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/django/core/handlers/exception.py", line 34, in inner
response = get_response(request)
File "/usr/lib/python3.7/site-packages/django/core/handlers/base.py", line 115, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/usr/lib/python3.7/site-packages/django/core/handlers/base.py", line 113, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python3.7/contextlib.py", line 74, in inner
return func(*args, **kwds)
File "/usr/lib/python3.7/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
return view_func(*args, **kwargs)
File "/usr/lib/python3.7/site-packages/rest_framework/viewsets.py", line 114, in view
return self.dispatch(request, *args, **kwargs)
File "/usr/lib/python3.7/site-packages/rest_framework/views.py", line 505, in dispatch
response = self.handle_exception(exc)
File "/usr/lib/python3.7/site-packages/rest_framework/views.py", line 465, in handle_exception
self.raise_uncaught_exception(exc)
File "/usr/lib/python3.7/site-packages/rest_framework/views.py", line 476, in raise_uncaught_exception
raise exc
File "/usr/lib/python3.7/site-packages/rest_framework/views.py", line 502, in dispatch
response = handler(request, *args, **kwargs)
File "/usr/lib/python3.7/site-packages/rest_framework/mixins.py", line 38, in list
queryset = self.filter_queryset(self.get_queryset())
File "/app/api/funkwhale_api/music/views.py", line 736, in get_queryset
qs = qs.filter(library__actor=self.request.user.actor)
AttributeError: 'AnonymousUser' object has no attribute 'actor'
2021-02-19 19:37:48,760 django.request ERROR Internal Server Error: /api/v1/uploads/
Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/django/core/handlers/exception.py", line 34, in inner
response = get_response(request)
File "/usr/lib/python3.7/site-packages/django/core/handlers/base.py", line 115, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/usr/lib/python3.7/site-packages/django/core/handlers/base.py", line 113, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python3.7/contextlib.py", line 74, in inner
return func(*args, **kwds)
File "/usr/lib/python3.7/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
return view_func(*args, **kwargs)
File "/usr/lib/python3.7/site-packages/rest_framework/viewsets.py", line 114, in view
return self.dispatch(request, *args, **kwargs)
File "/usr/lib/python3.7/site-packages/rest_framework/views.py", line 505, in dispatch
response = self.handle_exception(exc)
File "/usr/lib/python3.7/site-packages/rest_framework/views.py", line 465, in handle_exception
self.raise_uncaught_exception(exc)
File "/usr/lib/python3.7/site-packages/rest_framework/views.py", line 476, in raise_uncaught_exception
raise exc
File "/usr/lib/python3.7/site-packages/rest_framework/views.py", line 502, in dispatch
response = handler(request, *args, **kwargs)
File "/usr/lib/python3.7/site-packages/rest_framework/mixins.py", line 38, in list
queryset = self.filter_queryset(self.get_queryset())
File "/app/api/funkwhale_api/music/views.py", line 736, in get_queryset
qs = qs.filter(library__actor=self.request.user.actor)
AttributeError: 'AnonymousUser' object has no attribute 'actor'
2021-02-19 19:37:48,781 django.request WARNING Unauthorized: /api/v1/users/me/
2021-02-19 19:37:48,936 django.request WARNING Unauthorized: /api/v1/users/me/
2021-02-19 19:37:49,017 django.request WARNING Unauthorized: /api/v1/users/me/
/usr/lib/python3.7/site-packages/rest_framework/pagination.py:200: UnorderedObjectListWarning: Pagination may yield inconsistent results with an unordered object_list: <class 'funkwhale_api.playlists.models.Playlist'> PlaylistQuerySet.
paginator = self.django_paginator_class(queryset, page_size)
[2021-02-19 19:37:54 +0000] [373] [INFO] ('172.19.0.1', 0) - "WebSocket /api/v1/activity" [accepted]
2021-02-19 19:40:30,058 plugins INFO Forwarding scrobble to http://proxy.listenbrainz.org/
2021-02-19 19:40:30,375 plugins INFO Scrobble sent!
335:M 19 Feb 2021 19:42:19.092 * 100 changes in 300 seconds. Saving...
335:M 19 Feb 2021 19:42:19.092 * Background saving started by pid 403
403:C 19 Feb 2021 19:42:19.104 * DB saved on disk
403:C 19 Feb 2021 19:42:19.104 * RDB: 0 MB of memory used by copy-on-write
335:M 19 Feb 2021 19:42:19.193 * Background saving terminated with success
2021-02-19 19:45:18,802 plugins INFO Forwarding scrobble to http://proxy.listenbrainz.org/
2021-02-19 19:45:18,995 plugins INFO Scrobble sent!
Logs are located in the /var/log/funkwhale/ directory.
Describe the bug When uploading m4a files through the web interface, they successfully upload but get stuck in the processing stage. The message given in the UI is
Upload is still pending and will soon be processed by the server.
When I tried to re-import (deleted the pending files and uploaded fresh) the following logs are shown whilst tailing the docker logs
funkwhale | 2021-02-19 17:59:02,315 django.request WARNING Bad Request: /api/v1/libraries/fs-import
If I am trying to restart the import via the UI, no additional notable logs are added.
Logs
Stdout
Logs are located in the
/var/log/funkwhale/
directory.docker exec -it ${CONTAINER_ID} cat /var/log/funkwhale/{gunicorn,celery-worker,celery-beat}.log
Options Submit your command options and arguments like volumes, environment variables, and ports.
System information