scylladb / scylla-jmx

Scylla JMX proxy
GNU Affero General Public License v3.0
29 stars 54 forks source link

nonroot install: Failed to load environment files: No such file or directory #132

Open amoskong opened 4 years ago

amoskong commented 4 years ago

Debian 10:

test steps

  1. download unified package
  2. uncompress the package
  3. install: ./install.sh --nonroot --sysconfdir /etc/default
  4. try to run scylla_setup
    cd ~/scylladb
    ./sbin/scylla_setup

Problem

scylla-test@artifacts-debian10-jenkins-db-node-51429c31-0-1:~$ systemctl --user status scylla-jmx
● scylla-jmx.service - Scylla JMX
   Loaded: loaded (/home/scylla-test/.config/systemd/user/../../../scylladb/etc/systemd/scylla-jmx.service; linked; vendor preset: enabled)
  Drop-In: /home/scylla-test/.config/systemd/user/scylla-jmx.service.d
           └─nonroot.conf
   Active: failed (Result: resources) since Wed 2020-08-26 16:03:30 UTC; 1min 49s ago

Aug 26 16:03:30 artifacts-debian10-jenkins-db-node-51429c31-0-1 systemd[2179]: scylla-jmx.service: Failed to load environment files: No such file or directory
Aug 26 16:03:30 artifacts-debian10-jenkins-db-node-51429c31-0-1 systemd[2179]: scylla-jmx.service: Failed to run 'start' task: No such file or directory
Aug 26 16:03:30 artifacts-debian10-jenkins-db-node-51429c31-0-1 systemd[2179]: scylla-jmx.service: Failed with result 'resources'.
Aug 26 16:03:30 artifacts-debian10-jenkins-db-node-51429c31-0-1 systemd[2179]: Failed to start Scylla JMX.
Aug 26 16:03:30 artifacts-debian10-jenkins-db-node-51429c31-0-1 systemd[2179]: scylla-jmx.service: Service RestartSec=100ms expired, scheduling restart.
Aug 26 16:03:30 artifacts-debian10-jenkins-db-node-51429c31-0-1 systemd[2179]: scylla-jmx.service: Scheduled restart job, restart counter is at 5.
Aug 26 16:03:30 artifacts-debian10-jenkins-db-node-51429c31-0-1 systemd[2179]: Stopped Scylla JMX.
Aug 26 16:03:30 artifacts-debian10-jenkins-db-node-51429c31-0-1 systemd[2179]: scylla-jmx.service: Start request repeated too quickly.
Aug 26 16:03:30 artifacts-debian10-jenkins-db-node-51429c31-0-1 systemd[2179]: scylla-jmx.service: Failed with result 'resources'.
Aug 26 16:03:30 artifacts-debian10-jenkins-db-node-51429c31-0-1 systemd[2179]: Failed to start Scylla JMX.
amoskong commented 4 years ago

The env file path in nonroot.conf is /home/scylla-test/scylladb/etc/sysconfig/scylla-jmx. Actually it's installed to /home/scylla-test/scylladb/etc/default/scylla-jmx, because the special sysconfdir is assigned in install commandline.

amoskong commented 4 years ago

posted a fix: https://github.com/scylladb/scylla-jmx/pull/131