Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.1.0 broke Debian 10 #169

Open
eLvErDe opened this issue May 4, 2021 · 3 comments
Open

1.1.0 broke Debian 10 #169

eLvErDe opened this issue May 4, 2021 · 3 comments

Comments

@eLvErDe
Copy link

eLvErDe commented May 4, 2021

Hello,

After upgrading to latest version, zookeeper does not start anymore:

zookeeper[36392]: + CLASSPATH='/usr/lib/zookeeper/zookeeper.jar:/usr/lib/zookeeper/lib/*:'
zookeeper[36392]: + mkdir -p /var/log/zookeeper
zookeeper[36392]: + /usr/lib/jvm/default-java/bin/java -Dzookeeper.log.dir=/var/log/zookeeper -Dzookeeper.root.logger=INFO,ROLLINGFILE -cp '/usr/lib/zookeeper/zookeeper.jar:/usr/lib/zookeeper/lib/*:' org.apache.zookeeper.server.quorum.QuorumPeerMain /etc/zookeeper/conf/zoo.cfg
zookeeper[36392]: Error: Could not find or load main class org.apache.zookeeper.server.quorum.QuorumPeerMain
zookeeper[36392]: Caused by: java.lang.ClassNotFoundException: org.apache.zookeeper.server.quorum.QuorumPeerMain
systemd[1]: zookeeper.service: Main process exited, code=exited, status=1/FAILURE
systemd[1]: zookeeper.service: Failed with result 'exit-code'.
systemd[1]: zookeeper.service: Service RestartSec=100ms expired, scheduling restart.
systemd[1]: zookeeper.service: Scheduled restart job, restart counter is at 5.
systemd[1]: zookeeper.service: Start request repeated too quickly.
systemd[1]: zookeeper.service: Failed with result 'exit-code'.

Looks like being related to the classpath PR...

Regards

@deric
Copy link
Owner

deric commented Oct 8, 2021

Any chance to provide a reproducible code? Or full log output?

@eLvErDe
Copy link
Author

eLvErDe commented Oct 12, 2021

Hello @deric

Not really but that should be easy to workaround, however you can check the following link:
https://packages.debian.org/buster/all/libzookeeper-java/filelist

You can see .jar on Debian "regular" packages are installed to /usr/share/java/ which has been removed from classpath leading to the failure.

Regards, Adam.

@deric
Copy link
Owner

deric commented Oct 12, 2021

I'm not sure to which refactoring you're referring to. There was a change in CLASSPATH, a long time ago.

There's also #104 that hasn't been resolved.

zookeeperd even on Debian 11 ships with an init.d script:

$ dpkg-query -L zookeeperd
/.
/etc
/etc/default
/etc/default/zookeeper
/etc/init.d
/etc/init.d/zookeeper
/usr
/usr/share
/usr/share/doc
/usr/share/doc/zookeeperd
/usr/share/doc/zookeeperd/changelog.Debian.gz
/usr/share/doc/zookeeperd/copyright

This seems to work:

$ service zookeeper status
zookeeper.service - LSB: centralized coordination service
     Loaded: loaded (/etc/init.d/zookeeper; generated)
...

but it might be much cleaner to use directly systemd service file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants