JDownloader Community - Appwork GmbH
 

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 10.02.2015, 12:24
Firefly1337
Guest
 
Posts: n/a
Default (Headless) EventScripter not working + MyJD False Update Message

Hello,

I'm running JD2 headless, but the EventScripter extension just doesn't work in headless mode.
If I run JD2 normally (GUI, not headless) everything works fine.

I already searched the logs and watched the console output, but nothing's in there, like it's never called.
Although I'm not quite sure if the dialogs are considered in headless, I made sure every dialog is set to 10 (= do not ask again) in cfg/Dialogs.json.

I have two scripts which basically just call a program.

----------------------
Second Bug:
'MyJDownloader' keeps telling me there's an update and I should restart, but there's no update to be installed and the message pops up again after a restart.
This happens only in headless mode, too.
Reply With Quote
  #2  
Old 11.02.2015, 12:31
Firefly1337
Guest
 
Posts: n/a
Default

Anyone?

This is a huge problem. If my scripts aren't executed, JD becomes useless for me.



PS: You can answer in german, too / Ihr könnt auch auf Deutsch antworten.
Reply With Quote
  #3  
Old 11.02.2015, 12:41
coalado's Avatar
coalado coalado is offline
JD Manager
 
Join Date: Feb 2009
Posts: 1,980
Default

I'm working on this since yesterday, and it will be fixed soon
__________________
Reply With Quote
  #4  
Old 11.02.2015, 12:56
Firefly1337
Guest
 
Posts: n/a
Default

Thanks for the feedback, that's all I needed to hear
Reply With Quote
  #5  
Old 12.02.2015, 11:14
Cr4z33's Avatar
Cr4z33 Cr4z33 is offline
Bandwidth Beast
 
Join Date: Jun 2009
Location: Italy
Posts: 145
Default

Are you saying it normally should be displayed when using the My JD page?
I ask because I am running JD from a NAS and need to add a script, but I can't find the option in the Settings page.
Reply With Quote
  #6  
Old 12.02.2015, 11:25
coalado's Avatar
coalado coalado is offline
JD Manager
 
Join Date: Feb 2009
Posts: 1,980
Default

NO, there is no Gui at my.jdownloader yet. But you can modify the data backend in the advanced settings.



Example:
Code:
[  
   {  
      "eventTrigger":"ON_DOWNLOAD_CONTROLLER_STOPPED",
      "enabled":true,
      "name":"On Download Ready",
      "script":"if (package.isFinished()) {\n    alert(\"Eine Messagebox: \" + link.getDownloadPath());\n}\n\n  alert(\"Package: \" + package.getBytesLoaded()+\"/\"+package.getBytesTotal());"
   }
   
]
Available Triggers:
ON_DOWNLOAD_CONTROLLER_START,ON_DOWNLOAD_CONTROLLER_STOPPED,ON_JDOWNLOADER_STARTED,ON_OUTGOING_REMOT E_API_EVENT,ON_NEW_FILE,ON_NEW_CRAWLER_JOB,ON_PACKAGIZER
__________________
Reply With Quote
  #7  
Old 12.02.2015, 11:29
Cr4z33's Avatar
Cr4z33 Cr4z33 is offline
Bandwidth Beast
 
Join Date: Jun 2009
Location: Italy
Posts: 145
Default

Well then in my Web version it's not there.
I am running Core Revision #29020.
Reply With Quote
  #8  
Old 12.02.2015, 11:35
coalado's Avatar
coalado coalado is offline
JD Manager
 
Join Date: Feb 2009
Posts: 1,980
Default

There will be a new core update in a few minutes. If the EventScripter Extension is installed, it will be available in the headless version as well afterwards.


if it's not installed, you have to install it first: java -jar JDownloader.jar -install eventscripter
__________________

Last edited by raztoki; 12.02.2015 at 11:56. Reason: rename org to jar
Reply With Quote
  #9  
