500 Error



  • Hi there, I'm trying to do the fresh install on our on-premises server, but after all the steps from the guide, I get 500 error.
    I've checked the config.py file on MySQL connection conformity and all seems fine.
    OS is the fresh installed Ubuntu server 16.04.5

    In logs I have these errors:

    AttributeError: 'NoneType' object has no attribute 'iteritems'
    [pid: 14807|app: 0|req: 13/17] 10.71.72.18 () {44 vars in 959 bytes} [Tue Jan 8 13:26:08 2019] GET /login?next=%2F => generated 2260 bytes in 29 msecs (HTTP/1.1 500) 4 headers in 348 bytes (1 switches on core 0)
    [pid: 14807|app: 0|req: 14/18] 10.71.72.18 () {44 vars in 925 bytes} [Tue Jan 8 13:52:12 2019] GET / => generated 237 bytes in 7 msecs (HTTP/1.1 302) 5 headers in 446 bytes (1 switches on core 0)
    DEBUG:flask.app:License Key Not available
    ERROR:flask.app:Exception on /login [GET]

    Could you please advise, where could be the problem?



  • In emperor log I found this:

    detected binary path: /usr/share/nginx/spotipo/.env/bin/uwsgi
    !!! no internal routing support, rebuild with pcre support !!!
    *** WARNING: you are running uWSGI without its master process manager ***



  • Could you post the whole log? from spotipo.log



  • @rakesh-mukundan Sure, thank you

    {% block contentBlock %}
    

    File "/usr/share/nginx/spotipo/unifispot/templates/security/login_user.html", line 23, in block "contentBlock"
    {{emit_event('branding-permission-login-heading') | safe}}
    File "/usr/share/nginx/spotipo/.env/src/spotipo-plugins/spotipo_plugins/init.py", line 483, in template_emit
    rv = f(*args, **kwargs)
    File "spotipo/unifispot/modules/branding/main.pyx", line 100, in unifispot.modules.branding.main.get_custom_login_heading
    File "spotipo/unifispot/modules/branding/main.pyx", line 73, in unifispot.modules.branding.main.get_branding_data
    File "spotipo/unifispot/utils/options.pyx", line 222, in unifispot.utils.options.validate_atleast_one_paid_sub
    AttributeError: 'NoneType' object has no attribute 'iteritems'
    [pid: 14808|app: 0|req: 12/40] 10.71.72.18 () {42 vars in 997 bytes} [Tue Jan 8 14:44:58 2019] GET /login?next=%2F => generated 2507 bytes in 21 msecs (HTTP/1.1 500) 4 headers in 348 bytes (1 switches on core 0)
    [pid: 14808|app: 0|req: 13/41] 10.71.72.18 () {38 vars in 555 bytes} [Tue Jan 8 14:45:23 2019] GET / => generated 237 bytes in 5 msecs (HTTP/1.1 302) 5 headers in 353 bytes (1 switches on core 0)
    DEBUG:flask.app:License Key Not available
    ERROR:flask.app:Exception on /login [GET]
    Traceback (most recent call last):
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask/app.py", line 2292, in wsgi_app
    response = self.full_dispatch_request()
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask/app.py", line 1815, in full_dispatch_request
    rv = self.handle_user_exception(e)
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask/app.py", line 1718, in handle_user_exception
    reraise(exc_type, exc_value, tb)
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask/app.py", line 1813, in full_dispatch_request
    rv = self.dispatch_request()
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask/app.py", line 1799, in dispatch_request
    return self.view_functionsrule.endpoint
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask_security/decorators.py", line 230, in wrapper
    return f(*args, **kwargs)
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask_security/views.py", line 89, in login
    **_ctx('login'))
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask_security/core.py", line 528, in render_template
    return render_template(*args, **kwargs)
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask/templating.py", line 135, in render_template
    context, ctx.app)
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask/templating.py", line 117, in _render
    rv = template.render(context)
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/jinja2/environment.py", line 1008, in render
    return self.environment.handle_exception(exc_info, True)
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/jinja2/environment.py", line 780, in handle_exception
    reraise(exc_type, exc_value, tb)
    File "/usr/share/nginx/spotipo/unifispot/templates/security/login_user.html", line 2, in top-level template code
    {% extends 'base.html' %}
    File "/usr/share/nginx/spotipo/unifispot/templates/base.html", line 38, in top-level template code
    {% block contentBlock %}
    File "/usr/share/nginx/spotipo/unifispot/templates/security/login_user.html", line 23, in block "contentBlock"
    {{emit_event('branding-permission-login-heading') | safe}}
    File "/usr/share/nginx/spotipo/.env/src/spotipo-plugins/spotipo_plugins/init.py", line 483, in template_emit
    rv = f(*args, **kwargs)
    File "spotipo/unifispot/modules/branding/main.pyx", line 100, in unifispot.modules.branding.main.get_custom_login_heading
    File "spotipo/unifispot/modules/branding/main.pyx", line 73, in unifispot.modules.branding.main.get_branding_data
    File "spotipo/unifispot/utils/options.pyx", line 222, in unifispot.utils.options.validate_atleast_one_paid_sub
    AttributeError: 'NoneType' object has no attribute 'iteritems'
    [pid: 14808|app: 0|req: 14/42] 10.71.72.18 () {40 vars in 775 bytes} [Tue Jan 8 14:45:23 2019] GET /login?next=%2F => generated 2507 bytes in 23 msecs (HTTP/1.1 500) 4 headers in 349 bytes (1 switches on core 0)
    DEBUG:flask.app:License Key Not available
    ERROR:flask.app:Exception on /login [GET]
    Traceback (most recent call last):
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask/app.py", line 2292, in wsgi_app
    response = self.full_dispatch_request()
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask/app.py", line 1815, in full_dispatch_request
    rv = self.handle_user_exception(e)
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask/app.py", line 1718, in handle_user_exception
    reraise(exc_type, exc_value, tb)
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask/app.py", line 1813, in full_dispatch_request
    rv = self.dispatch_request()
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask/app.py", line 1799, in dispatch_request
    return self.view_functionsrule.endpoint
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask_security/decorators.py", line 230, in wrapper
    return f(*args, **kwargs)
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask_security/views.py", line 89, in login
    **_ctx('login'))
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask_security/core.py", line 528, in render_template
    return render_template(*args, **kwargs)
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask/templating.py", line 135, in render_template
    context, ctx.app)
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask/templating.py", line 117, in _render
    rv = template.render(context)
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/jinja2/environment.py", line 1008, in render
    return self.environment.handle_exception(exc_info, True)
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/jinja2/environment.py", line 780, in handle_exception
    reraise(exc_type, exc_value, tb)
    File "/usr/share/nginx/spotipo/unifispot/templates/security/login_user.html", line 2, in top-level template code
    {% extends 'base.html' %}
    File "/usr/share/nginx/spotipo/unifispot/templates/base.html", line 38, in top-level template code
    {% block contentBlock %}
    File "/usr/share/nginx/spotipo/unifispot/templates/security/login_user.html", line 23, in block "contentBlock"
    {{emit_event('branding-permission-login-heading') | safe}}
    File "/usr/share/nginx/spotipo/.env/src/spotipo-plugins/spotipo_plugins/init.py", line 483, in template_emit
    rv = f(*args, **kwargs)
    File "spotipo/unifispot/modules/branding/main.pyx", line 100, in unifispot.modules.branding.main.get_custom_login_heading
    File "spotipo/unifispot/modules/branding/main.pyx", line 73, in unifispot.modules.branding.main.get_branding_data
    File "spotipo/unifispot/utils/options.pyx", line 222, in unifispot.utils.options.validate_atleast_one_paid_sub
    AttributeError: 'NoneType' object has no attribute 'iteritems'
    [pid: 14808|app: 0|req: 15/43] 10.71.72.18 () {44 vars in 959 bytes} [Tue Jan 8 14:53:14 2019] GET /login?next=%2F => generated 2260 bytes in 29 msecs (HTTP/1.1 500) 4 headers in 348 bytes (1 switches on core 0)
    DEBUG:flask.app:License Key Not available
    ERROR:flask.app:Exception on /login [GET]
    Traceback (most recent call last):
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask/app.py", line 2292, in wsgi_app
    response = self.full_dispatch_request()
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask/app.py", line 1815, in full_dispatch_request
    rv = self.handle_user_exception(e)
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask/app.py", line 1718, in handle_user_exception
    reraise(exc_type, exc_value, tb)
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask/app.py", line 1813, in full_dispatch_request
    rv = self.dispatch_request()
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask/app.py", line 1799, in dispatch_request
    return self.view_functionsrule.endpoint
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask_security/decorators.py", line 230, in wrapper
    return f(*args, **kwargs)
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask_security/views.py", line 89, in login
    **_ctx('login'))
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask_security/core.py", line 528, in render_template
    return render_template(*args, **kwargs)
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask/templating.py", line 135, in render_template
    context, ctx.app)
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask/templating.py", line 117, in _render
    rv = template.render(context)
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/jinja2/environment.py", line 1008, in render
    return self.environment.handle_exception(exc_info, True)
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/jinja2/environment.py", line 780, in handle_exception
    reraise(exc_type, exc_value, tb)
    File "/usr/share/nginx/spotipo/unifispot/templates/security/login_user.html", line 2, in top-level template code
    {% extends 'base.html' %}
    File "/usr/share/nginx/spotipo/unifispot/templates/base.html", line 38, in top-level template code
    {% block contentBlock %}
    File "/usr/share/nginx/spotipo/unifispot/templates/security/login_user.html", line 23, in block "contentBlock"
    {{emit_event('branding-permission-login-heading') | safe}}
    File "/usr/share/nginx/spotipo/.env/src/spotipo-plugins/spotipo_plugins/init.py", line 483, in template_emit
    rv = f(*args, **kwargs)
    File "spotipo/unifispot/modules/branding/main.pyx", line 100, in unifispot.modules.branding.main.get_custom_login_heading
    File "spotipo/unifispot/modules/branding/main.pyx", line 73, in unifispot.modules.branding.main.get_branding_data
    File "spotipo/unifispot/utils/options.pyx", line 222, in unifispot.utils.options.validate_atleast_one_paid_sub
    AttributeError: 'NoneType' object has no attribute 'iteritems'
    [pid: 14808|app: 0|req: 16/44] 10.71.72.19 () {44 vars in 920 bytes} [Tue Jan 8 14:57:06 2019] GET /login?next=%2F => generated 2260 bytes in 27 msecs (HTTP/1.1 500) 4 headers in 346 bytes (1 switches on core 0)
    [pid: 14808|app: 0|req: 17/45] 10.71.72.19 () {38 vars in 558 bytes} [Tue Jan 8 14:57:06 2019] GET /favicon.ico => generated 2280 bytes in 7 msecs (HTTP/1.1 404) 2 headers in 88 bytes (1 switches on core 0)
    [pid: 14808|app: 0|req: 18/46] 10.71.72.18 () {44 vars in 925 bytes} [Tue Jan 8 16:15:55 2019] GET / => generated 237 bytes in 6 msecs (HTTP/1.1 302) 5 headers in 446 bytes (1 switches on core 0)
    DEBUG:flask.app:License Key Not available
    ERROR:flask.app:Exception on /login [GET]
    Traceback (most recent call last):
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask/app.py", line 2292, in wsgi_app
    response = self.full_dispatch_request()
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask/app.py", line 1815, in full_dispatch_request
    rv = self.handle_user_exception(e)
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask/app.py", line 1718, in handle_user_exception
    reraise(exc_type, exc_value, tb)
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask/app.py", line 1813, in full_dispatch_request
    rv = self.dispatch_request()
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask/app.py", line 1799, in dispatch_request
    return self.view_functionsrule.endpoint
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask_security/decorators.py", line 230, in wrapper
    return f(*args, **kwargs)
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask_security/views.py", line 89, in login
    **_ctx('login'))
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask_security/core.py", line 528, in render_template
    return render_template(*args, **kwargs)
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask/templating.py", line 135, in render_template
    context, ctx.app)
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask/templating.py", line 117, in _render
    rv = template.render(context)
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/jinja2/environment.py", line 1008, in render
    return self.environment.handle_exception(exc_info, True)
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/jinja2/environment.py", line 780, in handle_exception
    reraise(exc_type, exc_value, tb)
    File "/usr/share/nginx/spotipo/unifispot/templates/security/login_user.html", line 2, in top-level template code
    {% extends 'base.html' %}
    File "/usr/share/nginx/spotipo/unifispot/templates/base.html", line 38, in top-level template code
    {% block contentBlock %}
    File "/usr/share/nginx/spotipo/unifispot/templates/security/login_user.html", line 23, in block "contentBlock"
    {{emit_event('branding-permission-login-heading') | safe}}
    File "/usr/share/nginx/spotipo/.env/src/spotipo-plugins/spotipo_plugins/init.py", line 483, in template_emit
    rv = f(*args, **kwargs)
    File "spotipo/unifispot/modules/branding/main.pyx", line 100, in unifispot.modules.branding.main.get_custom_login_heading
    File "spotipo/unifispot/modules/branding/main.pyx", line 73, in unifispot.modules.branding.main.get_branding_data
    File "spotipo/unifispot/utils/options.pyx", line 222, in unifispot.utils.options.validate_atleast_one_paid_sub
    AttributeError: 'NoneType' object has no attribute 'iteritems'
    [pid: 14808|app: 0|req: 19/47] 10.71.72.18 () {44 vars in 1021 bytes} [Tue Jan 8 16:15:55 2019] GET /login?next=%2F => generated 2507 bytes in 27 msecs (HTTP/1.1 500) 4 headers in 348 bytes (1 switches on core 0)
    [pid: 14808|app: 0|req: 20/48] 10.71.72.18 () {42 vars in 901 bytes} [Tue Jan 8 16:15:55 2019] GET / => generated 237 bytes in 4 msecs (HTTP/1.1 302) 5 headers in 446 bytes (1 switches on core 0)
    [pid: 14808|app: 0|req: 21/49] 10.71.72.18 () {44 vars in 1020 bytes} [Tue Jan 8 16:19:25 2019] GET / => generated 237 bytes in 6 msecs (HTTP/1.1 302) 5 headers in 453 bytes (1 switches on core 0)
    DEBUG:flask.app:License Key Not available
    ERROR:flask.app:Exception on /login [GET]
    Traceback (most recent call last):
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask/app.py", line 2292, in wsgi_app
    response = self.full_dispatch_request()
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask/app.py", line 1815, in full_dispatch_request
    rv = self.handle_user_exception(e)
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask/app.py", line 1718, in handle_user_exception
    reraise(exc_type, exc_value, tb)
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask/app.py", line 1813, in full_dispatch_request
    rv = self.dispatch_request()
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask/app.py", line 1799, in dispatch_request
    return self.view_functionsrule.endpoint
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask_security/decorators.py", line 230, in wrapper
    return f(*args, **kwargs)
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask_security/views.py", line 89, in login
    **_ctx('login'))
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask_security/core.py", line 528, in render_template
    return render_template(*args, **kwargs)
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask/templating.py", line 135, in render_template
    context, ctx.app)
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask/templating.py", line 117, in _render
    rv = template.render(context)
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/jinja2/environment.py", line 1008, in render
    return self.environment.handle_exception(exc_info, True)
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/jinja2/environment.py", line 780, in handle_exception
    reraise(exc_type, exc_value, tb)
    File "/usr/share/nginx/spotipo/unifispot/templates/security/login_user.html", line 2, in top-level template code
    {% extends 'base.html' %}
    File "/usr/share/nginx/spotipo/unifispot/templates/base.html", line 38, in top-level template code
    {% block contentBlock %}
    File "/usr/share/nginx/spotipo/unifispot/templates/security/login_user.html", line 23, in block "contentBlock"
    {{emit_event('branding-permission-login-heading') | safe}}
    File "/usr/share/nginx/spotipo/.env/src/spotipo-plugins/spotipo_plugins/init.py", line 483, in template_emit
    rv = f(*args, **kwargs)
    File "spotipo/unifispot/modules/branding/main.pyx", line 100, in unifispot.modules.branding.main.get_custom_login_heading
    File "spotipo/unifispot/modules/branding/main.pyx", line 73, in unifispot.modules.branding.main.get_branding_data
    File "spotipo/unifispot/utils/options.pyx", line 222, in unifispot.utils.options.validate_atleast_one_paid_sub
    AttributeError: 'NoneType' object has no attribute 'iteritems'
    [pid: 14808|app: 0|req: 22/50] 10.71.72.18 () {44 vars in 1054 bytes} [Tue Jan 8 16:19:25 2019] GET /login?next=%2F => generated 2754 bytes in 24 msecs (HTTP/1.1 500) 4 headers in 348 bytes (1 switches on core 0)
    [pid: 14808|app: 0|req: 23/51] 10.71.72.18 () {44 vars in 951 bytes} [Tue Jan 8 16:19:28 2019] GET / => generated 237 bytes in 4 msecs (HTTP/1.1 302) 5 headers in 446 bytes (1 switches on core 0)
    DEBUG:flask.app:License Key Not available
    ERROR:flask.app:Exception on /login [GET]
    Traceback (most recent call last):
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask/app.py", line 2292, in wsgi_app
    response = self.full_dispatch_request()
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask/app.py", line 1815, in full_dispatch_request
    rv = self.handle_user_exception(e)
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask/app.py", line 1718, in handle_user_exception
    reraise(exc_type, exc_value, tb)
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask/app.py", line 1813, in full_dispatch_request
    rv = self.dispatch_request()
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask/app.py", line 1799, in dispatch_request
    return self.view_functionsrule.endpoint
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask_security/decorators.py", line 230, in wrapper
    return f(*args, **kwargs)
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask_security/views.py", line 89, in login
    **_ctx('login'))
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask_security/core.py", line 528, in render_template
    return render_template(*args, **kwargs)
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask/templating.py", line 135, in render_template
    context, ctx.app)
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask/templating.py", line 117, in _render
    rv = template.render(context)
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/jinja2/environment.py", line 1008, in render
    return self.environment.handle_exception(exc_info, True)
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/jinja2/environment.py", line 780, in handle_exception
    reraise(exc_type, exc_value, tb)
    File "/usr/share/nginx/spotipo/unifispot/templates/security/login_user.html", line 2, in top-level template code
    {% extends 'base.html' %}
    File "/usr/share/nginx/spotipo/unifispot/templates/base.html", line 38, in top-level template code
    {% block contentBlock %}
    File "/usr/share/nginx/spotipo/unifispot/templates/security/login_user.html", line 23, in block "contentBlock"
    {{emit_event('branding-permission-login-heading') | safe}}
    File "/usr/share/nginx/spotipo/.env/src/spotipo-plugins/spotipo_plugins/init.py", line 483, in template_emit
    rv = f(*args, **kwargs)
    File "spotipo/unifispot/modules/branding/main.pyx", line 100, in unifispot.modules.branding.main.get_custom_login_heading
    File "spotipo/unifispot/modules/branding/main.pyx", line 73, in unifispot.modules.branding.main.get_branding_data
    File "spotipo/unifispot/utils/options.pyx", line 222, in unifispot.utils.options.validate_atleast_one_paid_sub
    AttributeError: 'NoneType' object has no attribute 'iteritems'
    [pid: 14808|app: 0|req: 24/52] 10.71.72.18 () {44 vars in 1047 bytes} [Tue Jan 8 16:19:28 2019] GET /login?next=%2F => generated 2507 bytes in 22 msecs (HTTP/1.1 500) 4 headers in 348 bytes (1 switches on core 0)
    [pid: 14808|app: 0|req: 25/53] 10.71.72.18 () {44 vars in 951 bytes} [Tue Jan 8 16:20:54 2019] GET / => generated 237 bytes in 5 msecs (HTTP/1.1 302) 5 headers in 446 bytes (1 switches on core 0)
    DEBUG:flask.app:License Key Not available
    ERROR:flask.app:Exception on /login [GET]
    Traceback (most recent call last):
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask/app.py", line 2292, in wsgi_app
    response = self.full_dispatch_request()
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask/app.py", line 1815, in full_dispatch_request
    rv = self.handle_user_exception(e)
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask/app.py", line 1718, in handle_user_exception
    reraise(exc_type, exc_value, tb)
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask/app.py", line 1813, in full_dispatch_request
    rv = self.dispatch_request()
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask/app.py", line 1799, in dispatch_request
    return self.view_functionsrule.endpoint
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask_security/decorators.py", line 230, in wrapper
    return f(*args, **kwargs)
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask_security/views.py", line 89, in login
    **_ctx('login'))
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask_security/core.py", line 528, in render_template
    return render_template(*args, **kwargs)
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask/templating.py", line 135, in render_template
    context, ctx.app)
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask/templating.py", line 117, in _render
    rv = template.render(context)
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/jinja2/environment.py", line 1008, in render
    return self.environment.handle_exception(exc_info, True)
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/jinja2/environment.py", line 780, in handle_exception
    reraise(exc_type, exc_value, tb)
    File "/usr/share/nginx/spotipo/unifispot/templates/security/login_user.html", line 2, in top-level template code
    {% extends 'base.html' %}
    File "/usr/share/nginx/spotipo/unifispot/templates/base.html", line 38, in top-level template code
    {% block contentBlock %}
    File "/usr/share/nginx/spotipo/unifispot/templates/security/login_user.html", line 23, in block "contentBlock"
    {{emit_event('branding-permission-login-heading') | safe}}
    File "/usr/share/nginx/spotipo/.env/src/spotipo-plugins/spotipo_plugins/init.py", line 483, in template_emit
    rv = f(*args, **kwargs)
    File "spotipo/unifispot/modules/branding/main.pyx", line 100, in unifispot.modules.branding.main.get_custom_login_heading
    File "spotipo/unifispot/modules/branding/main.pyx", line 73, in unifispot.modules.branding.main.get_branding_data
    File "spotipo/unifispot/utils/options.pyx", line 222, in unifispot.utils.options.validate_atleast_one_paid_sub
    AttributeError: 'NoneType' object has no attribute 'iteritems'
    [pid: 14808|app: 0|req: 26/54] 10.71.72.18 () {44 vars in 1047 bytes} [Tue Jan 8 16:20:54 2019] GET /login?next=%2F => generated 2507 bytes in 23 msecs (HTTP/1.1 500) 4 headers in 348 bytes (1 switches on core 0)
    DEBUG:flask.app:License Key Not available
    ERROR:flask.app:Exception on /login [GET]
    Traceback (most recent call last):
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask/app.py", line 2292, in wsgi_app
    response = self.full_dispatch_request()
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask/app.py", line 1815, in full_dispatch_request
    rv = self.handle_user_exception(e)
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask/app.py", line 1718, in handle_user_exception
    reraise(exc_type, exc_value, tb)
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask/app.py", line 1813, in full_dispatch_request
    rv = self.dispatch_request()
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask/app.py", line 1799, in dispatch_request
    return self.view_functionsrule.endpoint
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask_security/decorators.py", line 230, in wrapper
    return f(*args, **kwargs)
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask_security/views.py", line 89, in login
    **_ctx('login'))
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask_security/core.py", line 528, in render_template
    return render_template(*args, **kwargs)
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask/templating.py", line 135, in render_template
    context, ctx.app)
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/flask/templating.py", line 117, in _render
    rv = template.render(context)
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/jinja2/environment.py", line 1008, in render
    return self.environment.handle_exception(exc_info, True)
    File "/usr/share/nginx/spotipo/.env/local/lib/python2.7/site-packages/jinja2/environment.py", line 780, in handle_exception
    reraise(exc_type, exc_value, tb)
    File "/usr/share/nginx/spotipo/unifispot/templates/security/login_user.html", line 2, in top-level template code
    {% extends 'base.html' %}
    File "/usr/share/nginx/spotipo/unifispot/templates/base.html", line 38, in top-level template code
    {% block contentBlock %}
    File "/usr/share/nginx/spotipo/unifispot/templates/security/login_user.html", line 23, in block "contentBlock"
    {{emit_event('branding-permission-login-heading') | safe}}
    File "/usr/share/nginx/spotipo/.env/src/spotipo-plugins/spotipo_plugins/init.py", line 483, in template_emit
    rv = f(*args, **kwargs)
    File "spotipo/unifispot/modules/branding/main.pyx", line 100, in unifispot.modules.branding.main.get_custom_login_heading
    File "spotipo/unifispot/modules/branding/main.pyx", line 73, in unifispot.modules.branding.main.get_branding_data
    File "spotipo/unifispot/utils/options.pyx", line 222, in unifispot.utils.options.validate_atleast_one_paid_sub
    AttributeError: 'NoneType' object has no attribute 'iteritems'
    [pid: 14808|app: 0|req: 27/55] 10.71.72.18 () {46 vars in 1009 bytes} [Tue Jan 8 16:25:43 2019] GET /login?next=%2F => generated 2260 bytes in 28 msecs (HTTP/1.1 500) 4 headers in 348 bytes (1 switches on core 0)



  • Could you please try again now. This should be fixed in 3.1.5

    Try

    sudo apt update
    sudo apt install spotipo
    


  • @rakesh-mukundan said in 500 Error:

    sudo apt install spotipo

    Seems working now, sweet! Thanks!


 

});