Giter Site home page Giter Site logo

Comments (31)

erindru avatar erindru commented on May 30, 2024

Yep you're right it is very hard to install and could use some improvement. In fact, there isn't really any installer, and there are several bugs related to getting a fresh install running.

Can you check to see if there is a record in the users table? If not, you should create one and set the admin column to 1.

You could also modify the code to check the 'u' variable is not null before proceeding.

from openseedbox.

canximan avatar canximan commented on May 30, 2024

Thanks you so much, I try to edit your code and The Frontend is working with some error, but it fine, I can create new user with google account and login, set admin column to 1.
After that I install The Backend, it not work. The process is running but http://localhost:9001 show nothing. transmission-daemon was installed and running on 9091. I will try it more, I realy interest in your project.

from openseedbox.

canximan avatar canximan commented on May 30, 2024

And now, the Frontend is running and include this error: java.lang.NullPointerException
Backend interface on 9001 is working:
openseedbox icon
Openseedbox Backend Component
Main Website
Just add this line in to /src/openseedbox-server/application.conf
"db.url=jdbc:mysql://localhost/openseedbox
db.driver=com.mysql.jdbc.Driver
db.user=root
db.pass=............pass
"
Thanks.

from openseedbox.

canximan avatar canximan commented on May 30, 2024

Wow openseedbox is running, everything is fine except add a torrent:

An error occured adding a torrent!
The following error occured: null

from openseedbox.

erindru avatar erindru commented on May 30, 2024

Can you have a look at the log file in logs/server.out? It will probably contain the exception that is causing that.

Also, in Admin on the node status page, does it say that both the node and the backend are up and reports the uptime?

Typically I let Openseedbox manage my transmission-daemon instance because it starts it itself and it can conflict with the version the system started on boot. If a torrent is added but wont download, this is probably whats happening. You can check by going ps -A | grep trans and seeing if two instances of transmission-daemon are running (there should only be one)

from openseedbox.

canximan avatar canximan commented on May 30, 2024

Server log: http://pastebin.com/fxW2XkN8
openseedbox log: http://pastebin.com/qB3WLfrq
New log: http://pastebin.com/xM6U3pnL

The node is up and running, all status is yes, it also show uptime and disk free:
node 1 127.0.0.1:9001 09:09:11 up 17 min, 2 users, load average: 0.72, 0.66, 0.48 -9GB 0GB yes yes

ps -A | grep trans
3416 ? 00:00:00 transmission-da

Error after add torrent: (in database, that torrent was added: ID, name, hash and create_date, another option is 0.)
play.exceptions.JavaExecutionException at play.templates.BaseTemplate.throwException(BaseTemplate.java:90) at play.templates.GroovyTemplate.internalRender(GroovyTemplate.java:272) at play.templates.Template.render(Template.java:26) at play.templates.GroovyTemplate.render(GroovyTemplate.java:202) at controllers.BaseController.renderToString(BaseController.java:53) at controllers.Client.renderTorrentList(Client.java:111) at controllers.Client.update(Client.java:99) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:622) at play.mvc.ActionInvoker.invokeWithContinuation(ActionInvoker.java:557) at play.mvc.ActionInvoker.invoke(ActionInvoker.java:508) at play.mvc.ActionInvoker.invokeControllerMethod(ActionInvoker.java:484) at play.mvc.ActionInvoker.invokeControllerMethod(ActionInvoker.java:479) at play.mvc.ActionInvoker.invoke(ActionInvoker.java:161) at play.server.PlayHandler$NettyInvocation.execute(PlayHandler.java:251) at play.Invoker$Invocation.run(Invoker.java:278) at play.server.PlayHandler$NettyInvocation.run(PlayHandler.java:229) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:165) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:701) Caused by: java.lang.NullPointerException at com.openseedbox.models.User.getUserStats(User.java:152) at /app/views/client/torrent-list.html.(line:100) at play.templates.GroovyTemplate.internalRender(GroovyTemplate.java:247) at play.templates.Template.render(Template.java:26) at play.templates.GroovyTemplate.render(GroovyTemplate.java:202) at controllers.BaseController.renderToString(BaseController.java:53) at controllers.Client.renderTorrentList(Client.java:111) at controllers.Client.update(Client.java:99) ... 16 more

from openseedbox.

canximan avatar canximan commented on May 30, 2024

I found the problem: play framework can't call and run by openseedbox if install is follow this way: export PATH=$PATH:/path/to/play
So I reinstall it with this way:
sudo chmod +x /opt/play-1.2.5/play
$ sudo ln -s /opt/play-1.2.5/play /usr/local/bin/play
$ play

After all, I can add a torrent, the torrent was downloaded and save in my disk. The problem is: openseedbox can't update metadata complete, it show 0% without the file is complete:
screenshot from 2014-04-09 09 53 49

from openseedbox.

erindru avatar erindru commented on May 30, 2024

Openseedbox runs a polling job that periodically asks transmission-daemon what the status of its torrents are. It looks like that process is failing for some reason.

Is the API key in your server application.conf the same as the API key in the node you added in the openseedbox web interface? I see that this error crops up in your logs:

java.net.ConnectException: Connection refused to http://127.0.0.1:9001/status?ext=json&api_key=xxxx

You should be able to browse to that URL in your browser and have it return json. If it doesnt do that, then openseedbox-server isnt running correctly

Can you please post the openseedbox log file after you have added the torrent and waited a few minutes? I would like to see if theres an exception related to the polling job

from openseedbox.

canximan avatar canximan commented on May 30, 2024

Thanks for support me, I will check it.

from openseedbox.

canximan avatar canximan commented on May 30, 2024

I change xxxx to my api key when I add it in node: Webservice API Key
: myapikey and it show me:
http://127.0.0.1:9001/status?ext=json&api_key=myapikey.
{"data":{"uptime":"15:29:18 up 20 min, 3 users, load average: 0.73, 0.76, 0.57","free-space-bytes":-1,"used-space-bytes":0,"total-space-bytes":-1,"is-backend-installed":true,"base-directory":"/home/datyokimphg/Downloads/openseedbox","is-base-directory-writable":true,"backend-name":"transmission","backend-version":"transmission-daemon 2.82 (14160)","is-backend-running":true,"uptime":"15:29:18 up 20 min, 3 users, load average: 0.73, 0.76, 0.57","free-space-by tes":-1,"used-space-bytes":0,"total-space-bytes":-1,"is-backend-installed":true,"base-directory":"/home/datyokimphg/Downloads/openseedbox","is-base-directory-writable":true,"backend-name":"transmission","backend-version":"transmission-daemon 2.82 (14160)","is-backend-running":true},"success":true}

But, the problem can't be fix at all.

from openseedbox.

erindru avatar erindru commented on May 30, 2024

Ok that looks good, except im not sure why its reporting -1 for the free/used/total space. What does the log file look like?

from openseedbox.

canximan avatar canximan commented on May 30, 2024

screenshot from 2014-04-10 22 44 08
screenshot from 2014-04-10 22 44 18
screenshot from 2014-04-10 22 44 34
screenshot from 2014-04-10 22 45 05
screenshot from 2014-04-10 22 45 12
screenshot from 2014-04-10 22 45 53
screenshot from 2014-04-10 22 46 21
screenshot from 2014-04-10 22 45 28
screenshot from 2014-04-10 22 46 36
screenshot from 2014-04-10 22 46 40
screenshot from 2014-04-10 22 48 17

from openseedbox.

canximan avatar canximan commented on May 30, 2024

screenshot from 2014-04-10 22 52 53

Downloading ..... Complete.
screenshot from 2014-04-10 22 58 53
screenshot from 2014-04-10 22 59 05
screenshot from 2014-04-10 22 59 24

from openseedbox.

canximan avatar canximan commented on May 30, 2024

Application.conf

screenshot from 2014-04-10 23 07 11
screenshot from 2014-04-10 23 08 11

from openseedbox.

canximan avatar canximan commented on May 30, 2024

System:

screenshot from 2014-04-10 23 16 59
screenshot from 2014-04-10 23 15 26

from openseedbox.

erindru avatar erindru commented on May 30, 2024

