YaCy-Bugtracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000339YaCy[All Projects] Generalpublic2014-01-14 12:142014-12-08 10:44
Reporterrsandu 
Assigned ToOrbiter 
PrioritynormalSeverityminorReproducibilityalways
StatusfeedbackResolutionopen 
ETAnone 
PlatformOSOS Version
Product VersionYaCy 1.6 
Target VersionFixed in Version 
Summary0000339: Cannot start prepackaged YaCy on Debian, dpkg --configure fails
DescriptionHello,

I have a stock Debian machine on which I use prepackaged YaCy.

I update the package from time to time.

Since December, trying to update YaCy performs well, but the service won't start after upgrade:

Setting up yacy (1.67.9501) ...
Starting YaCy P2P Web Search: failed.
invoke-rc.d: initscript yacy, action "start" failed.
dpkg: error processing yacy (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 yacy
E: Sub-process /usr/bin/dpkg returned an error code (1)
Steps To ReproduceTry to install prepackaged YaCy on Debian.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0000661)
Orbiter (manager)
2014-01-14 12:56

there was a bug in the /etc/init.d/yacy file. Please remove it and re-install YaCy with a latest package.
(0000662)
rsandu (reporter)
2014-01-14 15:10

Thank you, but this is not the case.

I did a

apt-get purge yacy

and I verified afterwards that there is no /etc/init.d/yacy file. Then I did:

apt-get install yacy

and the error is the same when yacy tries to start, immediately after installation.

Best regards,
Răzvan
(0000663)
Orbiter (manager)
2014-01-14 15:29

apt-get update
?
(0000664)
rsandu (reporter)
2014-01-14 15:38

Deinstalled yacy again, did an update, then reinstalled again. Same error.

apt-get purge yacy
apt-get upgrade
apt-get install yacy

I get yacy_1.67.9501_all.deb as the very latest version. Debian is 7.3 on an i386 machine.

Any further idea/clue would be much appreciated, since I don't know any logs where I should look :)
 

Best regards,
Razvan
(0000665)
rsandu (reporter)
2014-01-14 15:39

Sorry, it's:

apt-get purge yacy
apt-get update
apt-get upgrade
apt-get install yacy
(0000667)
rsandu (reporter)
2014-01-15 16:20

To eliminate a system error, I did a fresh install of Debian 7.3 stable and tried to put yacy_1.67.9501_all.deb on top of it, using this procedure: http://www.yacy-websuche.de/wiki/index.php/En:DebianInstall [^]

But it still says:

dpkg: error processing yacy (--configure):
 subprocesul script post-installation instalat a returnat starea de eroare la ieșire 1
Erori întâlnite în timpul prelucrării:
 yacy
E: Sub-process /usr/bin/dpkg returned an error code (1)

Best regards,
Răzvan
(0000668)
Orbiter (manager)
2014-01-15 16:27

today I did a fresh installation within a VM and it worked without problems
(0000675)
rsandu (reporter)
2014-01-18 12:21

The real explanation is in another bug:

http://bugs.yacy.net/view.php?id=349 [^]

My machine is, indeed, 32 bits. After changing the parameters in JAVA_ARGS, the server start with no problem.

PLEASE fix the Debian package!


Best regards,
Răzvan
(0000676)
Orbiter (manager)
2014-01-18 13:13

fix is up, please re-test
(0000807)
rsandu (reporter)
2014-05-23 16:36

Hello,

In the past, I've fixed this using the "-d32" workaround given given in issue 0000349.

Now (prepackaged yacy 1.73.9056 for Debian), the bug seems to be here again.

root@yacy-central:~# apt-get install yacy
Citire liste de pachete... Terminat
Se construiește arborele de dependență
Se citesc informațiile de stare... Terminat
yacy este deja la cea mai nouă versiune.
0 înnoite, 0 nou instalate, 0 de șters și 0 neînnoite.
1 instalate sau șterse incomplet.
După această operație vor fi folosiți din disc încă 0 B.
Vreți să continuați [Y/n]? y
Se pregătește yacy (1.73.9056) ...
Starting YaCy P2P Web Search: failed.
invoke-rc.d: initscript yacy, action "start" failed.
dpkg: error processing yacy (--configure):
 subprocesul script post-installation instalat a returnat starea de eroare la ieșire 1
Erori întâlnite în timpul prelucrării:
 yacy
E: Sub-process /usr/bin/dpkg returned an error code (1)


There is no "-d64" parameter to modify, this time... ;)


Could you please help?

Thank you!
Răzvan
(0000809)
Dlareg (reporter)
2014-05-26 18:07

My machine is, indeed, 32 bits. Debian 7.3 stable

Dépaquetage de yacy (à partir de .../yacy_1.73.9056_all.deb) ...
Paramétrage de yacy (1.73.9056) ...
Exception in thread "main" java.lang.UnsupportedClassVersionError: net/yacy/cora/order/Base64Order : Unsupported major.minor version 51.0
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:643)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
        at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
Could not find the main class: net.yacy.cora.order.Base64Order. Program will exit.
(0000810)
Icewind1983 (reporter)
2014-05-27 12:37

need install jdk 7 or 8
(0000811)
Orbiter (manager)
2014-05-27 15:32

yes, the debian package was compiled with jdk 7 Code version 55.0. Your message says "Unsupported major.minor version 51.0" which means that your java is jre 7 but an outdated version 51.0. Please run

apt-get update
apt-get upgrade
(0000812)
rsandu (reporter)
2014-05-27 15:44

Hello,

I am running Debian Stable 7.5 here, all updates applied, but the issue still occurs. No special config: just a plain Debian Stable and the prepackaged version of yacy, as given om http://www.yacy.net [^]

The yacy service simply does not correctly install itself and does not start.

Please include the correct Java version as a package dependency and/or refine the installation/debugging procedure, as given on the wiki page.

Răzvan
(0000813)
Dlareg (reporter)
2014-05-27 17:02

ok for the version of java, i'm sorry

# java -version
java version "1.7.0_55"
OpenJDK Runtime Environment (IcedTea 2.4.7) (7u55-2.4.7-1~deb7u1)
OpenJDK Client VM (build 24.51-b03, mixed mode, sharing)

# dpkg --configure yacy
Paramétrage de yacy (1.73.9056) ...
Starting YaCy P2P Web Search: failed.
invoke-rc.d: initscript yacy, action "start" failed.
dpkg: erreur de traitement de yacy (--configure) :
 le sous-processus script post-installation installé a retourné une erreur de sortie d'état 1
Des erreurs ont été rencontrées pendant l'exécution :
 yacy
(0000814)
Orbiter (manager)
2014-05-27 18:48

can you please have a look into /var/log/apt/term.log
Is there a hint what went wrong?
(0000815)
rsandu (reporter)
2014-05-27 18:55

Hello,

/var/log/apt/term.log says:

Log started: 2014-05-27 20:13:40
Selecting previously unselected package yacy.
(Se citește baza de date ... 169623 de fișiere și directoare actualmente instalate.)
Se despachetează yacy (din .../yacy_1.73.9056_all.deb) ...
Se pregătește yacy (1.73.9056) ...
Starting YaCy P2P Web Search: failed.
invoke-rc.d: initscript yacy, action "start" failed.
dpkg: error processing yacy (--configure):
 subprocesul script post-installation instalat a returnat starea de eroare la ieșire 1
Erori întâlnite în timpul prelucrării:
 yacy
Log ended: 2014-05-27 20:13:46


According to http://www.yacy-websuche.de/wiki/index.php/En:DebianInstall [^] I've tried to do a:

apt-get install openjdk-7-jre
apt-get install openjdk-7-jre-headless

(instead of 6), but it doesn't help.

BTW, I have (on stock Debian Stable 7.5):

root@yacy-central:~# aptitude search "?provides(java-runtime)"
i default-jre - Standard Java or Java compatible Runtime
i A default-jre-headless - Standard Java or Java compatible Runtime (headless)
c gcj-4.4-jre-headless - Java runtime environment using GIJ/classpath (headless version)
p gcj-4.6-jre - Java runtime environment using GIJ/classpath
p gcj-4.6-jre-headless - Java runtime environment using GIJ/classpath (headless version)
i A gcj-4.7-jre - Java runtime environment using GIJ/classpath
i A gcj-4.7-jre-headless - Java runtime environment using GIJ/classpath (headless version)
i A gcj-jre - Java runtime environment using GIJ/classpath
i A gcj-jre-headless - Java runtime environment using GIJ/classpath (headless version)
i A openjdk-6-jre - OpenJDK Java runtime, using Hotspot JIT
i openjdk-6-jre-headless - OpenJDK Java runtime, using Hotspot JIT (headless)
i openjdk-7-jre - OpenJDK Java runtime, using Hotspot JIT
i openjdk-7-jre-headless - OpenJDK Java runtime, using Hotspot JIT (headless)


Best regards,
Răzvan
(0000816)
Dlareg (reporter)
2014-05-27 20:17

/var/log/apt/term.log says:

dpkg: erreur de traitement de yacy (--configure) :
 le sous-processus script post-installation installé a retourné une erreur de so
rtie d'état 1
Paramétrage de icedtea-7-jre-jamvm:i386 (7u55-2.4.7-1~deb7u1) ...
Des erreurs ont été rencontrées pendant l'exécution :
 yacy
Log ended: 2014-05-27 14:25:36

but at this time, i have a new package :
# apt-cache policy yacy
yacy:
  Installé : 1.73.9060

and the the malfunction does not exist ^^
Thanks for the new package.
(0000817)
Orbiter (manager)
2014-05-27 20:19

I believe that the problem comes from the recently done migration to java 7. I just updated the debian dependencies to openjdk-7-jre-headless, which is a bit restrictive but I hope that this at least solves the problem for now.
Please try an apt-get update && apt-get upgrade again...
(0000818)
Dlareg (reporter)
2014-05-27 21:13

it works for me ^^
(0000820)
rsandu (reporter)
2014-05-28 07:35

Hello,

Thank you for your effort, but it still won't work here (neither on i386 nor on amd64):

apt-get remove yacy
apt-get update
apt-get upgrade


root@yacy-iasi:~# apt-get install yacy
Citire liste de pachete... Terminat
Se construiește arborele de dependență
Se citesc informațiile de stare... Terminat
Următoarele pachete NOI vor fi instalate:
  yacy
0 înnoite, 1 nou instalate, 0 de șters și 0 neînnoite.
Este nevoie să descărcați 0 B/38,0 MB de arhive.
După această operație vor fi folosiți din disc încă 48,9 MB.
Se preconfigurează pachetele ...
Selecting previously unselected package yacy.
(Se citește baza de date ... 133251 de fișiere și directoare actualmente instalate.)
Se despachetează yacy (din .../yacy_1.73.9060_all.deb) ...
Se pregătește yacy (1.73.9060) ...
Starting YaCy P2P Web Search: failed.
invoke-rc.d: initscript yacy, action "start" failed.
dpkg: error processing yacy (--configure):
 subprocesul script post-installation instalat a returnat starea de eroare la ieșire 1
Erori întâlnite în timpul prelucrării:
 yacy
E: Sub-process /usr/bin/dpkg returned an error code (1)



Best regards,
Răzvan
(0000821)
rsandu (reporter)
2014-05-28 07:43

Trying a purge operation, it won't let me delete the /var/lib/yacy directory (not even manually): "Device or resource busy", even there is no yacy process running.

root@yacy-iasi:~# apt-get purge yacy
Citire liste de pachete... Terminat
Se construiește arborele de dependență
Se citesc informațiile de stare... Terminat
Următoarele pachete vor fi ȘTERSE:
  yacy*
0 înnoite, 0 nou instalate, 1 de șters și 0 neînnoite.
1 instalate sau șterse incomplet.
După această operație se vor elibera 48,9 MB din spațiul ocupat pe disc.
Vreți să continuați [Y/n]? y
(Se citește baza de date ... 134942 de fișiere și directoare actualmente instalate.)
Se șterge yacy ...
not running.
Curăț fișierele de configurare pentru yacy ...
rm: „/var/lib/yacy” nu poate fi eliminat: Device or resource busy
dpkg: error processing yacy (--purge):
 subprocesul script post-removal instalat a returnat starea de eroare la ieșire 1
Erori întâlnite în timpul prelucrării:
 yacy
E: Sub-process /usr/bin/dpkg returned an error code (1)


Răzvan
(0000822)
rsandu (reporter)
2014-05-30 08:29

Hello,

I've tried to purge yacy and reinstall it from scratch and now I am getting this Java error. Can you please help?



root@yacy-central:~# apt-get install yacy
Citire liste de pachete... Terminat
Se construiește arborele de dependență
Se citesc informațiile de stare... Terminat
Următoarele pachete NOI vor fi instalate:
  yacy
0 înnoite, 1 nou instalate, 0 de șters și 0 neînnoite.
Este nevoie să descărcați 0 B/38,0 MB de arhive.
După această operație vor fi folosiți din disc încă 48,9 MB.
Se preconfigurează pachetele ...
Selecting previously unselected package yacy.
(Se citește baza de date ... 169628 de fișiere și directoare actualmente instalate.)
Se despachetează yacy (din .../yacy_1.73.9060_all.deb) ...
Se pregătește yacy (1.73.9060) ...
Exception in thread "main" java.lang.UnsupportedClassVersionError: net/yacy/cora/order/Base64Order : Unsupported major.minor version 51.0
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:643)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
    at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
Could not find the main class: net.yacy.cora.order.Base64Order. Program will exit.
dpkg: error processing yacy (--configure):
 subprocesul script post-installation instalat a returnat starea de eroare la ieșire 1
Erori întâlnite în timpul prelucrării:
 yacy
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@yacy-central:~#
(0000935)
krichter (reporter)
2014-09-28 23:09

The initial `UnsupportedClassVersionError` occurs if either of

  * `JAVA_HOME` environment variable is missing or points to a Java 6 JRE (check with `echo $JAVA_HOME` and maybe also `sudo echo $JAVA_HOME`
  * `java -version` turns out to point to Java 6 binary. This is caused by (errornous?) packages in Debian 7.4 which don't remove `/usr/bin/java`. If you `PATH` is set up to be `$PATH:$JAVA_HOME` which is the case by default, the `java` binary will still be of version 6 - no matter whether you deinstalled Java 6 and/or installed Java 7!! -> fix you `PATH` for the correct or all users (you, root, yacy).

If you fixed this after running into the issue, `dpkg` no longer produces the `UnsupportedClassVersionError`, but fails -> Run `apt-get purge yacy && apt-get install yacy`. This should work!

Please provide output in English, see http://askubuntu.com/questions/473402/how-to-invoke-a-kde-application-with-another-language-equivalent-of-language-c [^] (also contains a generic answer for non-KDE programs).
(0000967)
Orbiter (manager)
2014-12-08 10:44

latest YaCy needs Java 1.7. Do you have JRE >= 1.7 installed?

- Issue History
Date Modified Username Field Change
2014-01-14 12:14 rsandu New Issue
2014-01-14 12:56 Orbiter Note Added: 0000661
2014-01-14 15:10 rsandu Note Added: 0000662
2014-01-14 15:29 Orbiter Note Added: 0000663
2014-01-14 15:38 rsandu Note Added: 0000664
2014-01-14 15:39 rsandu Note Added: 0000665
2014-01-15 16:20 rsandu Note Added: 0000667
2014-01-15 16:27 Orbiter Note Added: 0000668
2014-01-18 12:21 rsandu Note Added: 0000675
2014-01-18 13:13 Orbiter Note Added: 0000676
2014-05-23 16:36 rsandu Note Added: 0000807
2014-05-26 18:07 Dlareg Note Added: 0000809
2014-05-27 12:37 Icewind1983 Note Added: 0000810
2014-05-27 15:32 Orbiter Note Added: 0000811
2014-05-27 15:44 rsandu Note Added: 0000812
2014-05-27 17:02 Dlareg Note Added: 0000813
2014-05-27 18:48 Orbiter Note Added: 0000814
2014-05-27 18:55 rsandu Note Added: 0000815
2014-05-27 20:17 Dlareg Note Added: 0000816
2014-05-27 20:19 Orbiter Note Added: 0000817
2014-05-27 21:13 Dlareg Note Added: 0000818
2014-05-28 07:35 rsandu Note Added: 0000820
2014-05-28 07:43 rsandu Note Added: 0000821
2014-05-30 08:29 rsandu Note Added: 0000822
2014-09-28 23:09 krichter Note Added: 0000935
2014-12-08 10:44 Orbiter Note Added: 0000967
2014-12-08 10:44 Orbiter Assigned To => Orbiter
2014-12-08 10:44 Orbiter Status new => feedback


Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker