What type of hardware are you using: Old laptop or computer What YunoHost version are you running: 12.0.10 What app is this about: Paperless
Describe your issue
What I’m trying to achieve : Use Paperless.
What happens : Used to be functional, started using it but mostly testing luckily. Then, randomly, I would not access it anymore : when going to the dedicated domain, it would just redirect me immediately to the user space with the list of all apps. Since I had not any critical document on it, I just tried deleting it to reinstall from scratch, but the issue persist.
Paperless is installed on sub.noho.st (at the root)
On sub.mydomain.tld I configured Paperless as default app.
Now what happens is:
When not logged in:
visiting sub.mydomain.tld, I’m forwarded to sub.noho.st
at sub.noho.st I’m presented with the Yunohost login screen
after logging in to Yunohost, I’m presented with the Paperless login screen
after logging in to Paperless, I am of course in Paperless, at sub.noho.st/dashboard
When I have logged in to Yunohost before:
visiting sub.mydomain.tld will forward me to sub.noho.st
at sub.noho.st I am not forwarded to Paperless. I am presented with the app list
after clicking Paperless, I arrive at sub.noho.st/dashboard (without a separate login to Paperless)
Logging out of Paperless, also logs me out of Yunohost.
It seems the behaviour is different whether a visitor is logged in or not, and that not being logged in is closer to the expected behaviour than being logged in.
The app permission to Paperless is set to “all_users”, the default after installing. After I add ‘visitors’ to the allowed users:
When not logged in:
visiting sub.mydomain.tld forwards me to the login screen of Paperless at sub.noho.stdirectly, without stop at the login screen for Yunohost
When already logged in:
visiting sub.mydomain.tld forwards me to Paperless directly, without stop at the app screen at sub.noho.st
It may be that some header is needed for the right permissions the flow from ‘default app landing page’ to ‘paperless-as-default-app’ to work. The nginx logs may help with that, but my expertise with nginx is insufficient to make that work without the public ‘visitor’ permission applied to Paperless.
After unsetting Paperless as the default app for sub.domain.tld, visiting sub.noho.st (the domain where it is installed) would open Paperless directly. Unexpected side effect: the Paperless button disappeared from the app list. I did not look further into that.
TL;DR: adding Paperless to the ‘Visitors’ group allowed me to go to Paperless at sub.noho.st directly, without being redirected to the app list.
Thank you it worked ! Was able to reproduce every step you mentioned ! It is a good temporary solution, but I guess I should open an issue on the yunohost paperless github ? Never did that, how difficult is it for a non technical user ?
Do I flag your answer as a solution even if it is a way to circumvent the problem ?
I’m not sure whether it is a ‘problem’ with Paperless, with permissions, or with Nginx. Paperless may be the best indeed if you file an issue. It shouldn’t be much more difficult than writing a post here; it’s the same people reading those issues as those that hang around on the forum
You could tick my post as solution, but as it is a bit long, you could make a reply with just the action to take and maybe a screenshot where to do it and mark that as solution. That way it is easy to find for someone else.
In the “Visitors” group, add Paperless (it will appear under the name you gave during the install process. The api and share are probably already there, see screenshot below.)
Done, that simple.
Note : Your Paperless login interface is now open to all visitors. As always, make sure to have a strong password !