question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unknown option --no-auth

See original GitHub issue

Values.yaml

# Optional additional arguments
extraArgs:
#  - --allow-http
  - --no-auth

Steps to Reproduce

  1. Uncomment the Extra Argument for --no-auth in the helm-chart/values.yaml file
  2. Install the Helm chart

Expected

Chart should install and code-server should not require a password

Actual

Chart installs but the code-server pod is in error

Logs

$ k logs code-server-694b6f4b98-j6srk -f [2021-08-19T17:51:09.606Z] error Unknown option --no-auth

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
markgarrigancommented, Aug 24, 2021

Thanks @jawnsy! That worked!

1reaction
jawnsycommented, Aug 23, 2021

I tried this with the chart and got things working:

# Optional additional arguments
extraArgs:
  - --auth
  - none

This is what my logs look like:

$ kubectl logs code-server-6dd6f4d574-pqvlf
[2021-08-23T23:38:01.088Z] info  Wrote default config file to ~/.config/code-server/config.yaml
[2021-08-23T23:38:01.519Z] info  code-server 3.11.1 acb5de66b71a3f8f1cc065df4633ecd3f9788d46
[2021-08-23T23:38:01.520Z] info  Using user-data-dir ~/.local/share/code-server
[2021-08-23T23:38:01.536Z] info  Using config file ~/.config/code-server/config.yaml
[2021-08-23T23:38:01.537Z] info  HTTP server listening on http://0.0.0.0:8080 
[2021-08-23T23:38:01.537Z] info    - Authentication is disabled 
[2021-08-23T23:38:01.537Z] info    - Not serving HTTPS

I think if you use “–auth none” on a single line, then it gets passed to code-server as if you typed code-server "--auth none" (quoting the parameter), which confuses the command line parser. You can also try that on your command line:

$ code-server "--auth none"
[2021-08-23T23:41:07.797Z] error Unknown option --auth none
[2021-08-23T23:41:07.799Z] debug parent:6532 disposing {}
Read more comments on GitHub >

github_iconTop Results From Across the Web

error: Unknown option --no-auth #2 - GitHub
When working with the latest code-server, VSCode doesn't load through the proxy and in the CLI, the following error is shown: error Unknown...
Read more >
Redis (error) NOAUTH Authentication required - Server Fault
Setting the requirepass configuration directive causes the server to require password authentication with the AUTH command before sending other commands.
Read more >
Redis raises "NOAUTH Authentication required" error but ...
I got error NOAUTH Authentication required when I connect to Redis server via command: redis-cli and run ping to check if Redis is...
Read more >
NOAUTH Authentication required - WordPress.org
Kept getting “NOAUTH Authentication required” error message & not connected if I add WP_REDIS_PASSWORD constant on wp-config.php & uncomment ...
Read more >
ironic-inspector.conf - OpenStack Docs
Authentication method used on the ironic-inspector API. Either “noauth” or “keystone” are currently valid options. “noauth” will disable all ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found