mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-13 10:24:52 -05:00
Unauthorized when trying to create New Organization #160
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 @ericflix on GitHub (Mar 19, 2025).
New installation on Ubuntu 24.02 LTS. ran with installer script.
I can browse to the management page and log in. When prompted for the initial setup I enter any name and click create organization, there is an immediate message "Unauthorized"
`
$ sudo docker logs pangolin
Starting migrations from version 1.0.1
Migrations to run:
All migrations completed successfully
2025-03-19T18:21:16.795Z [warn]: Email SMTP configuration is missing. Emails will not be sent.
2025-03-19T18:21:17.155Z [info]: Server admin (me@here.com) already exists
2025-03-19T18:21:17.780Z [info]: API server is running on http://localhost:3000
2025-03-19T18:21:17.781Z [info]: Internal server is running on http://localhost:3001
2025-03-19T18:21:18.016Z [info]: Next.js server is running on http://localhost:3002
npm error path /app
npm error command failed
npm error signal SIGTERM
npm error command sh -c NODE_OPTIONS=--enable-source-maps NODE_ENV=development ENVIRONMENT=prod sh -c 'node dist/migrations.mjs && node dist/server.mjs'
npm notice
npm notice New major version of npm available! 10.8.2 -> 11.2.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.2.0
npm notice To update run: npm install -g npm@11.2.0
npm notice
npm error A complete log of this run can be found in: /root/.npm/_logs/2025-03-19T18_21_13_625Z-debug-0.log
Starting migrations from version 1.0.1
Migrations to run:
All migrations completed successfully
2025-03-19T18:22:46.197Z [warn]: Email SMTP configuration is missing. Emails will not be sent.
2025-03-19T18:22:46.521Z [info]: Server admin (me@here.com) already exists
2025-03-19T18:22:47.361Z [info]: API server is running on http://localhost:3000
2025-03-19T18:22:47.361Z [info]: Internal server is running on http://localhost:3001
2025-03-19T18:22:47.681Z [info]: Next.js server is running on http://localhost:3002
npm error path /app
npm error command failed
npm error signal SIGTERM
npm error command sh -c NODE_OPTIONS=--enable-source-maps NODE_ENV=development ENVIRONMENT=prod sh -c 'node dist/migrations.mjs && node dist/server.mjs'
npm error A complete log of this run can be found in: /root/.npm/_logs/2025-03-19T18_22_42_650Z-debug-0.log
`
@miloschwartz commented on GitHub (Mar 19, 2025):
Are you logged in with the server admin credentials from the config file?
I don't see anything in these logs to indicate a problem as this just shows the startup logs. Are there any other errors server side when you click the create button? I can't think of why this would be throwing unauthorized.
@ericflix commented on GitHub (Mar 19, 2025):
Yes, when I click on the user menu on the upper left it shows my email and that I am the server admin, there are no other users.
@ericflix commented on GitHub (Mar 20, 2025):
I think I have solved it, It appears to be a cookies or cache issue, cleared chrome and it works now.