Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Not reproduced] Error creating new user in self-hosted #138

Closed
Ohmsnipe opened this issue May 10, 2024 · 12 comments
Closed

[Not reproduced] Error creating new user in self-hosted #138

Ohmsnipe opened this issue May 10, 2024 · 12 comments
Assignees

Comments

@Ohmsnipe
Copy link

Ohmsnipe commented May 10, 2024

Describe the bug
Error Code on UI

Unhandled Runtime Error

Error: Error creating new user
Call Stack
newUserFlow
/app/.next/server/chunks/[root of the server]__cd8245._.js (1226:23)
process.processTicksAndRejections
node:internal/process/task_queues (95:5)
async
/app/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js (39:406)
async t4
/app/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js (38:6379)
async rk
/app/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js (39:25934)
async doRender
/app/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/server/base-server.js (1394:30)
async cacheEntry.responseCache.get.routeKind
/app/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/server/base-server.js (1543:40)
async DevServer.renderToResponseWithComponentsImpl
/app/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/server/base-server.js (1463:28)
async DevServer.renderPageComponent
/app/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/server/base-server.js (1856:24)
async DevServer.renderToResponseImpl
/app/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/server/base-server.js (1894:32)
async DevServer.pipeImpl
/app/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/server/base-server.js (911:25)
async NextNodeServer.handleCatchallRenderRequest
/app/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/server/next-server.js (271:17)
async DevServer.handleRequestImpl
/app/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/server/base-server.js (807:17)
async
/app/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/server/dev/next-dev-server.js (331:20)
async Span.traceAsyncFn
/app/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/trace/trace.js (151:20)
async DevServer.handleRequest
/app/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/server/dev/next-dev-server.js (328:24)
async invokeRender
/app/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/server/lib/router-server.js (163:21)
async handleRequest
/app/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/server/lib/router-server.js (342:24)
async requestHandlerImpl
/app/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/server/lib/router-server.js (366:13)
async Server.requestListener
/app/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/server/lib/start-server.js (140:13)

To Reproduce
Steps to reproduce the behavior:

Follow Installation. Dont Change the Authentication Settings. Local User ist not working.
I dont have a static ngrok account just created a local one by your command.

Expected behavior
SuccessfullLogin

@daryllimyt
Copy link
Contributor

daryllimyt commented May 10, 2024

Hi, thanks for trying Tracecat. Our Linux users seem to run into this a lot (Docker DNS resolution issue with host.docker.internal) and have found success with this section of the docs: https://docs.tracecat.com/installation#linux-users. If you're not using Linux, feel free to ping us on Discord and we'll try our best to help.

@Ohmsnipe
Copy link
Author

Ohmsnipe commented May 10, 2024

Hi, thanks for trying Tracecat. Our Linux users seem to run into this a lot (Docker DNS resolution issue with host.docker.internal) and have found success with this section of the docs: https://docs.tracecat.com/installation#linux-users. If you're not using Linux, feel free to ping us on Discord and we'll try our best to help.

Hey even when setting host.docker.internal. And left auth on disabled with 0.

Same Errror:
Unhandled Runtime Error

Error: Error creating new user
Call Stack
newUserFlow
/app/.next/server/chunks/[root of the server]__cd8245._.js (1226:23)
process.processTicksAndRejections
node:internal/process/task_queues (95:5)
async
/app/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js (39:406)
async t4
/app/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js (38:6379)
async rk
/app/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js (39:25934)
async doRender
/app/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/server/base-server.js (1394:30)
async cacheEntry.responseCache.get.routeKind
/app/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/server/base-server.js (1543:40)
async DevServer.renderToResponseWithComponentsImpl
/app/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/server/base-server.js (1463:28)
async DevServer.renderPageComponent
/app/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/server/base-server.js (1856:24)
async DevServer.renderToResponseImpl
/app/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/server/base-server.js (1894:32)
async DevServer.pipeImpl
/app/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/server/base-server.js (911:25)
async NextNodeServer.handleCatchallRenderRequest
/app/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/server/next-server.js (271:17)
async DevServer.handleRequestImpl
/app/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/server/base-server.js (807:17)
async
/app/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/server/dev/next-dev-server.js (331:20)
async Span.traceAsyncFn
/app/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/trace/trace.js (151:20)
async DevServer.handleRequest
/app/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/server/dev/next-dev-server.js (328:24)
async invokeRender
/app/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/server/lib/router-server.js (163:21)
async handleRequest
/app/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/server/lib/router-server.js (342:24)
async requestHandlerImpl
/app/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/server/lib/router-server.js (366:13)
async Server.requestListener
/app/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/server/lib/start-server.js (140:13)

