mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-06 09:13:19 +03:00
🐛 Bug Report: Since 1.0 #192
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @brentcrammond on GitHub.
Reproduction steps
Since 1.0.0 I have not been able to set it up. I have since upgraded to 1.1.0 and still the same behaviour.
I removed the data directory and recreated it.
It goes from the Pocket Id Setup Screen straight to the Authenticate Screen rather than to my configuration screen.
I tried generating a Login code for Admin and the same thing happens.
Expected behavior
Should go to the Setup Screen.
Actual Behavior
Goes to Authenticate Screen.
Version and Environment
v1.1.0
Log Output
Error #01: You are not signed in
[GIN] 2025/05/29 - 20:59:51 | 200 | 325.754µs | 172.19.0.1 | GET "/api/application-configuration"
[GIN] 2025/05/29 - 20:59:51 | 200 | 434.547µs | 172.19.0.1 | GET "/api/application-configuration"
[GIN] 2025/05/29 - 20:59:51 | 200 | 120.92µs | 172.19.0.1 | GET "/_app/immutable/chunks/CqSS0KpJ.js"
[GIN] 2025/05/29 - 20:59:51 | 200 | 228.561µs | 172.19.0.1 | GET "/_app/immutable/chunks/CqSS0KpJ.js"
[GIN] 2025/05/29 - 20:59:51 | 200 | 93.153µs | 172.19.0.1 | GET "/_app/immutable/chunks/DE3NMZcN.js"
[GIN] 2025/05/29 - 20:59:51 | 200 | 191.272µs | 172.19.0.1 | GET "/_app/immutable/chunks/DE3NMZcN.js"
[GIN] 2025/05/29 - 20:59:51 | 200 | 608.193µs | 172.19.0.1 | GET "/_app/immutable/nodes/10.DY40ijMa.js"
[GIN] 2025/05/29 - 20:59:51 | 200 | 669.277µs | 172.19.0.1 | GET "/_app/immutable/nodes/10.DY40ijMa.js"
[GIN] 2025/05/29 - 20:59:51 | 200 | 209.88µs | 172.19.0.1 | GET "/_app/immutable/chunks/C8Uzcp-Y.js"
[GIN] 2025/05/29 - 20:59:51 | 200 | 330.12µs | 172.19.0.1 | GET "/_app/immutable/chunks/C8Uzcp-Y.js"
[GIN] 2025/05/29 - 20:59:51 | 200 | 294.71µs | 172.19.0.1 | GET "/_app/immutable/chunks/CZFQFdVL.js"
[GIN] 2025/05/29 - 20:59:51 | 200 | 383.53µs | 172.19.0.1 | GET "/_app/immutable/chunks/CZFQFdVL.js"
[GIN] 2025/05/29 - 20:59:51 | 401 | 177.073µs | 172.19.0.1 | GET "/api/users/me"
Error #01: You are not signed in
[GIN] 2025/05/29 - 20:59:51 | 401 | 307.165µs | 172.19.0.1 | GET "/api/users/me"
Error #01: You are not signed in
[GIN] 2025/05/29 - 20:59:51 | 200 | 1.427034ms | 172.19.0.1 | GET "/api/application-configuration"
[GIN] 2025/05/29 - 20:59:51 | 200 | 1.953721ms | 172.19.0.1 | GET "/api/application-configuration"
[GIN] 2025/05/29 - 20:59:51 | 304 | 290.046µs | 172.19.0.1 | GET "/api/application-configuration/logo?light=false"
[GIN] 2025/05/29 - 20:59:51 | 304 | 362.416µs | 172.19.0.1 | GET "/api/application-configuration/logo?light=false"
[GIN] 2025/05/29 - 20:59:51 | 304 | 225.139µs | 172.19.0.1 | GET "/api/application-configuration/background-image"
[GIN] 2025/05/29 - 20:59:51 | 304 | 286.261µs | 172.19.0.1 | GET "/api/application-configuration/background-image"
[GIN] 2025/05/29 - 20:59:51 | 200 | 18.203684ms | 172.19.0.1 | POST "/api/one-time-access-token/uq8S4t8GSEbYd5MP"
[GIN] 2025/05/29 - 20:59:51 | 200 | 18.285466ms | 172.19.0.1 | POST "/api/one-time-access-token/uq8S4t8GSEbYd5MP"
[GIN] 2025/05/29 - 20:59:51 | 401 | 127.202µs | 172.19.0.1 | GET "/api/users/me"
Error #01: You are not signed in
[GIN] 2025/05/29 - 20:59:51 | 401 | 234.662µs | 172.19.0.1 | GET "/api/users/me"
Error #01: You are not signed in
[GIN] 2025/05/29 - 20:59:51 | 200 | 241.159µs | 172.19.0.1 | GET "/api/application-configuration"
[GIN] 2025/05/29 - 20:59:51 | 200 | 309.709µs | 172.19.0.1 | GET "/api/application-configuration"
[GIN] 2025/05/29 - 20:59:51 | 401 | 35.249µs | 172.19.0.1 | GET "/api/users/me"
Error #01: You are not signed in
[GIN] 2025/05/29 - 20:59:51 | 401 | 60.38µs | 172.19.0.1 | GET "/api/users/me"
Error #01: You are not signed in
[GIN] 2025/05/29 - 20:59:51 | 200 | 49.497µs | 172.19.0.1 | GET "/api/application-configuration"
[GIN] 2025/05/29 - 20:59:51 | 200 | 70.099µs | 172.19.0.1 | GET "/api/application-configuration"
2025/05/29 21:00:00 Job "SyncLdap" run successfully
[GIN] 2025/05/29 - 21:00:00 | 204 | 1.153µs | ::1 | GET "/healthz"
[GIN] 2025/05/29 - 21:00:00 | 204 | 36.303µs | ::1 | GET "/healthz"
[GIN] 2025/05/29 - 21:01:30 | 204 | 1.132µs | ::1 | GET "/healthz"
[GIN] 2025/05/29 - 21:01:30 | 204 | 33.085µs | ::1 | GET "/healthz"
[GIN] 2025/05/29 - 21:03:00 | 204 | 1.064µs | ::1 | GET "/healthz"
[GIN] 2025/05/29 - 21:03:00 | 204 | 30.732µs | ::1 | GET "/healthz"
@brentcrammond commented on GitHub:
docker-compose.yml
services:
pocket-id:
container_name: pocket-id
image: ghcr.io/pocket-id/pocket-id:v1.1.0
env_file: .env
ports:
- "1411:1411"
networks:
- default
- backbone
volumes:
- "./data:/app/data"
restart: unless-stopped
healthcheck:
test: "curl -f http://localhost:1411/healthz"
interval: 1m30s
timeout: 5s
retries: 2
start_period: 10s
networks:
default:
backbone:
external: true
.env
See the documentation for more information: https://pocket-id.org/docs/configuration/environment-variables
APP_URL=http://nuc:1411
TRUST_PROXY=false
MAXMIND_LICENSE_KEY=
PUID=1000
PGID=1000
@simono41 commented on GitHub:
I have the problem, too.
It has had a short time after the successful migration to v1.0.0 worked but now it does not work on both versions v1.0.0 and v1.1.0 anymore.
@stonith404 commented on GitHub:
The image doesn't load
@stonith404 commented on GitHub:
@brentcrammond You have to use https as stated in the docs.
@brentcrammond commented on GitHub:
I'm confused it states http not https see below.
[image: image.png]
Kind Regards
Brent Crammond
On Fri, May 30, 2025 at 9:52 AM Elias Schneider @.***>
wrote:
@brentcrammond commented on GitHub:
I did try https but that didn't work either.
Yes http://localhost:1411/login/setup kind of suggests http.
Kind Regards
Brent Crammond
MBA, BSc(Comp. Sci.)
email: @.*** @.***>
mobile: +64 21 228 5366
“Live as if you were to die tomorrow. Learn as if you were to live
forever” - Gandhi
On Fri, May 30, 2025 at 11:31 AM Elias Schneider @.***>
wrote:
@stonith404 commented on GitHub:
I don't see where it should state that you should use http instead of https in your screenshot. Maybe the "http://localhost:1411/login/setup" confuses you?
But anyways, does it work with https enabled?
@brentcrammond commented on GitHub:
Note I am treating it as a new installation and have deleted all files in data and cleared out cookies and local/session storage
@brentcrammond commented on GitHub:
@Loapu commented on GitHub:
@brentcrammond I think @stonith404 meant this page: https://pocket-id.org/docs/troubleshooting/common-issues
There it states that you should navigate to the public URL to set up the admin account. In your environment, the app URL is "http://nuc:1411" which is in fact HTTP and not HTTPS. You need a true HTTPS setup with a valid certificate and the correct APP_URL set in your environment for any passkey-stuff to work correctly.
@brentcrammond commented on GitHub:
I'll put it back behind my reverse proxy, I had removed it from there as I
was getting another error.
Kind Regards
Brent Crammond
On Sat, May 31, 2025 at 1:11 AM Elias Schneider @.***>
wrote:
@stonith404 commented on GitHub:
@simono41 Okay that's really odd, let me know if you have the issue again.
@brentcrammond Can you confirm that you are accessing Pocket ID over HTTPS when you try to open the setup page?
If yes, please share a screenshot of the
/api/one-time-access-token/setuprequest in the network tab of the Chrom dev tools:@progsam commented on GitHub:
I had the same issues. The main source of the confusion are the paragraphs in https://pocket-id.org/docs/setup/installation:

I suggest editing that to something like:
Same with the
.envfile. The entry should be changed toAPP_URL=https://id.example.cominstead ofAPP_URL=http://localhost:1411and add a comment that it's necessary to change.The "Before you start" section can also be expanded to include examples of how to use reverse proxies like Traefik for self-hosted sites. I used Cloudflare Tunnels (my nameservers were already hosted there). It was easy to set up a public hostname to point to a self-hosted IP like http://10.0.0.2:1411.
@simono41 commented on GitHub:
With me, I had already set it to HTTPS. But now comes something banal, I have tried the login again today, and now it has worked like a magic hand again. I had exactly the same error message yesterday @brentcrammond
@stonith404 commented on GitHub:
Thanks for the suggestion. The
.env.examplehas now an URL with https and I've improved the docs.I'm closing this issue because the issue seems that you're not using HTTPS.
@brentcrammond commented on GitHub:
Thanks I finally got around to getting it going, it is sitting behind my
caddy server. Weird thing is it is pretty much how I had it configured
initially.
Kind Regards
Brent Crammond
On Sun, Jun 1, 2025 at 6:53 AM Elias Schneider @.***>
wrote: