# Paperless reinstall redirect to user Portal

**URL:** https://forum.yunohost.org/t/paperless-reinstall-redirect-to-user-portal/34745
**Category:** Support apps
**Tags:** paperless-ngx, english
**Created:** [January 15, 2025, 9:20pm UTC](https://forum.yunohost.org/t/paperless-reinstall-redirect-to-user-portal/34745 "2025-01-15T21:20:44Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![PP44](https://forum.yunohost.org/user_avatar/forum.yunohost.org/pp44/32/1779_2.png) [@PP44](https://forum.yunohost.org/u/PP44)
#### Post date: [January 15, 2025, 9:20pm UTC](https://forum.yunohost.org/t/paperless-reinstall-redirect-to-user-portal/34745/1 "2025-01-15T21:20:44Z")

</div>

**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.

Any idea what is happening and how to fix it ?

Thank you all for your help ❤

### Share relevant logs or error messages

Reinstall logs if needed :  
[https://paste.yunohost.org/raw/fajofanice](https://paste.yunohost.org/raw/fajofanice)

---

<div class="post-metadata">

### Author: ![PP44](https://forum.yunohost.org/user_avatar/forum.yunohost.org/pp44/32/1779_2.png) [@PP44](https://forum.yunohost.org/u/PP44)
#### Post date: [January 19, 2025, 4:34pm UTC](https://forum.yunohost.org/t/paperless-reinstall-redirect-to-user-portal/34745/2 "2025-01-19T16:34:59Z")

</div>

Update :

- I tried installing it on a new subdomain, same issue
- Accessing through the api via the mobile app works without issue.

---

<div class="post-metadata">

### Author: ![wbk](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/w/e0b2c6/32.png) [@wbk](https://forum.yunohost.org/u/wbk)
#### Post date: [January 19, 2025, 5:27pm UTC](https://forum.yunohost.org/t/paperless-reinstall-redirect-to-user-portal/34745/3 "2025-01-19T17:27:33Z")

</div>

I installed Paperless -ngx on an otherwise empty Yunohost with two domains:

- sub.mydomain.tld (main)
- [sub.noho.st](http://sub.noho.st)

Furthermore:

- Paperless is installed on [sub.noho.st](http://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](http://sub.noho.st)
  - at [sub.noho.st](http://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](http://sub.noho.st/dashboard)

- When I _have_ logged in to Yunohost before:
  - visiting sub.mydomain.tld will forward me to [sub.noho.st](http://sub.noho.st)
  - at [sub.noho.st](http://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](http://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.st](http://sub.noho.st) _directly_, 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](http://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](http://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](http://sub.noho.st) directly, without being redirected to the app list.

---

<div class="post-metadata">

### Author: ![PP44](https://forum.yunohost.org/user_avatar/forum.yunohost.org/pp44/32/1779_2.png) [@PP44](https://forum.yunohost.org/u/PP44)
#### Post date: [January 19, 2025, 6:50pm UTC](https://forum.yunohost.org/t/paperless-reinstall-redirect-to-user-portal/34745/4 "2025-01-19T18:50:36Z")

</div>

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 ?

Thank you so much ! ❤ ❤ ❤

---

<div class="post-metadata">

### Author: ![wbk](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/w/e0b2c6/32.png) [@wbk](https://forum.yunohost.org/u/wbk)
#### Post date: [January 19, 2025, 9:48pm UTC](https://forum.yunohost.org/t/paperless-reinstall-redirect-to-user-portal/34745/5 "2025-01-19T21:48:22Z")

</div>

Good to find it got the issue resolved!

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.

---

<div class="post-metadata">

### Author: ![PP44](https://forum.yunohost.org/user_avatar/forum.yunohost.org/pp44/32/1779_2.png) [@PP44](https://forum.yunohost.org/u/PP44)
#### Post date: [January 20, 2025, 2:56pm UTC](https://forum.yunohost.org/t/paperless-reinstall-redirect-to-user-portal/34745/6 "2025-01-20T14:56:43Z")

</div>

Here is the workaround summary thanks to @wbk 💟 :

- Go to the admin interface
- Go to Users
- Click on “Manage groups and permissions”
- 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 !

 ![Screenshot from 2025-01-20 15-44-40](https://forum.yunohost.org/uploads/default/original/2X/7/7930d17b514cd231f1c0c3ff99dfbd9abce0a31c.png)

---

<div class="post-metadata">

### Author: ![system](https://forum.yunohost.org/uploads/default/original/2X/f/f59fe8e3ee6b100b4f574d30d6e30479c68b89f0.png) [@system](https://forum.yunohost.org/u/system)
#### Post date: [February 4, 2025, 2:57pm UTC](https://forum.yunohost.org/t/paperless-reinstall-redirect-to-user-portal/34745/7 "2025-02-04T14:57:01Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
