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

Recover from missing inline file #290

Open
bob-zscharnagk opened this issue Jul 6, 2022 · 12 comments
Open

Recover from missing inline file #290

bob-zscharnagk opened this issue Jul 6, 2022 · 12 comments
Assignees
Labels
bug Something isn't working

Comments

@bob-zscharnagk
Copy link

I manually deleted an inline file from the pki folder. Now I can't get rid of the error message or seemingly generate any new inline file. How do I resolve this?

@TinCanTech
Copy link
Owner

Hi, can you please post the error message that you are seeing.

@bob-zscharnagk
Copy link
Author

./easytls ita external 0

Easy-TLS 2.7.0.0.0
OpenVPN 2.5.7
OpenSSL 1.1.1o 3 May 2022
Error: Missing file: C:/Progra~1/OpenVPN/Easy-RSA/pki/easytls/external.inline

./easytls ri external

Easy-TLS 2.7.0.0.0
OpenVPN 2.5.7
OpenSSL 1.1.1o 3 May 2022
Error: Missing file: C:/Progra~1/OpenVPN/Easy-RSA/pki/easytls/external.inline

./easytls inline-index-rebuild

Easy-TLS 2.7.0.0.0
OpenVPN 2.5.7
OpenSSL 1.1.1o 3 May 2022
Error: Missing file: C:/Progra~1/OpenVPN/Easy-RSA/pki/easytls/external.inline

./easytls s

Easy-TLS 2.7.0.0.0
OpenVPN 2.5.7
OpenSSL 1.1.1o 3 May 2022
Error: Missing file: C:/Progra~1/OpenVPN/Easy-RSA/pki/easytls/external.inline

@TinCanTech
Copy link
Owner

TinCanTech commented Jul 6, 2022

Please try with current version 2.8.0

Please make sure you backup what you currently have.

The new version will re-index correctly and should allow you to continue.

The command you need with the new version is easytls rehash

@bob-zscharnagk
Copy link
Author

That is shown as being 2.7.0 which is what I have.

./easytls rehash
Easy-TLS 2.7.0.0
OpenVPN 2.5.7
OpenSSL 1.1.1o 3 May 2022
Error: Missing file: C:/Progra~1/OpenVPN/Easy-RSA/pki/easytls/external.inline

@TinCanTech
Copy link
Owner

You require this:

easy-tls/easytls

Line 9293 in 81b1c29

EASYTLS_VERSION="2.8.0"

See the link above.

@bob-zscharnagk
Copy link
Author

OK tried that and got

./easytls rehash

Rehash completed successfully.
Error log:
Error: Missing file: C:/Program Files/OpenVPN/Easy-RSA/pki/easytls/external.inline
Easy-TLS 2.8.0 (0)
EasyRSA Shell

@TinCanTech
Copy link
Owner

TinCanTech commented Jul 7, 2022

Hopefully, you can now use easytls remove-inline external, please try.

@bob-zscharnagk
Copy link
Author

./easytls ri external

Error log:
Error: Missing file: C:/Program Files/OpenVPN/Easy-RSA/pki/easytls/external.inline
Easy-TLS 2.8.0 (0)
EasyRSA Shell

@bob-zscharnagk
Copy link
Author

I don't know if it's relevant but in 2..7.0 the path was c:/progra~1 and in 2.8.0 it's c:/program files.

@TinCanTech
Copy link
Owner

Hopefully the space in the PATH is taken care of.

I will look into this later today.

Thanks for feeding back.

@TinCanTech TinCanTech self-assigned this Jul 7, 2022
@TinCanTech TinCanTech added the bug Something isn't working label Jul 7, 2022
@TinCanTech
Copy link
Owner

One thing you could try is to make the inline file again.

@aazudd
Copy link

aazudd commented Apr 16, 2023

Same pain for me after removing an inline file via CLI. [Easy-TLS 2.7.0]

1/ Comment the line of the node related to the error message in the easytls/data/easytls-inline-index.txt
2/ ./easytls rehash

The error message does not appear anymore and the usage of ./easytls is fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants