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

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

Open
amoskong opened this issue Aug 26, 2020 · 2 comments
Milestone

Comments

@amoskong
Copy link
Contributor

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
Copy link
Contributor Author

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
Copy link
Contributor Author

posted a fix: #131

  • [PATCH] nonroot.conf: set WorkingDirectory to empty

@DoronArazii DoronArazii added this to the Backlog milestone May 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants