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

Standalone Server: Request failed with status code 504 #75

Open
simonbcn opened this issue Oct 16, 2023 · 3 comments
Open

Standalone Server: Request failed with status code 504 #75

simonbcn opened this issue Oct 16, 2023 · 3 comments

Comments

@simonbcn
Copy link

qBittorrent v4.5.2
Linux NixOS 23.05
node v18.17.1

I have changed the file server/config/local_env.sh to point correctly to the qBittorrent port:

❯ cat server/config/local_env.sh
#!/usr/bin/env bash
export QBIT_HOST=http://localhost:9090
export STANDALONE_SERVER_PORT=8081
❯ npm run server-start

> [email protected] server-start
> cd server && npm run serve


> [email protected] serve
> pm2 start ecosystem.config.js

[PM2] Applying action restartProcessId on app [iQbit Standalone Server](ids: [ 0 ])
[PM2] [iQbit Standalone Server](0) ✓
┌─────┬────────────────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
│ id  │ name                       │ namespace   │ version │ mode    │ pid      │ uptime │ ↺    │ status    │ cpu      │ mem      │ user     │ watching │
├─────┼────────────────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
│ 0   │ iQbit Standalone Server    │ default     │ 1.0.0   │ fork    │ 50967    │ 0s     │ 1    │ online    │ 0%       │ 35.7mb   │ juan     │ disabled │
└─────┴────────────────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘

But:

Captura de pantalla_área-de-selección_20231016143012

In fact, it should enter directly because I have whitelisted the LAN.

@simonbcn
Copy link
Author

On the other hand in the wiki you make reference to the .env and .env.default files but I don't see them anywhere.
The only thing that is similar is the server/config/local_env.sh file that I changed but that did not help.

@sviperm
Copy link

sviperm commented Oct 22, 2023

@simonbcn While solving my other problem I've also met this issue. No .env.default file. Even if I have .env file with different params than default - nothing happend. I found the only solution to change env vars manually in console like this

export QBIT_HOST=http://localhost:9090 && export STANDALONE_SERVER_PORT=8081 && npm run server-start

.env part should be described better or fixed

@simonbcn
Copy link
Author

It would be a good idea to display the following information in the console when starting the server: QBIT_HOST and STANDALONE_SERVER_PORT.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants