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

Where is the username and password? #169

Open
314767251 opened this issue Aug 29, 2023 · 8 comments
Open

Where is the username and password? #169

314767251 opened this issue Aug 29, 2023 · 8 comments

Comments

@314767251
Copy link

What is the default account password installed using Docker-compose.yml?

image

@Tristan-Keester
Copy link
Contributor

There is no default user when installing. You'll have to use the sign up page to create a new account on your local machine and then sign in with it. It should be able to pull all the metrics for your containers once you have logged in.

@314767251
Copy link
Author

Try to register users through SIGN UP, but it seems that it has not succeeded. How can this be easy to skip?
image

@Tristan-Keester
Copy link
Contributor

Tristan-Keester commented Aug 30, 2023

To bypass the login you can create a cookie on your browser for that ip/port and the name 'loggedIn' and set it's value to true.
Then delete the /login from the url and then navigating to it. That should let you enter without needing the login.

@314767251
Copy link
Author

A bit complicated, wait for your subsequent version to be updated

@MikeRavenelle
Copy link

MikeRavenelle commented Sep 4, 2023

I am also having issues with the latest code with creating a user and logging in. I tried the workaround and could not get it to work.

docketeer-db | 2023-09-04 14:07:21.426 UTC [34] ERROR: relation "users" does not exist at character 13 docketeer-db | 2023-09-04 14:07:21.426 UTC [34] STATEMENT: INSERT INTO users (username, password ) VALUES ($1, $2) RETURNING *;

@Davidttg
Copy link

There appears to be a problem creating the users table when first run.
docker compose up
From the console log we get.

docketeer-db | CREATE DATABASE
docketeer-db |
docketeer-db |
docketeer-db |
docketeer-db | /usr/local/bin/docker-entrypoint.sh: running /docker-entrypoint-initdb.d/init.sql
docketeer-db |
docketeer-db | psql:/docker-entrypoint-initdb.d/init.sql:11: ERROR: syntax error at or near ")"
docketeer-db | LINE 9: ) WITH (
docketeer-db | ^
docketeer-db | 2023-09-13 21:15:59.903 UTC [62] ERROR: syntax error at or near ")" at character 269
docketeer-db | 2023-09-13 21:15:59.903 UTC [62] STATEMENT: CREATE TABLE users (
docketeer-db | _id SERIAL NOT NULL,
docketeer-db | username VARCHAR (255) UNIQUE NOT NULL,
docketeer-db | password VARCHAR (255) NOT NULL,
docketeer-db | mem_threshold INTEGER DEFAULT 80,
docketeer-db | cpu_threshold INTEGER DEFAULT 80,
docketeer-db | container_stops BOOLEAN DEFAULT true,
docketeer-db | PRIMARY KEY (_id),
docketeer-db | ) WITH (
docketeer-db | OIDS = FALSE
docketeer-db | );

@jtabox
Copy link

jtabox commented Oct 24, 2023

I'm having a similar issue, did a fresh install but signing up won't work. It looks like it's creating the user but when I try to login with the same credentials I'm getting wrong username/password error.
Is the only way really to mess around with browser cookies?
This is the output:

2023-10-24T02:57:04.494098834Z  [0] stdout:
2023-10-24T02:59:12.689767714Z  [0] Executed Docketeer query... INSERT INTO users (username, password ) VALUES ($1, $2) RETURNING *;
2023-10-24T02:59:12.715172940Z  [0] [object Object]
2023-10-24T02:59:30.402761397Z  [0] Executed Docketeer query... SELECT * FROM users WHERE username=$1;
2023-10-24T02:59:30.412290894Z  [0] [object Object]
2023-10-24T02:59:38.556713198Z  [0] Executed Docketeer query... SELECT * FROM users WHERE username=$1;
2023-10-24T02:59:38.573154737Z  [0] [object Object]
2023-10-24T03:00:26.122147967Z  [0] Executed Docketeer query... SELECT * FROM users WHERE username=$1;
2023-10-24T03:00:26.138807504Z  [0] [object Object]
2023-10-24T03:00:49.383830465Z  [0] Executed Docketeer query... INSERT INTO users (username, password ) VALUES ($1, $2) RETURNING *;
2023-10-24T03:00:49.391786666Z  [0] [object Object]
2023-10-24T03:01:03.142739968Z  [0] Executed Docketeer query... SELECT * FROM users WHERE username=$1;
2023-10-24T03:01:03.167133336Z  [0] [object Object]

@LaurenceJJones
Copy link

Linked to #172

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants