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

[Bug]: Finished Quick Install First time visiting dashboard requires a password #2542

Closed
1 task done
gummybuns opened this issue Aug 27, 2023 · 4 comments
Closed
1 task done
Assignees
Labels
bug Something isn't working

Comments

@gummybuns
Copy link

gummybuns commented Aug 27, 2023

Contact Details

No response

What happened?

I followed your documentation for the Quick Install to use docker to set up a netmaker server. After finishing i didnt really know what to do (there is a single line that says to go to dashboard, it isnt in a <pre> tag or anything didnt really stand out. I would suggest adding it in the Getting Started section as well).

Anyways, I eventually stumble into dashboard.my_domain.com and I am presented with a login screen, but I have not made an account yet. I dont see anything in the docs about a default account, and the Setup Section is pretty sparse. So maybe a possible bug in the initial onboarding process or maybe the docs can be improved to have a more defined getting started section.

Version

v0.20.6

What OS are you using?

Linux

Relevant log output

[netmaker] 2023-08-27 18:45:02 connecting to "sqlite" 
[netmaker] 2023-08-27 18:45:02 database successfully connected 
[netmaker] 2023-08-27 18:45:02 no OAuth provider found or not configured, continuing without OAuth 
[netmaker] 2023-08-27 18:45:02 netmaker-stun listening on 0.0.0.0:3478 via udp 
[netmaker] 2023-08-27 18:45:02 REST Server successfully started on port  "8081"  (REST) 
[netmaker] 2023-08-27 18:45:02 listen tcp: address tcp/"8081": unknown port 
[netmaker] 2023-08-27 18:45:02 connecting to mq broker at "ws://mq:1883" # For EMQX websockets use `SERVER_BROKER_ENDPOINT=ws://mq:8083/mqtt` 
[netmaker] Fatal: could not connect to broker, exiting ... no servers defined to connect to 

interesting that im getting an error when trying to connect to broker, not sure if that is related

Contributing guidelines

  • Yes, I did.
@gummybuns gummybuns added the bug Something isn't working label Aug 27, 2023
@gummybuns
Copy link
Author

gummybuns commented Aug 27, 2023

hmmm i instead ran your magic script https://github.com/gravitl/netmaker#get-started-in-5-minutes
and this time i was able to get to a sign up page. it seemed to do a couple more steps that are not included in the Quick Install instructions page? For example, you have these two method defined in your script:

  • setup_nmctl
  • setup_mesh

Im not entirely sure what these do but i didnt really see those steps in the quick install.

@cocoonkid
Copy link

cocoonkid commented Aug 28, 2023

The sign up page allows you to create the initial administrative user.

If that works and CORS is properly set (and you fixed the broker issue) it should work.

Gotta admit the docs & scripts are not up to date everywhere and it's a little bit of a puzzle but I can totally understand the devs are quite busy rolling out releases.

A real up to date doc or a person just taking care of these is surely a better addition when v1 gets released.

Until then so many things can change. I love this project. It' very well done AFAIK.

@DanielHons
Copy link

DanielHons commented Sep 8, 2023

I was finding the same issues, but it worked out after i commented out the following config variables from the env file:

  • API_PORT
  • CORS_ALLOWED_ORIGIN
  • SERVER_BROKER_ENDPOINT
    I think it is processing the quotes in a wrong way and by commenting them out you can just let the defaults do their work.

@mattkasun
Copy link
Contributor

#2573 fixes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants