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

[Bug]: teldrive run fails to run correctly after adding the executable to the system environment variables on Windows #454

Open
welovfree opened this issue Feb 19, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@welovfree
Copy link

welovfree commented Feb 19, 2025

Describe the bug

When I run teldrive run directly from the release folder it runs perfectly fine, but when I run it outside the release folder it produces the following error Error: required configuration values not set: jwt-secret, db-data-source, tg-uploads-encryption-key even though I did add teldrive.exe to the system environment variables.

And since teldrive run gives no error when run inside the release folder, I think the config.toml is correctly configured, otherwise it won't run.

Repoduction

  1. Add E:\PC Backups\teldrive\teldrive-1.6.12-windows-amd64 to the system environment variables.
  2. Run teldrive run.
  3. Get the Error: required configuration values not set: jwt-secret, db-data-source, tg-uploads-encryption-key error.

Expected behavior

Teldrive running with no errors.

Version

1.6.12

Which Platform are you using?

Windows

Additional context

The bug reproduced here

@welovfree welovfree added the bug Something isn't working label Feb 19, 2025
@welovfree welovfree changed the title [Bug]: [Bug]: teldrive run fails to run correctly after adding the executable to the system environment variables on Windows Feb 19, 2025
@BenjiThatFoxGuy
Copy link

BenjiThatFoxGuy commented Feb 20, 2025

just specify where the config is.
look at the flags in the help, do --config path/to/config.toml
teldrive.exe being in path doesn't magically make it able to figure out where the config.toml is
windows runs it with the context of the folder you're in.

@welovfree
Copy link
Author

welovfree commented Feb 20, 2025

just specify where the config is. look at the flags in the help, do --config path/to/config.toml teldrive.exe being in path doesn't magically make it able to figure out where the config.toml is windows runs it with the context of the folder you're in.

But I used to run teldrive.exe using that method when I used version v1.5.5 and it did indeed figure out that the config.toml configuration file reisides in the same folder as teldrive.exe.

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

2 participants