JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 09.03.2017, 10:33
G0M G0M is offline
Baby Loader
 
Join Date: Jun 2015
Posts: 5
Default Unexpected error in Ubuntu

Hi Guys,

Just made a fresh install of a Jdownloader 2 on my Ubuntu Server (16.04) and it won't launch because of those errors:
Code:
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
	at org.jdownloader.update.launcher.JDLauncher.main(JDLauncher.java:82)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:62)
	at com.install4j.runtime.launcher.UnixLauncher.main(UnixLauncher.java:57)
Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at org.jdownloader.update.launcher.JDLauncher.main(JDLauncher.java:78)
	... 6 more
Caused by: org.appwork.storage.StorageException: Can not write to /opt/jd2/cfg/org.jdownloader.update.lastchance.LastChanceConfig.json.tmp
	at org.appwork.storage.JSonStorage.saveTo(JSonStorage.java:515)
	at org.appwork.storage.JsonKeyValueStorage$1.run(JsonKeyValueStorage.java:540)
	at org.appwork.storage.config.handler.StorageHandler.enqueueWrite(StorageHandler.java:227)
	at org.appwork.storage.JsonKeyValueStorage.save(JsonKeyValueStorage.java:544)
	at org.appwork.storage.config.handler.StorageHandler.write(StorageHandler.java:1081)
	at org.jdownloader.update.lastchance.LastChanceManager.run(LastChanceManager.java:132)
	at org.jdownloader.update.launcher.SecondLevelLauncher.runMain(SecondLevelLauncher.java:240)
	at org.jdownloader.update.launcher.JDLauncherViaClassLoader.main(JDLauncherViaClassLoader.java:10)
	... 11 more
Caused by: java.io.IOException: Permission non accordée
	at java.io.UnixFileSystem.createFileExclusively(Native Method)
	at java.io.File.createNewFile(File.java:1012)
	at org.appwork.utils.IO.writeToFile(IO.java:711)
	at org.appwork.utils.IO.writeToFile(IO.java:699)
	at org.appwork.storage.JSonStorage.saveTo(JSonStorage.java:501)
	... 18 more
Any help please :D
Reply With Quote
  #2  
Old 09.03.2017, 10:44
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,226
Default

ownership issue?

Can not write to /opt/jd2/

fix the chown/chmod permissions to match with the user that runs JDownloader
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]
Reply With Quote
  #3  
Old 09.03.2017, 11:22
G0M G0M is offline
Baby Loader
 
Join Date: Jun 2015
Posts: 5
Default

ok will do that.
THanks mate
Reply With Quote
  #4  
Old 09.03.2017, 11:49
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 68,318
Default

sudo chown -R user:group /opt/jd2/
remplace user:group with your own user
__________________
JD-Dev & Server-Admin
Reply With Quote
  #5  
Old 09.03.2017, 12:48
G0M G0M is offline
Baby Loader
 
Join Date: Jun 2015
Posts: 5
Default

Thanks a lot mate, that was only that :D
Reply With Quote
  #6  
Old 09.03.2017, 12:54
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 68,318
Default

You're welcome
__________________
JD-Dev & Server-Admin
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 16:04.
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.