Old 12.02.2015, 11:51
Cr4z33's Avatar
Cr4z33 Cr4z33 is offline
Bandwidth Beast
 
Join Date: Jun 2009
Location: Italy
Posts: 145
Thumbs up

Quote:
Originally Posted by coalado View Post
JDownloader.org
I suppose it should be
Code:
JDownloader.jar
right?

But then in what folder should I run the command?
The one where I installed JDownloader or in the JavaManager one?
Reply With Quote
  #10  
Old 12.02.2015, 11:56
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,611
Default

yes, he made a small mistake ;p. I edited his post to reflect correct syntax
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]
Reply With Quote
  #11  
Old 12.02.2015, 12:21
Cr4z33's Avatar
Cr4z33 Cr4z33 is offline
Bandwidth Beast
 
Join Date: Jun 2009
Location: Italy
Posts: 145
Default

Quote:
Originally Posted by Cr4z33 View Post
I suppose it should be
Code:
JDownloader.jar
right?

But then in what folder should I run the command?
The one where I installed JDownloader or in the JavaManager one?
Solved.
Forgot to stop Java before going to run that command.
Thanks again.
Reply With Quote
  #12  
Old 12.02.2015, 13:12
Firefly1337
Guest
 
Posts: n/a
Default

It's working so far
Thank you coalado.

Plus: Either you fixed the update issue, too, or it just resolved itself.

But I still have one quick question:
Are you planning on making more triggers? E.g. package finished etc.
Right now I have to do it manually via link.getPackage().isFinished() for every link to check if the link's package is finished.
Reply With Quote
  #13  
Old 12.02.2015, 15:32
Cr4z33's Avatar
Cr4z33 Cr4z33 is offline
Bandwidth Beast
 
Join Date: Jun 2009
Location: Italy
Posts: 145
Default

I was prompted to run a JD update later today, but at the reboot the EventScripter Settings entry has disappeared.

Do I have to reinstall it at every update...?
Reply With Quote
  #14  
Old 12.02.2015, 16:15
coalado's Avatar
coalado coalado is offline
JD Manager
 
Join Date: Feb 2009
Posts: 1,980
Default

no
__________________
Reply With Quote
  #15  
Old 12.02.2015, 16:20
Cr4z33's Avatar
Cr4z33 Cr4z33 is offline
Bandwidth Beast
 
Join Date: Jun 2009
Location: Italy
Posts: 145
Default

Quote:
Originally Posted by coalado View Post
no
OK... so do I have to report that as a bug?
Reply With Quote
  #16  
Old 12.02.2015, 16:31
coalado's Avatar
coalado coalado is offline
JD Manager
 
Join Date: Feb 2009
Posts: 1,980
Default

please check if you can reproduce this.
and check if the EventScripter.jar is in your extensions folder
__________________
Reply With Quote
  #17  
Old 12.02.2015, 19:12
Cr4z33's Avatar
Cr4z33 Cr4z33 is offline
Bandwidth Beast
 
Join Date: Jun 2009
Location: Italy
Posts: 145
Default

Quote:
Originally Posted by coalado View Post
please check if you can reproduce this.
and check if the EventScripter.jar is in your extensions folder
It is.

I am going to install that JAR again and let's see what happens...

Update:
Although I am not a real JD geek installation looks fine watching at the terminal window, but then when I reload JD and go into the Web panel the EventScripter entry doesn't come up...

I don't wanna spam this thread so guess I should send a message by the My JD Feedback panel or?

Last edited by Cr4z33; 12.02.2015 at 19:20.
Reply With Quote
  #18  
Old 12.02.2015, 19:54
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

Just contact us via support@jdownloader.org
__________________
JD-Dev & Server-Admin
Reply With Quote
  #19  
Old 13.02.2015, 11:06
Firefly1337
Guest
 
Posts: n/a
Default

Unfortunately in combination with the FolderWatch extension it's not working.
With manually added packages it works fine now, but if they're added automatically with a .crawljob file it's not.
Reply With Quote
  #20  
Old 13.02.2015, 11:36
coalado's Avatar
coalado coalado is offline
JD Manager
 
Join Date: Feb 2009
Posts: 1,980
Default

Please join our chat for a teamviewer session. this would make things much easier.
__________________
Reply With Quote
  #21  
Old 14.02.2015, 14:06
Firefly1337
Guest
 
Posts: n/a
Default

There's not really anything to show. Can't you reproduce it on your end?

Besides, I don't know you and I'm not comfortable with having a stranger look into not one but two computers of mine.
Reply With Quote
  #22  
Old 14.02.2015, 14:18
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

It's easier for us to see the issue live. That way we can check logs/console and try some stuff without having to try to reproduce the issue locally. Of course we understand that you aare not comfortable with us taking a look via teamviewer. But keep in mind that you are comfortable enough to use our JDownloader on your computer but not trusting the developers enough to help you.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #23  
Old 14.02.2015, 21:46
Firefly1337
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by Jiaz View Post
It's easier for us to see the issue live.
That's kind of the problem: There is nothing to show. No log entries, no error message (or anything else) in console.
It's just like the original error, I think the extension isn't called.

However I have to say that my initial config is from a non-headless (= GUI) installation. BUT I still can run it in GUI mode (and I've already done that), so I think this shouldn't be a problem.
Or should I delete it and reinstall it via your posted console (-install) command in headless mode?

Last edited by Firefly1337; 14.02.2015 at 21:49.
Reply With Quote
  #24  
Old 14.02.2015, 21:53
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

there are many debug parameters
for example
java -jar JDownloader.jar -console
will show all logging stuff on console
you can also enable debug parameter in advanced config so everything gets written to log (disabled by default because logs can get very big very fast)
__________________
JD-Dev & Server-Admin
Reply With Quote
  #25  
Old 14.02.2015, 22:29
Firefly1337
Guest
 
Posts: n/a
Default

Thanks for this, didn't know that. (Btw: Is there any not outdated documentation of JDownloader?)

I don't know why, but I just did several tests and it's working. I copied the crawljob file myself into the watchfolder and my scripts were executed correctly.
But somehow it didn't work this morning or someday else.
Reply With Quote
  #26  
Old 14.02.2015, 23:23
coalado's Avatar
coalado coalado is offline
JD Manager
 
Join Date: Feb 2009
Posts: 1,980
Default

FireFly alle Updates Installieren, dann gehts
__________________
Reply With Quote
  #27  
Old 15.02.2015, 00:14
Firefly1337
Guest
 
Posts: n/a
Default

Es ist alles auf dem neuesten Stand.
Oder meinst du den Fall, dass es bei ausstehenden / also noch nicht installierten Updates nicht geht? Falls ja, wie kann man die automatisch installieren lassen?
Reply With Quote
  #28  
Old 15.02.2015, 17:09
coalado's Avatar
coalado coalado is offline
JD Manager
 
Join Date: Feb 2009
Posts: 1,980
Default

? Hä? Einfach alle ausstehenden Updates installieren, und dann geht auch FolderWatch headless
__________________
Reply With Quote
  #29  
Old 15.02.2015, 19:00
Firefly1337
Guest
 
Posts: n/a
Default

Ich glaube hier liegt ein Missverständnis vor.
FolderWatch ging schon von Anfang an problemlos im Headless-Mode.
Bisher war das Problem, dass der EventScripter im Headless-Mode nicht funktioniert hat, das wurde nun aber behoben.
Jetzt ist das Problem, dass der EventScripter in Verbindung mit automatisch hinzugefügten Downloads durch das FolderWatch-Plugin nicht funktioniert.

Ich kann allerdings nicht genau sagen, ob das Problem noch vorhanden ist. Ich habe wie bereits gesagt gestern (Abend) ein paar Tests manuell durchgeführt und alles hat so funktioniert, wie es soll. Gestern Morgen hat es (vollautomatisch) jedoch noch nicht funktioniert.
Reply With Quote
  #30  
Old 17.02.2015, 11:57
Firefly1337
Guest
 
Posts: n/a
Default

Es hat schon wieder nicht funktioniert.

Die Dateien wurden erfolgreich erkannt (Log FolderWatch):

Spoiler:

Zensierte Sachen sind kursiv dargestellt.
Quote:
--ID:65TS:1424160360191-17.02.15 09:06:00 - [org.jdownloader.extensions.folderwatchV2.FolderWatchExtension(run)] -> RUN
--ID:65TS:1424160360191-17.02.15 09:06:00 - [org.jdownloader.extensions.folderwatchV2.FolderWatchExtension(run)] -> Scan C:\Users\Administrator\JDwatch - C:\Users\Administrator\JDwatch
--ID:65TS:1424160360191-17.02.15 09:06:00 - [org.jdownloader.extensions.folderwatchV2.FolderWatchExtension(run)] -> exists: true
--ID:65TS:1424160360191-17.02.15 09:06:00 - [org.jdownloader.extensions.folderwatchV2.FolderWatchExtension(run)] -> isDirectory: true
--ID:65TS:1424160360191-17.02.15 09:06:00 - [org.jdownloader.extensions.folderwatchV2.FolderWatchExtension(run)] -> [added, CRAWLJOB_NAME.crawljob, [...]]
--ID:65TS:1424160360192-17.02.15 09:06:00 - [org.jdownloader.extensions.folderwatchV2.FolderWatchExtension$1(accept)] -> added : false
--ID:65TS:1424160360192-17.02.15 09:06:00 - [org.jdownloader.extensions.folderwatchV2.FolderWatchExtension$1(accept)] -> CRAWLJOB_NAME.crawljob : true
--ID:65TS:1424160360192-17.02.15 09:06:00 - [org.jdownloader.extensions.folderwatchV2.FolderWatchExtension(addCrawlJob)] -> Parse C:\Users\Administrator\JDwatch\CRAWLJOB_NAME.crawljob
--ID:65TS:1424160360200-17.02.15 09:06:00 - [org.jdownloader.extensions.folderwatchV2.FolderWatchExtension(addJob)] -> AddJob
{
"filename" : null,
"chunks" : 0,
"autoConfirm" : "TRUE",
"addOfflineLink" : true,
"autoStart" : "UNSET",
"forcedStart" : "UNSET",
"enabled" : null,
"text" : "LINKS",
"deepAnalyseEnabled" : false,
"packageName" : "PACKAGE_NAME",
"priority" : "DEFAULT",
"extractAfterDownload" : "UNSET",
"comment" : null,
"downloadFolder" : "FOLDER_NAME",
"extractPasswords" : null,
"downloadPassword" : null,
"overwritePackagizerEnabled" : true,
"type" : "NORMAL"
}
--ID:65TS:1424160360935-17.02.15 09:06:00 - [org.jdownloader.extensions.folderwatchV2.FolderWatchExtension(move)] -> Move C:\Users\Administrator\JDwatch\CRAWLJOB_NAME.crawljob
[...]
--ID:65TS:1424160361121-17.02.15 09:06:01 - [org.jdownloader.extensions.folderwatchV2.FolderWatchExtension(run)] -> DONE


Mein Crawljob-File sieht immer so aus:
Quote:
autoConfirm=TRUE
downloadFolder=FOLDER
packageName=NAME
text=LINKS
Ich würde ja gerne das EventScripter-Log posten, aber der letzte Eintrag ist von gestern! D.h. (wie ich bereits des Öfteren gesagt habe) das Plugin wird erst gar nicht aufgerufen.

Was mache ich falsch?
Fehlen mir Angaben im Crawljob-File?
z.B. "autoStart", "forcedStart", "enabled" o.Ä. ?
Ich habe mehrere Tests damit gemacht und es macht keinen (sichtbaren) Unterschied, ob diese Werte gesetzt sind oder nicht.
Um Downloads automatisch zu starten, reicht es aus "autoConfirm" auf true zu setzen.

! WICHTIG !

Was mir aufgefallen ist: Das Test-File, mit dem es geht, hat lediglich 2 (unterschiedliche) Links.
Meine automatisch hinzugefügten Dateien habe mehrere Links und alle sind gleich. Mit dem Packagizer deaktiviere ich manche Hoster und der Rest wird entsprechend unterschiedlich priorisiert, um eine Hoster-Präferenz festzulegen.
Kann es sein, dass dieses Paket dann intern nicht als fertiggstellt gilt, obwohl es fertig ist und im Webinterface sogar "Fertiggestellt" steht?

Aber selbst dann müsste der EventScripter doch aufgerufen werden. Es macht dann halt nichts, wenn package.isFinished() false ist.... hmm...
Reply With Quote
  #31  
Old 18.02.2015, 12:15
Firefly1337
Guest
 
Posts: n/a
Default

Ich weiß jetzt woran es liegt!
Ein Paket gilt >intern< nicht als fertiggestellt, wenn es deaktivierte Links beinhaltet. Der Status wechselt zwar auf "Fertiggestellt", package.isFinished() liefert aber "false" zurück.

Könntet ihr das beheben?
Reply With Quote
  #32  
Old 18.02.2015, 13:02
coalado's Avatar
coalado coalado is offline
JD Manager
 
Join Date: Feb 2009
Posts: 1,980
Default

Danke fürs Finden! Wird behoben.

Solltet ihr irgendwas am Eventscript vermissen, sagt bescheid, dann erweitere ich das entsprechend.
__________________
Reply With Quote
  #33  
Old 18.02.2015, 13:39
Firefly1337
Guest
 
Posts: n/a
Default

Danke für die Rückmeldung
Kannst du dann hier Bescheid geben, wenn es behoben wurde? Damit ich es weiß und testen kann ^^
Reply With Quote
  #34  
Old 18.02.2015, 17:44
coalado's Avatar
coalado coalado is offline
JD Manager
 
Join Date: Feb 2009
Posts: 1,980
Default

Ist behoben
__________________
Reply With Quote
  #35  
Old 18.02.2015, 18:44
Firefly1337
Guest
 
Posts: n/a
Default

Danke!
Soeben getestet und es funktioniert
Reply With Quote
  #36  
Old 25.05.2015, 13:53
michiil
Guest
 
Posts: n/a
Default

hey guys,
i am trying to install eventscripter via cmd but i just can't get it to work. i quit jdownloader and then i executed java -jar JDownloader.jar -install eventscripter
the i restarted it but eventscripter doesnt show up in the settings. it eventscripter.jar file is present in the extensions folder..

thanks in advcance
Reply With Quote
  #37  
Old 25.05.2015, 18:04
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

Sure it doesnt sshow up? Scroll down?
Please provide a logfile. Menu -> Help -> Create log and give logID here
__________________
JD-Dev & Server-Admin
Reply With Quote
  #38  
Old 25.05.2015, 18:11
michiil
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by Jiaz View Post
Sure it doesnt sshow up? Scroll down?
Please provide a logfile. Menu -> Help -> Create log and give logID here
thanks for the answer. i have gotten a little bit further. it seems to have installed correctly and when i start with -scan it shows up.
but when i start it normally its not here anymore..

i cant find where to create the log i only have my.jdownloader ..
Reply With Quote
  #39  
Old 25.05.2015, 18:14
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

Just zip the log folder and send to us at support@jdownloader.org
-scan should not be needed. The Logfile will tell us what goes wrong so we can fix it
__________________
JD-Dev & Server-Admin
Reply With Quote
  #40  
Old 25.05.2015, 18:20
michiil
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by Jiaz View Post
Just zip the log folder and send to us at support@jdownloader.org
-scan should not be needed. The Logfile will tell us what goes wrong so we can fix it
sent (:
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 18:14.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.