Comments (6)
Hmm, I wrote this a long time ago so I cant remember the exact details. Looking at the code, it seems to only include the "active" nodes. Are your nodes set to "active"?
Also with regards to the "status" column, im not sure if its actually used in all circumstances, the getNodeStatus() function queries the node directly from the /status
url on each node. Have you tried querying this manually from your web browser and looking at the data returned?
from openseedbox.
Yep, the node is active and not marked as down. When I try one of the context paths from the routes file like /check or /status i.e. :9001/status I only get 'Invalid API key'.
To simplify the setup the two application server talk directly with each other not via reverse proxy.
from openseedbox.
The reverse proxy is necessary in order for file downloads to work. The files are served via the webserver and not via Play!, which only has 2 request threads available.
Sorry I forgot about the api key, you need to add it as a parameter to the url, eg /status?api_key=foo
The value of the api_key can be found at backend.base.api_key
in the config file of the node
from openseedbox.
Yes that´s clear that I need to use a reverse proxy for the whole functionality. Only in this case to figure out why there is no status written to the database I use a very basic installation.
/status returns proper values .. but somehow twice
{"data":{"uptime":"07:33:23 up 11:47, 1 user, load average: 0.00, 0.01, 0.05","free-space-bytes":12071796736,"used-space-bytes":3646341120,"total-space-bytes":15718137856,"is-backend-installed":true,"base-directory":"/media/openseedbox","is-base-directory-writable":true,"backend-name":"transmission","backend-version":"transmission-daemon 2.82 (14160)","is-backend-running":true,"uptime":"07:33:23 up 11:47, 1 user, load average: 0.00, 0.01, 0.05","free-space-bytes":12071796736,"used-space-bytes":3646341120,"total-space-bytes":15718137856,"is-backend-installed":true,"base-directory":"/media/openseedbox","is-base-directory-writable":true,"backend-name":"transmission","backend-version":"transmission-daemon 2.82 (14160)","is-backend-running":true},"success":true}
from openseedbox.
Finally found the issue. Even if the web service is in place and provides the node status via API the code in Node.java still preferred the status column in the database:
81 public INodeStatus getNodeStatus(boolean fromDb) {
82 if (fromDb) {
83 return status;
84 }
I´ve simply commented out line 83 and now it works.
from openseedbox.
Nice one 👍
As my quick fix worked but had severe side-effects e.g. while the backend node was down or misconfigured you got an exception calling the /admin/stats page.
from openseedbox.
Related Issues (20)
- Job improvements: raw use of the parameterized class 'LoggedJob'
- Job improvements: maintenance job HOT 1
- Job improvements: `java.lang.IllegalAccessException` prevents Node Poller job from scheduling HOT 14
- Show the torrent backend's version in the Nodes view HOT 2
- OpenSeedbox backend thinks the torrent backend is up, even it is not installed: "/bin/sh: 1: transmission-daemon: not found" HOT 2
- GitHub: manage `pr-${{github.event.pull_request.number}}` tagged docker images at GHCR on Pull Request events
- GitHub: reusable workflows
- Play! Framework: rewrite OpenSeedbox to use another MVC framework HOT 4
- views: fix and improve size checks on Lists HOT 1
- Transmission, Play! (RePlay! also) vs UTF-8: Unexpected Error, Your file does not exists HOT 8
- Backend: multiparch Docker build fails to restart torrent backend on non `amd64` platforms HOT 3
- Docker is sunsetting Free Team organizations on April 14, 2023 HOT 3
- Add download tests
- Long torrent names and download URLs could fail the poller job: `ERROR: value too long for type character varying(255)`
- Show active torrents in the client view
- Show peer's progress at the peers tab of the Torrent Info modal view HOT 1
- Siena's DDL generator doesn't restore the table's primary key sequence value after database model update
- Try OpenJDK with Eclipse OpenJ9 (aka IBM Semeru) instead the default OpenJDK HotSpot (aka Eclipse Temurin) HOT 7
- GitHub: push `latest` images to Docker Hub automatically (on master branch change) HOT 4
- GitHub: update `openseedbox/{client,server}` images on `openseedbox/{base,tomcat}` push
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openseedbox.