Closed john-deng closed 6 months ago
Never mind, I just find the root cause by myself.
As you can see the screenshot below, because the workspace is run with non-root user which WeTTY is restrict in command.ts, after the restruction is removed, the terminal works as I expected.
const localhost = (host: string): boolean =>
process.getuid() === 0 &&
(host === 'localhost' || host === '0.0.0.0' || host === '127.0.0.1');
Stale issue message
Describe the bug
yarn start with argument --command does not work, but it is ok on official released docker container with the same git tag
To Reproduce Steps to reproduce the behavior:
open the service on web browser
It prompt "Enter your username" which is incorrect, it should run bash directly.
Screenshots (Error)![image](https://user-images.githubusercontent.com/6748475/215326605-50f4bbba-7d77-421e-a0d7-f4c74e6c51a5.png)
Expected behavior
Screenshots (Expect)![image](https://user-images.githubusercontent.com/6748475/215326546-9adaf6f1-81e3-44e1-846d-59cda87fbb56.png)
Desktop (please complete the following information):