Comments (31)
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.
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.
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.
Wow openseedbox is running, everything is fine except add a torrent:
An error occured adding a torrent!
The following error occured: null
from openseedbox.
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.
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.
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:
from openseedbox.
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.
Thanks for support me, I will check it.
from openseedbox.
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.
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.
from openseedbox.
from openseedbox.
Application.conf
from openseedbox.
System:
from openseedbox.
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.
its openjdk-6-jdk
from openseedbox.
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.
the server is working fine, I think its database, it can't be write and update during download file. Its zero.
from openseedbox.
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.
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.
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.
I reinstall openseedbox and add a torrent. this is the first log file:
http://pastebin.com/bzrnEF6N
from openseedbox.
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.
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
from openseedbox.
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.
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.
Im still working and find out the problem, I know java too. Thanks. I will tell you if the problem is fix.
from openseedbox.
I fixed that error Erindru:
In NodePollerJob.java line 21. delete the condition: if (n.isReachable()).
from openseedbox.
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.
Yep
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.