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

docker run wettyoss/wetty fails with login[47] error #464

Open
PurnaChandraPanda opened this issue Mar 10, 2023 · 5 comments
Open

docker run wettyoss/wetty fails with login[47] error #464

PurnaChandraPanda opened this issue Mar 10, 2023 · 5 comments

Comments

@PurnaChandraPanda
Copy link

PurnaChandraPanda commented Mar 10, 2023

From ubuntu terminal, run:

$ docker pull wettyoss/wetty:latest
$ docker run -it -p 3002:3000 wettyoss/wetty:latest --shh-user=user1 --ssh-pass=mypwd

On browser, access the app as http://localhost:3002/wetty.
Provided the correct username and password values, but still fails as "Login incorrect".

28c1d1d02bcf login: user1
Password: 
Login incorrect
28c1d1d02bcf login: 

On the other docker run session, I could see it flags as login[47] error with invalid password for unknown.

{"label":"Wetty","level":"info","message":"Connection accepted.","timestamp":"2023-03-10T05:03:28.331Z"}
{"address":"localhost","label":"Wetty","level":"info","message":"Process Started on behalf of user","pid":47,"timestamp":"2023-03-10T05:03:28.345Z"}
login[47]: invalid password for 'UNKNOWN' on 'pts/1' from 'localhost'

I could validate in ubuntu terminal that username and password are correct values, but /wetty terminal does not accept it. How else could we validate from "wetty", why the user/pwd combination is declined? Could anyone please share some thoughts??

@PurnaChandraPanda
Copy link
Author

@butlerx Any thoughts on this login challenge?

@PurnaChandraPanda
Copy link
Author

any comments how to address it?

@Aledangelo
Copy link

I have same issue. Do you know if there are default credentials to use?

@inceabdullah
Copy link

Please pass host users into the container like

docker run -v /etc/passwd:/etc/passwd -u `id -u`:`id -g` -v `pwd`:`pwd`  -it --rm --net host --name wetty wettyoss/wetty  

For other running as a host user within a Docker methods: Ref

@eded333
Copy link

eded333 commented Dec 23, 2023

A bit of necromancy...
This is my docker compose deployment that worked for me:

services:
  wetty:
    image: wettyoss/wetty:latest
    container_name: wetty
    environment:
      - PUID=1000
      - PGID=1000
    user: 1000:1000
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - /etc/passwd:/etc/passwd:ro
      - /etc/group:/etc/group:ro
    network_mode: host
    restart: unless-stopped

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

4 participants