Hmm, everything looks fine! The "Metadata" text changed to "Downloading" and then "Seeding" so the poller job must be running. I think its an issue with the progress bar. The reason I think this is because "-1" etc was being returned for some things that should have values, so if it was returning "-1" for percentage complete then that would prevent the progress bar from working properly.

What JVM version are you running?

from openseedbox.

canximan avatar canximan commented on May 30, 2024

its openjdk-6-jdk

from openseedbox.

erindru avatar erindru commented on May 30, 2024

Okay so thats fine. I'm not quite sure why its not working (I run this myself at home, just for me and my flatmates though who all have their own backend node)

Whats the output of browsing to:
http://127.0.0.1:9001/torrents/list?api_key=myapikey

(assuming your openseedbox-server is running on localhost:9091 and the api key is 'myapikey')

from openseedbox.

canximan avatar canximan commented on May 30, 2024

the server is working fine, I think its database, it can't be write and update during download file. Its zero.
screenshot from 2014-04-11 14 25 59

screenshot from 2014-04-11 14 28 50

from openseedbox.

canximan avatar canximan commented on May 30, 2024

Can you show me where in your code will write data to database?
openseedbox (client) or openseedbox-server?
and how to check if client recieved data from server?

from openseedbox.

erindru avatar erindru commented on May 30, 2024

Yep the server looks fine. You may be on to something with the database. Everything looks fine in the screenshots, except the database isnt being populated.

Can you please post your openseedbox log file?

from openseedbox.

erindru avatar erindru commented on May 30, 2024

Look at https://github.com/erindru/openseedbox/blob/master/app/com/openseedbox/jobs/NodePollerJob.java for where the node gets polled and the data gets written to the db. It should work, if its not then there should be an error in the log file

from openseedbox.

canximan avatar canximan commented on May 30, 2024

I reinstall openseedbox and add a torrent. this is the first log file:
http://pastebin.com/bzrnEF6N

from openseedbox.

erindru avatar erindru commented on May 30, 2024

The first log file didnt contain any errors from the node poller job. That's why you need to add a torrent, wait a few minutes, and then post the log file. The node poller job exits immediately if theres no torrents to poll, which would be the case if you reinstalled

from openseedbox.

canximan avatar canximan commented on May 30, 2024

I already added a torrent before post that logs file.
this is logs file after a torrent done! there are nothing about torrent, error or somthing else.
http://pastebin.com/YXN2Gm3T

screenshot from 2014-04-11 14 56 55
screenshot from 2014-04-11 14 56 59
screenshot from 2014-04-11 14 57 07

from openseedbox.

canximan avatar canximan commented on May 30, 2024

I think we will stop here, I' m so sorry to intrude you and thanks for the kindness support. Thanks you so much

from openseedbox.

erindru avatar erindru commented on May 30, 2024

I'm still interested to try and find out why it wont work, but I understand why you'd want to call it quits. Im suprised you came this far :) and im sorry I couldnt help you get it to work. Its frustrating for both of us.

I just realised I had some uncommitted changes, however they werent related to the node poller job so probably wont help your issue. Thanks for giving openseedbox a go though :)

from openseedbox.

canximan avatar canximan commented on May 30, 2024

Im still working and find out the problem, I know java too. Thanks. I will tell you if the problem is fix.

from openseedbox.

canximan avatar canximan commented on May 30, 2024

I fixed that error Erindru:
In NodePollerJob.java line 21. delete the condition: if (n.isReachable()).
screenshot from 2014-04-14 18 44 55

from openseedbox.

erindru avatar erindru commented on May 30, 2024

Nice one!

That line exists for a reason but obviously the method implementation needs to be improved. I used to have issues with the node poller job taking forever to complete when one of my nodes was down (all nodes would be blocked from getting polled until the down node timed out). The NodeHealthCheckJob is whats responsible for checking nodes and marking them as down or back up.

Perhaps a better implementation would spawn a thread to check each node, and then log any errors / timeouts (would be fine for a small number of nodes). Or perhaps I could batch make async requests to avoid spawning a lot of threads if theres a lot of nodes.

Anyway, glad you got it working!

from openseedbox.

canximan avatar canximan commented on May 30, 2024

Yep

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.