Blank Page on Pithos

20 views
Skip to first unread message

Collins Udanor

unread,
Feb 4, 2017, 12:26:49 PM2/4/17
to Synnefo
I tried connecting to Pithos from the Astakos Dashboard

- I can login via astakos
- I get redirected to https://node2.example.com/pithos/ui/
- the page shows only a menu bar, but blank, no content on it

-The gunicorn error is below:
Looking in /var/log/synnefo/gunicorn.log I see:

2017-02-04 16:52:23,316 [5643] gunicorn.error glogging [DEBUG] POST /pithos/ui/pithos/ui/pithos/ui/_astakos/identity/tokens/


-The debugger console error:




Can someone assist?

Thanks

Brian Candler

unread,
Feb 10, 2017, 9:04:18 AM2/10/17
to Synnefo
I can't see that image, but from Chrome debugger I see:

Error: Failed to resolve authentication params (TypeError: Cannot read property 'token' of undefined)
    at snf-ui-d9fc547….js:2
    at y (vendor-70b2994….js:16)
    at b (vendor-70b2994….js:16)
    at v (vendor-70b2994….js:16)
    at d (vendor-70b2994….js:16)
    at vendor-70b2994….js:11
    at invoke (vendor-70b2994….js:4)
    at r.flush (vendor-70b2994….js:4)
    at n.flush (vendor-70b2994….js:4)
    at a.end (vendor-70b2994….js:4)

Brian Candler

unread,
Feb 10, 2017, 11:39:30 AM2/10/17
to Synnefo
It looks like there might be an error in the documentation.

PITHOS_OAUTH2_CLIENT_CREDENTIALS = ("pithos-view", "secret_passw0rd")

# snf-manage oauth2-client-add pithos-view --secret=example_passw0rd --is-trusted --url https://node2.example.com/pithos/ui/view

Spot the password mismatch :-)

So I did this:

snf-manage oauth2-client-remove pithos-view
snf-manage oauth2-client-add pithos-view --secret=secret_passw0rd --is-trusted --url https://node2.example.com/pithos/ui/view

and restarted gunicorn on both sides - but unfortunately no difference :-(

On node2 gunicorn is running with --log-level=debug, and I see in /var/log/synnefo/gunicorn.log

2017-02-10 16:14:40 [10796] [DEBUG] GET /pithos/ui/
2017-02-10 16:14:40,781 [10796] gunicorn.error glogging [DEBUG] GET /pithos/ui/
2017-02-10 16:14:44 [10796] [DEBUG] POST /pithos/ui/pithos/ui/pithos/ui/_astakos/identity/tokens/
2017-02-10 16:14:44,022 [10796] gunicorn.error glogging [DEBUG] POST /pithos/ui/pithos/ui/pithos/ui/_astakos/identity/tokens/
2017-02-10 16:14:44 [10796] [DEBUG] POST /pithos/ui/pithos/ui/pithos/ui/_astakos/identity/tokens/
2017-02-10 16:14:44,182 [10796] gunicorn.error glogging [DEBUG] POST /pithos/ui/pithos/ui/pithos/ui/_astakos/identity/tokens/

Aha, "/pithos/ui/pithos/ui/pithos/ui/" is suspicious!

OK: at last I found the problem: UI_BASE_URL had been wrongly set to "pithos/ui/" instead of "/pithos/ui/".  I fixed it and it's OK.


For the Pithos UI to be accessible via the /pithos/ui/ endpoint change the UI_BASE_URL setting in the /etc/synnefo/20-snf-ui-settings.conf file to /pithos/ui/.

But that's not a URL, just a path. All the other *_BASE_URL settings are real URLs.  Should this setting actually be https://node2.example.com/pithos/ui/ ?  I tried it, and it doesn't work (the page gives a 404 error now).  So I guess really it is a path that's required, not a URL.

Regards,

Brian.
Reply all
Reply to author
Forward
0 new messages