Giter Site home page Giter Site logo

Comments (6)

erindru avatar erindru commented on May 29, 2024

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.

gregorkistler avatar gregorkistler commented on May 29, 2024

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.

erindru avatar erindru commented on May 29, 2024

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.

gregorkistler avatar gregorkistler commented on May 29, 2024

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.

gregorkistler avatar gregorkistler commented on May 29, 2024

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.

gregorkistler avatar gregorkistler commented on May 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.