@walid-arabi-mic
Copy link

I have the same error !!!! any fix for this issue ?

@topher-lo
Copy link
Contributor

Hi all! Thanks for reporting this, but it's hard for us to debug this without information about your OS and environment.

We can confirm the docker-compose works in a clean Linux box with the standard etc/hosts configuration and no proxies / non-standard networking setup.

@walid-arabi-mic
Copy link

walid-arabi-mic commented May 15, 2024

OS: Linux projects 6.5.0-28-generic #29~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Apr 4 14:39:20 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
Docker logs:

Capture d’écran du 2024-05-15 15-29-40

@Ohmsnipe
Copy link
Author

Ohmsnipe commented May 16, 2024

Linux HOSTNAME 6.5.0-28-generic #29~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Apr 4 14:39:20 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

@Ohmsnipe
Copy link
Author

I tried it one last time but sadly getting the same error. Before I maybe did a mistake with copying the .env and using your env script.

I removed all volumes and containers, and tried once more. But sadly I did not have any success.

@topher-lo
Copy link
Contributor

topher-lo commented May 17, 2024

I tried it one last time but sadly getting the same error. Before I maybe did a mistake with copying the .env and using your env script.

I removed all volumes and containers, and tried once more. But sadly I did not have any success.

Will try to spin up an environment reproduce your error 🫡

Really appreciate all the info here. Helps a lot when it comes to debugging different environments

@Ohmsnipe

@topher-lo
Copy link
Contributor

topher-lo commented May 17, 2024

OS: Linux projects 6.5.0-28-generic #29~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Apr 4 14:39:20 UTC 2 x86_64 x86_64 x86_64 GNU/Linux Docker logs:

@walid-arabi-mic I think you are onto something. Could you share any logs from the FastAPI API service?

@topher-lo topher-lo added bug Something isn't working self-hosted triage labels May 17, 2024
@topher-lo topher-lo self-assigned this May 17, 2024
@topher-lo topher-lo removed the bug Something isn't working label May 18, 2024
@topher-lo
Copy link
Contributor

topher-lo commented May 18, 2024

@walid-arabi-mic @Ohmsnipe did you set TRACECAT__DISABLE_AUTH=0? It should be TRACECAT__DISABLE_AUTH=1 i.e. set DISABLE_AUTH to true.

Hey even when setting host.docker.internal. And left auth on disabled with 0.

@topher-lo
Copy link
Contributor

topher-lo commented May 18, 2024

Sorry we give up. This is impossible to reproduce: we tried Ubuntu, EC2 ubuntu, Mac with docker-desktop, WSL2 with docker desktop, so I cannot risk breaking what works right now with docker desktop.

The best bet is to MAKE SURE TRACECAT__DISABLE_AUTH=1 and you have docker desktop installed.

If you have some step-by-step setup that allows one of @daryllimyt or myself to reproduce this error, please reopen this.

@topher-lo topher-lo closed this as not planned Won't fix, can't repro, duplicate, stale May 18, 2024
@topher-lo
Copy link
Contributor

Added a warning and list of tested environments in our docs: https://docs.tracecat.com/installation#prerequisites

@topher-lo topher-lo changed the title Local User Not working after installation Error creating new user in self-hosted May 18, 2024
@topher-lo topher-lo changed the title Error creating new user in self-hosted [Not reproduced] Error creating new user in self-hosted May 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants