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

Jobber fails on Mac #342

Open
butuz8 opened this issue Oct 19, 2024 · 0 comments
Open

Jobber fails on Mac #342

butuz8 opened this issue Oct 19, 2024 · 0 comments

Comments

@butuz8
Copy link

butuz8 commented Oct 19, 2024

Installed jobber via homebrew, added my user to jobber config, started service, but jobber still fails to start:

dima@di-mac ~ % brew install jobber
==> Downloading https://formulae.brew.sh/api/formula.jws.json
####################################################################################################################################################### 100.0%
==> Downloading https://formulae.brew.sh/api/cask.jws.json
####################################################################################################################################################### 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/jobber/manifests/1.4.4-1
Already downloaded: /Users/dima/Library/Caches/Homebrew/downloads/251fb068d07e27d37ff950a43ecc745683a3895a9c4ab894a0984546ea2b23fa--jobber-1.4.4-1.bottle_manifest.json
==> Fetching jobber
==> Downloading https://ghcr.io/v2/homebrew/core/jobber/blobs/sha256:b304010d591795e383764a1bc522eb495dfbe61dd6d864393443f3e8a08e4f91
Already downloaded: /Users/dima/Library/Caches/Homebrew/downloads/1575213a385f64d6631b9c2ddf942464904d73f24a50f7bbc0905b1bdd6229f3--jobber--1.4.4.arm64_sonoma.bottle.1.tar.gz
==> Pouring jobber--1.4.4.arm64_sonoma.bottle.1.tar.gz
==> Caveats
To restart jobber after an upgrade:
sudo brew services restart jobber
Or, if you don't want/need a background service you can just run:
/opt/homebrew/opt/jobber/libexec/jobbermaster
==> Summary
🍺 /opt/homebrew/Cellar/jobber/1.4.4: 11 files, 17.8MB
==> Running brew cleanup jobber...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see man brew).
dima@di-mac ~ % brew uninstall jobber
Uninstalling /opt/homebrew/Cellar/jobber/1.4.4... (11 files, 17.8MB)

Warning: The following may be jobber configuration files and have not been removed!
If desired, remove them manually with rm -rf:
/opt/homebrew/etc/jobber.conf
dima@di-mac ~ % cat /opt/homebrew/etc/jobber.conf
var-dir: /opt/homebrew/var
libexec-dir: /opt/homebrew/Cellar/jobber/1.4.4/libexec

Here, you can control which users can use Jobber to run jobs. You

can either specify which users should be able to use Jobber, or

which users should NOT be able to use Jobber --- not both.

NOTE: Users without home directories, or who do not own their home

directories, will not be able to use Jobber, no matter what you

specify in this file.

EXAMPLE: With the following, the only users that can use jobber are

(1) root and (2) all users whose home directories are in

/home/svcusers.

#users-include:

- username: root

- home: /home/svcusers/*

EXAMPLE: With the following, the users postfix and mysql and all

users whose usernames end with "nobody" cannot use Jobber. (In the

last rule, "nobody" is quoted because "" has a special meaning in

YAML when unquoted.)

#users-exclude:

- username: postfix

- username: mysql

- username: '*nobody'

dima@di-mac ~ %
dima@di-mac ~ %
dima@di-mac ~ %
dima@di-mac ~ %
dima@di-mac ~ % brew install jobber
==> Downloading https://ghcr.io/v2/homebrew/core/jobber/manifests/1.4.4-1
Already downloaded: /Users/dima/Library/Caches/Homebrew/downloads/251fb068d07e27d37ff950a43ecc745683a3895a9c4ab894a0984546ea2b23fa--jobber-1.4.4-1.bottle_manifest.json
==> Fetching jobber
==> Downloading https://ghcr.io/v2/homebrew/core/jobber/blobs/sha256:b304010d591795e383764a1bc522eb495dfbe61dd6d864393443f3e8a08e4f91
Already downloaded: /Users/dima/Library/Caches/Homebrew/downloads/1575213a385f64d6631b9c2ddf942464904d73f24a50f7bbc0905b1bdd6229f3--jobber--1.4.4.arm64_sonoma.bottle.1.tar.gz
==> Pouring jobber--1.4.4.arm64_sonoma.bottle.1.tar.gz
==> Caveats
To restart jobber after an upgrade:
sudo brew services restart jobber
Or, if you don't want/need a background service you can just run:
/opt/homebrew/opt/jobber/libexec/jobbermaster
==> Summary
🍺 /opt/homebrew/Cellar/jobber/1.4.4: 11 files, 17.8MB
==> Running brew cleanup jobber...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see man brew).
dima@di-mac ~ %
dima@di-mac ~ %
dima@di-mac ~ %
dima@di-mac ~ % jobber init
Jobber doesn't seem to be running for user dima.
(No socket at /opt/homebrew/var/jobber/501/cmd.sock.): stat /opt/homebrew/var/jobber/501/cmd.sock: no such file or directory
dima@di-mac ~ %
dima@di-mac ~ %
dima@di-mac ~ %
dima@di-mac ~ %
dima@di-mac ~ % vi /opt/homebrew/etc/jobber.conf
dima@di-mac ~ % jobber init
yaml: line 16: did not find expected key
dima@di-mac ~ % vi /opt/homebrew/etc/jobber.conf
dima@di-mac ~ % jobber init
Jobber doesn't seem to be running for user dima.
(No socket at /opt/homebrew/var/jobber/501/cmd.sock.): stat /opt/homebrew/var/jobber/501/cmd.sock: no such file or directory
dima@di-mac ~ % sudo brew services restart jobber
Password:
Stopping jobber... (might take a while)
==> Successfully stopped jobber (label: homebrew.mxcl.jobber)
Warning: Taking root:admin ownership of some jobber paths:
/opt/homebrew/Cellar/jobber/1.4.4/libexec
/opt/homebrew/Cellar/jobber/1.4.4/libexec/jobbermaster
/opt/homebrew/opt/jobber
/opt/homebrew/opt/jobber/bin
/opt/homebrew/var/homebrew/linked/jobber
This will require manual removal of these paths using sudo rm on
brew upgrade/reinstall/uninstall.
==> Successfully started jobber (label: homebrew.mxcl.jobber)
dima@di-mac ~ %
dima@di-mac ~ %
dima@di-mac ~ %
dima@di-mac ~ %
dima@di-mac ~ %
dima@di-mac ~ % jobber init
Jobber doesn't seem to be running for user dima.
(No socket at /opt/homebrew/var/jobber/501/cmd.sock.): stat /opt/homebrew/var/jobber/501/cmd.sock: no such file or directory
dima@di-mac ~ % jobber reload
Jobber doesn't seem to be running for user dima.
(No socket at /opt/homebrew/var/jobber/501/cmd.sock.): stat /opt/homebrew/var/jobber/501/cmd.sock: no such file or directory
dima@di-mac ~ % jobber init
Jobber doesn't seem to be running for user dima.
(No socket at /opt/homebrew/var/jobber/501/cmd.sock.): stat /opt/homebrew/var/jobber/501/cmd.sock: no such file or directory

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

1 participant