JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 24.08.2019, 16:40
darkdragon-001 darkdragon-001 is offline
JD Alpha
 
Join Date: Sep 2018
Posts: 24
Default Headless installation

Please allow unattended installation without available X server when passing '-q' option.

When I try to install via 'sh JD2Setup_x64.sh -q -varfile $HOME/response.varfile', I get the error 'java.awt.AWTError: Can't connect to X11 window server using ':1' as the value of the DISPLAY variable.'.

I want to install in Docker via Dockerfile which does not have a running X server. The resulting container will have access to an X server and thus can run the GUI.
Reply With Quote
  #2  
Old 26.08.2019, 16:14
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 66,134
Default

I'm sorry but the installer was never meant for server/headless installation.


Please follow this guide
https://support.jdownloader.org/Know...bedded-devices
__________________
JD-Dev & Server-Admin
Reply With Quote
  #3  
Old 28.08.2019, 16:54
darkdragon-001 darkdragon-001 is offline
JD Alpha
 
Join Date: Sep 2018
Posts: 24
Default

Thanks, this guide helps a lot!

Unfortunately, the part "repeat step 3.1 until JDownloader asks you to enter your MyJDownloader logins on console" does not make it very suitable for scripted installation.

Further, when running too often, it fails because no console is available:

Quote:
Exception thrown at jd.SecondLevelLaunch$10$1.run(SecondLevelLaunch.java:956):
java.lang.ExceptionInInitializerError
at jd.SecondLevelLaunch$10$1.run(SecondLevelLaunch.java:784)
Caused by: java.lang.RuntimeException: No Console Available!
at org.appwork.console.ConsoleDialog.<init>(ConsoleDialog.java:54)
at org.appwork.console.ConsoleDialog.<init>(ConsoleDialog.java:60)
at org.jdownloader.api.myjdownloader.MyJDownloaderController.start(MyJDownloaderController.java:118)
at org.jdownloader.api.myjdownloader.MyJDownloaderController.<init>(MyJDownloaderController.java:107)
at org.jdownloader.api.myjdownloader.MyJDownloaderController.<clinit>(MyJDownloaderController.java:32)
... 1 more
Reply With Quote
  #4  
Old 28.08.2019, 17:09
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 66,134
Default

A console must be available so JDownloader can access it, to ask for logins. The shown error happens when there is no longer a console available to use/attach to.

for scripted installations you can auto create the configuration with MyJDownloader logins,then you can skip the setup via console
__________________
JD-Dev & Server-Admin
Reply With Quote
  #5  
Old 28.08.2019, 19:42
darkdragon-001 darkdragon-001 is offline
JD Alpha
 
Join Date: Sep 2018
Posts: 24
Default

Quote:
Originally Posted by Jiaz View Post
A console must be available so JDownloader can access it, to ask for logins. The shown error happens when there is no longer a console available to use/attach to.
I think JDownloader should display a useful error message to stdout and quit.

Quote:
Originally Posted by Jiaz View Post
for scripted installations you can auto create the configuration with MyJDownloader logins,then you can skip the setup via console.
How can I do this?
Is this just the file "org.jdownloader.api.myjdownloader.MyJDownloaderSettings.json"?
Does it only need the fields "email" and "password" and will automatically create the other fields?

Last edited by darkdragon-001; 28.08.2019 at 22:23.
Reply With Quote
  #6  
Old 29.08.2019, 10:23
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 66,134
Default

Quote:
Originally Posted by darkdragon-001 View Post
I think JDownloader should display a useful error message to stdout and quit.
It reports "No Console Available!" and then should quit. Feel free to contribute to project and change the error message.


Quote:
Originally Posted by darkdragon-001 View Post
Is this just the file "org.jdownloader.api.myjdownloader.MyJDownloaderSettings.json"?
Does it only need the fields "email" and "password" and will automatically create the other fields?
Yes and Yes
__________________
JD-Dev & Server-Admin
Reply With Quote
  #7  
Old 29.08.2019, 11:20
darkdragon-001 darkdragon-001 is offline
JD Alpha
 
Join Date: Sep 2018
Posts: 24
Default

Quote:
Originally Posted by Jiaz View Post
It reports "No Console Available!" and then should quit. Feel free to contribute to project and change the error message.
True, but with a non-zero return code. The thing is, maybe you should add a command line argument to only install/update and then exit and not attempt to start the application.
Reply With Quote
  #8  
Old 29.08.2019, 11:27
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 66,134
Default

Quote:
Originally Posted by darkdragon-001 View Post
True, but with a non-zero return code. The thing is, maybe you should add a command line argument to only install/update and then exit and not attempt to start the application.
That's what I meant by
Quote:
Feel free to contribute to project
Quote:
Originally Posted by darkdragon-001 View Post
The thing is, maybe you should add a command line argument to only install/update and then exit and not attempt to start the application.
That's a good idea! But I've also the idea to allow setup via webinterface even when the logins are not yet setup/correct
__________________
JD-Dev & Server-Admin
Reply With Quote
  #9  
Old 12.12.2019, 17:49
darkdragon-001 darkdragon-001 is offline
JD Alpha
 
Join Date: Sep 2018
Posts: 24
Default

@Jiaz Did you find some time to separate update and run as we discussed some months ago in IRC?
Reply With Quote
  #10  
Old 22.03.2020, 22:23
darkdragon-001 darkdragon-001 is offline
JD Alpha
 
Join Date: Sep 2018
Posts: 24
Default

It would be nice if JDownloader.pid file is also created when the updater is running.
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 19:55.
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 - 2020, Jelsoft Enterprises Ltd.