Skip to content

"Internal Server Error" while try to login

Describe the bug

Try to login from app gives me "Internal Server Error"

How to reproduce

  1. Type in "radio.schuerz.at" in "servername"
  2. Click on 'Login'
  3. See error

Expected behavior

Login successfully

Actual behavior

No login possible. Shows "Internal Server Error".

Screenshots

If applicable, add screenshots to help explain your problem.

Environment details

Logs

Add any related logs from ADB or from the "Copy logs" setting. Here are the logs from the server:

Oct 03 19:50:57 tube gunicorn[103864]: 2021-10-03 17:50:57,587 django.request ERROR    Internal Server Error: /api/v1/oauth/apps/                                                                                  
Oct 03 19:50:57 tube gunicorn[103864]: Traceback (most recent call last):                                                                                                                                          
Oct 03 19:50:57 tube gunicorn[103864]:   File "/srv/funkwhale/virtualenv/lib/python3.9/site-packages/django/db/backends/utils.py", line 86, in _execute                                                            
Oct 03 19:50:57 tube gunicorn[103864]:     return self.cursor.execute(sql, params)                                                                                                                                 
Oct 03 19:50:57 tube gunicorn[103864]: psycopg2.errors.NotNullViolation: null value in column "algorithm" of relation "users_application" violates not-null constraint                                             
Oct 03 19:50:57 tube gunicorn[103864]: DETAIL:  Failing row contains (22, LluY8oT2OfE2204W2SDREqmvC5kWbfSmN42d5uv3, urn:/audio.funkwhale.funkwhale-android/oauth/callback, confidential, authorization-code, 39zP76
DPKDYmWjmIh1dGUYJAZLQQAzbjv959tsmP0ECXDOyKjEWe7c1qUeTKU30R..., Funkwhale for Android (VOG-L29), f, 2021-10-03 17:50:57.560213+00, 2021-10-03 17:50:57.560253+00, null, read write, null, null).                    
Oct 03 19:50:57 tube gunicorn[103864]: The above exception was the direct cause of the following exception:                                                                                                        
Oct 03 19:50:57 tube gunicorn[103864]: Traceback (most recent call last):                                                                                                                                          
Oct 03 19:50:57 tube gunicorn[103864]:   File "/srv/funkwhale/virtualenv/lib/python3.9/site-packages/django/core/handlers/exception.py", line 34, in inner                                                         
Oct 03 19:50:57 tube gunicorn[103864]:     response = get_response(request)                                                                                                                                        
Oct 03 19:50:57 tube gunicorn[103864]:   File "/srv/funkwhale/virtualenv/lib/python3.9/site-packages/django/core/handlers/base.py", line 115, in _get_response                                                     
Oct 03 19:50:57 tube gunicorn[103864]:     response = self.process_exception_by_middleware(e, request)                                                                                                             
Oct 03 19:50:57 tube gunicorn[103864]:   File "/srv/funkwhale/virtualenv/lib/python3.9/site-packages/django/core/handlers/base.py", line 113, in _get_response                                                     
Oct 03 19:50:57 tube gunicorn[103864]:     response = wrapped_callback(request, *callback_args, **callback_kwargs)                                                                                                 

Discussed on matrix, funkwhale-android room

Edited by Jakob Schürz