Unauthorized when trying to create New Organization #160

Closed
opened 2025-11-13 11:51:51 -06:00 by GiteaMirror · 3 comments
Owner

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

@fosrl/pangolin@0.0.0 start
NODE_OPTIONS=--enable-source-maps NODE_ENV=development ENVIRONMENT=prod sh -c 'node dist/migrations.mjs && node dist/server.mjs'

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

@fosrl/pangolin@0.0.0 start
NODE_OPTIONS=--enable-source-maps NODE_ENV=development ENVIRONMENT=prod sh -c 'node dist/migrations.mjs && node dist/server.mjs'

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
`

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 > @fosrl/pangolin@0.0.0 start > NODE_OPTIONS=--enable-source-maps NODE_ENV=development ENVIRONMENT=prod sh -c 'node dist/migrations.mjs && node dist/server.mjs' 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 > @fosrl/pangolin@0.0.0 start > NODE_OPTIONS=--enable-source-maps NODE_ENV=development ENVIRONMENT=prod sh -c 'node dist/migrations.mjs && node dist/server.mjs' 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 `
Author
Owner

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

@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.
Author
Owner

@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 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.
Author
Owner

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

@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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/pangolin#160