maxun icon indicating copy to clipboard operation
maxun copied to clipboard

Can't create account to get started docker!

Open FOUNDATIONAIBASED opened this issue 8 months ago • 14 comments

I just installed everything with docker method but I can't create a root account or a normal account since I am also not sure wich it would create on the rigidtration page! On the register page I getting a error but the docker logs show nothing and in the maxun folder are no files created! I changed in the .env only both public urls from localhost to the device Ip adress! Everything else is the same as in the example!

I created the maxun folder as parent folder since I understood it that way that it has to be a parent folder!

FOUNDATIONAIBASED avatar Apr 11 '25 00:04 FOUNDATIONAIBASED

@FOUNDATIONAIBASED what is your operating system?

amhsirak avatar Apr 11 '25 13:04 amhsirak

@FOUNDATIONAIBASED what is your operating system?

Ubuntu 22.4.3

FOUNDATIONAIBASED avatar Apr 11 '25 14:04 FOUNDATIONAIBASED

I encountered the same issue as you. When I changed the URL to localhost:5173 instead of 127.0.0.1:5173, the problem was resolved.

xiaohuan666 avatar Apr 11 '25 16:04 xiaohuan666

LAN can also not access account creation.

Mr-brillianter avatar Apr 13 '25 03:04 Mr-brillianter

getting same error Registration failed. Please try again

andsty avatar Apr 14 '25 08:04 andsty

I encountered the same issue as you. When I changed the URL to localhost:5173 instead of 127.0.0.1:5173, the problem was resolved.

At least this solution works for you but I run the server version of ubuntu therefore I have to use the server ip adress in order to access it remotely!

FOUNDATIONAIBASED avatar Apr 14 '25 20:04 FOUNDATIONAIBASED

I encountered the same issue as you. When I changed the URL to localhost:5173 instead of 127.0.0.1:5173, the problem was resolved.

i getting the same error,but both url failed

GloomyBee avatar Apr 16 '25 08:04 GloomyBee

My .env file is still localhost but it keeps fail to register

myrulezzz avatar Apr 16 '25 08:04 myrulezzz

I'm getting this same issue. No errors in logs and I adjusted permissions for all files in the working directory. Still "Registration Failed. Please try again."

Update: Read through #128 and saw browser logs being helpful. Here is what I see when using Firefox to connect:

XHRPOST
http://localhost:8080/auth/register

XHROPTIONS
http://localhost:8080/auth/register
CORS Failed

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:8080/auth/register. (Reason: CORS request did not succeed). Status code: (null).

Not sure how the average user can address this, but figured it may be helpful to the devs

Update 2: After doing some tweaking I got it working. In the .env file, if PUBLIC_URL is not localhost, BACKEND_URL cannot be localhost either. I was running PUBLIC_URL=http://192.168.x.x:5173 and BACKEND_URL=http://localhost:8080. Changing it to BACKEND_URL=http://192.168.x.x:8080 allows me to log in. Hopefully this helps!

F1zzyD avatar Jun 04 '25 19:06 F1zzyD

@F1zzyD i am aware of that! But that didn't solve the issue for me!

FOUNDATIONAIBASED avatar Jul 18 '25 08:07 FOUNDATIONAIBASED

Me neither

matbgn avatar Jul 18 '25 09:07 matbgn

Try this maybe that helps!

Use the credentials to login into minio!:

MINIO_ACCESS_KEY=minio_access_key # MinIO access key MINIO_SECRET_KEY=minio_secret_key # MinIO secret key

go to ipadress:9001

login with the credentials!

create a bucket called maxun and try register again not sure if the time was the important factor or creating the bucket in minio but now i could at least register and see the interface even tough i get everywhere errors!

FOUNDATIONAIBASED avatar Jul 31 '25 07:07 FOUNDATIONAIBASED

The errors i get now are:

On robots page:

Remote browsers are currently busy. Please wait for a few minutes and try again

Api Key page:

Failed to fetch API Key - Request failed with status code 403

FOUNDATIONAIBASED avatar Jul 31 '25 07:07 FOUNDATIONAIBASED

Logs show this i guess i made in the .env a mistake with the JWT secret!: JWT verification error: JsonWebTokenError: jwt malformed at module.exports (/app/node_modules/jsonwebtoken/verify.js:70:17) at requireSignIn (/app/server/src/middlewares/auth.ts:18:11) at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5) at next (/app/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/app/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5) at /app/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/app/node_modules/express/lib/router/index.js:346:12) at next (/app/node_modules/express/lib/router/index.js:280:10) at Function.handle (/app/node_modules/express/lib/router/index.js:175:3)

FOUNDATIONAIBASED avatar Jul 31 '25 07:07 FOUNDATIONAIBASED