🐛 Bug Report: Initial Setup Fails #411

Closed
opened 2025-10-07 00:13:50 +03:00 by OVERLORD · 8 comments
Owner

Originally created by @boomam on GitHub.

Reproduction steps

Deploying via the Unraid template for testing - unable to do any login whatsoever as it doesn't let me register or create a passkey. Proxy in front of Pocket-ID is Traefik, accessing via HTTPS.

If i go to the initial /admin/setup URL, i get Something went wrong Not Found
If i then try a normal login i get prompted for a passkey, but only mobile based passkeys, but i don't get the option to create one.
As a result, i cannot login or test.

Are there some missing setup steps perhaps?

Thanks!

Expected behavior

Allow me to create an initial admin passkey and continue.

Actual Behavior

Doesn't allow me to do anything.

Originally created by @boomam on GitHub. ### Reproduction steps Deploying via the Unraid template for testing - unable to do *any* login whatsoever as it doesn't let me register or create a passkey. Proxy in front of Pocket-ID is Traefik, accessing via HTTPS. If i go to the initial /admin/setup URL, i get `Something went wrong Not Found` If i then try a normal login i get prompted for a passkey, but only mobile based passkeys, but i don't get the option to create one. As a result, i cannot login or test. Are there some missing setup steps perhaps? Thanks! ### Expected behavior Allow me to create an initial admin passkey and continue. ### Actual Behavior Doesn't allow me to do anything.
OVERLORD added the bug label 2025-10-07 00:13:50 +03:00
Author
Owner

@boomam commented on GitHub:

Yes, the environment variable was correctly set.
Reverting it to PUBLIC_APP_URL, and running the browser dev tool logs shows nothing, literally nothing, for some reason.
Tested a different site, and logs do appear in the console...
 
Accessing /admin/setup however gives the following in the console/log -

GET https://pocketid.domain.com/admin/setup 404 (Not Found)
@boomam commented on GitHub: Yes, the environment variable was correctly set. Reverting it to `PUBLIC_APP_URL`, and running the browser dev tool logs shows nothing, literally nothing, for some reason. Tested a different site, and logs do appear in the console...   Accessing /admin/setup however gives the following in the console/log - ``` GET https://pocketid.domain.com/admin/setup 404 (Not Found) ```
Author
Owner

@stonith404 commented on GitHub:

Oops sorry I meant PUBLIC_APP_URL. So this variable is correctly set to the URL where you try to access Pocket ID?

Can you share the logs of the browser dev tools?

@stonith404 commented on GitHub: Oops sorry I meant `PUBLIC_APP_URL`. So this variable is correctly set to the URL where you try to access Pocket ID? Can you share the logs of the browser dev tools?
Author
Owner

@boomam commented on GitHub:

Different issue after changing that environment variable to the correct name.
This time i cannot get the passkey prompt at all.

Logs this time -

Error #01: You are not signed in
Error #01: You are not signed in
[GIN] 2025/01/13 - 16:55:33 | 200 |     503.352µs |       127.0.0.1 | GET      "/api/application-configuration"
[GIN] 2025/01/13 - 16:55:33 | 200 |     539.842µs |       127.0.0.1 | GET      "/api/application-configuration"
SvelteKitError: Not found: /admin/setup
    at resolve2 (file:///app/frontend/build/server/chunks/index-B8XkLIx2.js:5351:18)
    at resolve (file:///app/frontend/build/server/chunks/index-B8XkLIx2.js:5184:34)
    at Object.handle (file:///app/frontend/build/server/chunks/hooks.server-BFdEgVP7.js:41:26)
    at respond (file:///app/frontend/build/server/chunks/index-B8XkLIx2.js:5182:43) {
  status: 404,
  text: 'Not Found'
}
[GIN] 2025/01/13 - 16:55:33 | 401 |       53.99µs |       127.0.0.1 | GET      "/api/users/me"
Error #01: You are not signed in
[GIN] 2025/01/13 - 16:55:33 | 401 |      103.44µs |       127.0.0.1 | GET      "/api/users/me"
Error #01: You are not signed in
[GIN] 2025/01/13 - 16:55:33 | 200 |     397.311µs |       127.0.0.1 | GET      "/api/application-configuration"
[GIN] 2025/01/13 - 16:55:33 | 200 |     430.251µs |       127.0.0.1 | GET      "/api/application-configuration"
SvelteKitError: Not found: /admin/setup
    at resolve2 (file:///app/frontend/build/server/chunks/index-B8XkLIx2.js:5351:18)
    at resolve (file:///app/frontend/build/server/chunks/index-B8XkLIx2.js:5184:34)
    at Object.handle (file:///app/frontend/build/server/chunks/hooks.server-BFdEgVP7.js:41:26)
    at respond (file:///app/frontend/build/server/chunks/index-B8XkLIx2.js:5182:43) {
  status: 404,
  text: 'Not Found'
}
@boomam commented on GitHub: Different issue after changing that environment variable to the correct name. This time i cannot get the passkey prompt at all. Logs this time - ``` Error #01: You are not signed in Error #01: You are not signed in [GIN] 2025/01/13 - 16:55:33 | 200 | 503.352µs | 127.0.0.1 | GET "/api/application-configuration" [GIN] 2025/01/13 - 16:55:33 | 200 | 539.842µs | 127.0.0.1 | GET "/api/application-configuration" SvelteKitError: Not found: /admin/setup at resolve2 (file:///app/frontend/build/server/chunks/index-B8XkLIx2.js:5351:18) at resolve (file:///app/frontend/build/server/chunks/index-B8XkLIx2.js:5184:34) at Object.handle (file:///app/frontend/build/server/chunks/hooks.server-BFdEgVP7.js:41:26) at respond (file:///app/frontend/build/server/chunks/index-B8XkLIx2.js:5182:43) { status: 404, text: 'Not Found' } [GIN] 2025/01/13 - 16:55:33 | 401 | 53.99µs | 127.0.0.1 | GET "/api/users/me" Error #01: You are not signed in [GIN] 2025/01/13 - 16:55:33 | 401 | 103.44µs | 127.0.0.1 | GET "/api/users/me" Error #01: You are not signed in [GIN] 2025/01/13 - 16:55:33 | 200 | 397.311µs | 127.0.0.1 | GET "/api/application-configuration" [GIN] 2025/01/13 - 16:55:33 | 200 | 430.251µs | 127.0.0.1 | GET "/api/application-configuration" SvelteKitError: Not found: /admin/setup at resolve2 (file:///app/frontend/build/server/chunks/index-B8XkLIx2.js:5351:18) at resolve (file:///app/frontend/build/server/chunks/index-B8XkLIx2.js:5184:34) at Object.handle (file:///app/frontend/build/server/chunks/hooks.server-BFdEgVP7.js:41:26) at respond (file:///app/frontend/build/server/chunks/index-B8XkLIx2.js:5182:43) { status: 404, text: 'Not Found' } ```
Author
Owner

@stonith404 commented on GitHub:

Can you share the logs? And did you set the environment variable "APP_URL" correctly?

@stonith404 commented on GitHub: Can you share the logs? And did you set the environment variable "APP_URL" correctly?
Author
Owner

@boomam commented on GitHub:

Hey,
The logs dont show anything, just confirmation of access -

[GIN] 2025/01/13 - 16:45:36 | 304 |     101.751µs |   1.2.3.4 | GET      "/api/application-configuration/logo?light=true"
[GIN] 2025/01/13 - 16:45:36 | 304 |     133.451µs |   1.2.3.4 | GET      "/api/application-configuration/logo?light=true"
[GIN] 2025/01/13 - 16:49:41 | 304 |      106.71µs |   1.2.3.4 | GET      "/api/application-configuration/logo?light=true"
[GIN] 2025/01/13 - 16:49:41 | 304 |     140.011µs |   1.2.3.4 | GET      "/api/application-configuration/logo?light=true"
[GIN] 2025/01/13 - 16:49:41 | 200 |    5.719379ms |   1.2.3.4 | GET      "/api/webauthn/login/start"
[GIN] 2025/01/13 - 16:49:41 | 200 |    5.751229ms |   1.2.3.4 | GET      "/api/webauthn/login/start"

Checking the Unraid template, looks like its setting PUBLIC_APP_URL instead of APP_URL, give me a few mins to test...

@boomam commented on GitHub: Hey, The logs dont show anything, just confirmation of access - ``` [GIN] 2025/01/13 - 16:45:36 | 304 | 101.751µs | 1.2.3.4 | GET "/api/application-configuration/logo?light=true" [GIN] 2025/01/13 - 16:45:36 | 304 | 133.451µs | 1.2.3.4 | GET "/api/application-configuration/logo?light=true" [GIN] 2025/01/13 - 16:49:41 | 304 | 106.71µs | 1.2.3.4 | GET "/api/application-configuration/logo?light=true" [GIN] 2025/01/13 - 16:49:41 | 304 | 140.011µs | 1.2.3.4 | GET "/api/application-configuration/logo?light=true" [GIN] 2025/01/13 - 16:49:41 | 200 | 5.719379ms | 1.2.3.4 | GET "/api/webauthn/login/start" [GIN] 2025/01/13 - 16:49:41 | 200 | 5.751229ms | 1.2.3.4 | GET "/api/webauthn/login/start" ``` Checking the Unraid template, looks like its setting `PUBLIC_APP_URL` instead of `APP_URL`, give me a few mins to test...
Author
Owner

@stonith404 commented on GitHub:

You should visit /login/setup instead of /admin/setup.

@stonith404 commented on GitHub: You should visit `/login/setup` instead of `/admin/setup`.
Author
Owner

@boomam commented on GitHub:

That works!
I can get into the admin GUI now.

@boomam commented on GitHub: That works! I can get into the admin GUI now.
Author
Owner

@stonith404 commented on GitHub:

Ok, great!

@stonith404 commented on GitHub: Ok, great!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/pocket-id#411