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.

1.408 doesn't work with --cert args

See original GitHub issue
  • code-server version: 1.408-vsc1.32.0
  • OS Version: Ubuntu Server 18.04 LTS (VM on Hyper-V)

Description

Trying to run code-server with --cert and --cert-key arguments causes application to exit issuing error EEXIST: file already exists, mkdir '<cert-path>'.

Steps to Reproduce

  1. Acquire certificates for HTTPS operation
  2. Try to run code-server with certificates, e.g. ./code-server --cert fullchain.pem --cert-key privkey.pem

Error shown

Below is a complete example of the error I am getting when running code-server following above steps:

lucas@u1804-coder:~/code-server1.408-vsc1.32.0-linux-x64$ ./code-server --cert fullchain.pem --cert-key privkey.pem
ERROR { Error: EEXIST: file already exists, mkdir '/home/lucas/code-server1.408-vsc1.32.0-linux-x64/fullchain.pem'
  [stack]: 'Error: EEXIST: file already exists, mkdir \'/home/lucas/code-server1.408-vsc1.32.0-linux-x64/fullchain.pem\'',
  [message]: 'EEXIST: file already exists, mkdir \'/home/lucas/code-server1.408-vsc1.32.0-linux-x64/fullchain.pem\'',
  errno: -17,
  code: 'EEXIST',
  syscall: 'mkdir',
  path: '/home/lucas/code-server1.408-vsc1.32.0-linux-x64/fullchain.pem' }
free(): invalid pointer
Aborted (core dumped)

Previous versions

This error does not happen on previous code-server version 1.32.0-310.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:8
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
kirintwncommented, Apr 1, 2019

Got exact same error too, another workaround for now might be using reverse proxy like nginx to perform ssl transmission.

0reactions
kylecarbscommented, Apr 4, 2019

Fixed with the latest release!

Read more comments on GitHub >

github_iconTop Results From Across the Web

1.408-vsc1.32.0 report error : TypeError: Path must be a string.
Hi, Sorry for replying things that's unrelated to your issue. How do you solve the problem running code-server binary on CentOS ? code-server:...
Read more >
26 CFR § 1.408-2 - Individual retirement accounts.
(A) To Receive, issue receipts for, and safely keep securities;. (B) To collect income;. (C) To execute such ownership certificates, to keep such...
Read more >
Solved: SSLError: certificate verify failed - Cloudera Community
I'm working on deploying the cluster using self signed certificates but I'm running into the below issue and can't get past it:.
Read more >
Unable to find valid certification path to requested target - error ...
Solution: Copy the real cacerts file (you can do it from another JDK) to /etc/ssl/certs/java/ directory and it'll solve your problem :) Share....
Read more >
Solving problems calling out of CF via https, by updating JVM
A very common problem is that someone has found instructions on the web showing how to use the java keytool to import the...
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