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

"Can not install cronjob, acme.sh not found" on Arch Linux #1559

Closed
bjo81 opened this issue Apr 24, 2018 · 9 comments
Closed

"Can not install cronjob, acme.sh not found" on Arch Linux #1559

bjo81 opened this issue Apr 24, 2018 · 9 comments

Comments

@bjo81
Copy link

bjo81 commented Apr 24, 2018

Steps to reproduce
/usr/bin/acme.sh --install-cronjob

Debug log

[Tue Apr 24 23:04:39 CEST 2018] Lets find script dir.
[Tue Apr 24 23:04:39 CEST 2018] _SCRIPT_='/usr/bin/acme.sh'
[Tue Apr 24 23:04:39 CEST 2018] _script='/usr/share/acme.sh/acme.sh'
[Tue Apr 24 23:04:39 CEST 2018] _script_home='/usr/share/acme.sh'
[Tue Apr 24 23:04:39 CEST 2018] Using default home:/root/.acme.sh
[Tue Apr 24 23:04:39 CEST 2018] Using config home:/root/.acme.sh
[Tue Apr 24 23:04:39 CEST 2018] LE_WORKING_DIR='/root/.acme.sh'
https://github.com/Neilpang/acme.sh
v2.7.9
[Tue Apr 24 23:04:39 CEST 2018] Using config home:/root/.acme.sh
[Tue Apr 24 23:04:39 CEST 2018] ACME_DIRECTORY='https://acme-v01.api.letsencrypt.org/directory'
[Tue Apr 24 23:04:39 CEST 2018] _ACME_SERVER_HOST='acme-v01.api.letsencrypt.org'
[Tue Apr 24 23:04:39 CEST 2018] Installing cron job
[Tue Apr 24 23:04:39 CEST 2018] Can not install cronjob, acme.sh not found.

No clue why this happens, according to the debug log it finds acme.sh.

@singhpreet89
Copy link

@bjo81 Have you found any solution to this problem?

@bjo81
Copy link
Author

bjo81 commented Jul 7, 2020

No, but afaik installing from the repos is unsupported.

@ryester19
Copy link

Also having this issue on Alpine edge

[Sat Sep 26 03:34:03 UTC 2020] Lets find script dir.
[Sat Sep 26 03:34:03 UTC 2020] _SCRIPT_='/usr/bin/acme.sh'
[Sat Sep 26 03:34:03 UTC 2020] _script='/usr/share/acme.sh/acme.sh'
[Sat Sep 26 03:34:03 UTC 2020] _script_home='/usr/share/acme.sh'
[Sat Sep 26 03:34:03 UTC 2020] Using default home:/root/.acme.sh
[Sat Sep 26 03:34:03 UTC 2020] Using config home:/root/.acme.sh
https://github.com/acmesh-official/acme.sh
v2.8.7
[Sat Sep 26 03:34:03 UTC 2020] Running cmd: installcronjob
[Sat Sep 26 03:34:03 UTC 2020] Using config home:/root/.acme.sh
[Sat Sep 26 03:34:03 UTC 2020] default_acme_server
[Sat Sep 26 03:34:03 UTC 2020] ACME_DIRECTORY='https://acme-v02.api.letsencrypt.org/directory'
[Sat Sep 26 03:34:03 UTC 2020] Can not install cronjob, acme.sh not found.

@axieum
Copy link

axieum commented Jan 14, 2021

Any updates on this?

[root@Hostname ~]# acme.sh --install-cronjob --debug
[Thu Jan 14 14:54:24 UTC 2021] Lets find script dir.
[Thu Jan 14 14:54:24 UTC 2021] _SCRIPT_='/usr/bin/acme.sh'
[Thu Jan 14 14:54:24 UTC 2021] _script='/usr/share/acme.sh/acme.sh'
[Thu Jan 14 14:54:24 UTC 2021] _script_home='/usr/share/acme.sh'
[Thu Jan 14 14:54:24 UTC 2021] Using default home:/root/.acme.sh
[Thu Jan 14 14:54:24 UTC 2021] Using config home:/root/.acme.sh
https://github.com/acmesh-official/acme.sh
v2.8.8
[Thu Jan 14 14:54:24 UTC 2021] Running cmd: installcronjob
[Thu Jan 14 14:54:24 UTC 2021] Using config home:/root/.acme.sh
[Thu Jan 14 14:54:24 UTC 2021] default_acme_server
[Thu Jan 14 14:54:24 UTC 2021] ACME_DIRECTORY='https://acme-v02.api.letsencrypt.org/directory'
[Thu Jan 14 14:54:24 UTC 2021] Can not install cronjob, acme.sh not found.

@Neilpang
Copy link
Member

It works for me:

~ # acme.sh --install-cronjob --debug
[Sat Jan 16 04:01:17 UTC 2021] Lets find script dir.
[Sat Jan 16 04:01:17 UTC 2021] _SCRIPT_='/root/.acme.sh/acme.sh'
[Sat Jan 16 04:01:17 UTC 2021] _script='/root/.acme.sh/acme.sh'
[Sat Jan 16 04:01:17 UTC 2021] _script_home='/root/.acme.sh'
[Sat Jan 16 04:01:17 UTC 2021] Using default home:/root/.acme.sh
[Sat Jan 16 04:01:17 UTC 2021] Using config home:/root/.acme.sh
https://github.com/acmesh-official/acme.sh
v2.8.9
[Sat Jan 16 04:01:17 UTC 2021] Running cmd: installcronjob
[Sat Jan 16 04:01:17 UTC 2021] Using config home:/root/.acme.sh
[Sat Jan 16 04:01:17 UTC 2021] default_acme_server
[Sat Jan 16 04:01:17 UTC 2021] ACME_DIRECTORY='https://acme-v02.api.letsencrypt.org/directory'
[Sat Jan 16 04:01:17 UTC 2021] Installing cron job
36 0 * * * "/root/.acme.sh"/acme.sh --cron --home "/root/.acme.sh" > /dev/null

If you guys can provide more steps and info, it will help you get help faster.

@axieum
Copy link

axieum commented Jan 16, 2021

I had installed via, pacman -Sy acme.sh cron using the cronie package. Then swapped over to the root user via sudo su, whom home is under /root, at which point running acme.sh --install-cronjob reveals that ..acme.sh not found

@ronald
Copy link

ronald commented Oct 11, 2021

Same problem here.

System: Ubuntu 20.04.3 LTS
GNU bash, version 5.0.17(1)-release (x86_64-pc-linux-gnu)

root@host:~# /opt/acme.sh/acme.sh --install-cronjob --debug
[Mon 11 Oct 2021 05:33:58 PM CEST] Lets find script dir.
[Mon 11 Oct 2021 05:33:58 PM CEST] _SCRIPT_='/opt/acme.sh/acme.sh'
[Mon 11 Oct 2021 05:33:58 PM CEST] _script='/opt/acme.sh/acme.sh'
[Mon 11 Oct 2021 05:33:58 PM CEST] _script_home='/opt/acme.sh'
[Mon 11 Oct 2021 05:33:58 PM CEST] Using default home:/root/.acme.sh
[Mon 11 Oct 2021 05:33:58 PM CEST] Using config home:/root/.acme.sh
https://github.com/acmesh-official/acme.sh
v3.0.1
[Mon 11 Oct 2021 05:33:58 PM CEST] Running cmd: installcronjob
[Mon 11 Oct 2021 05:33:58 PM CEST] Using config home:/root/.acme.sh
[Mon 11 Oct 2021 05:33:58 PM CEST] default_acme_server='https://acme-v02.api.letsencrypt.org/directory'
[Mon 11 Oct 2021 05:33:58 PM CEST] ACME_DIRECTORY='https://acme-v02.api.letsencrypt.org/directory'
[Mon 11 Oct 2021 05:33:58 PM CEST] Can not install cronjob, acme.sh not found.

@Nippius
Copy link

Nippius commented Oct 18, 2021

Just got the same issue.

I'm using Arch Linux on a Raspberry Pi and what worked for me was to run the command acme.sh --upgrade as root.
After that, running acme.sh --install-cronjob works as expected.

However, like @axieum, I had installed via, pacman -Sy acme.sh cron using the cronie package so I'm not sure what the implications are when upgrading via pacman in the future.

@Neilpang
Copy link
Member

Neilpang commented Nov 6, 2021

it's fixed. but you will need to wait for the next pacman release.

you can add the following cronjob manually:

[root@4fbcf1c911ab ~]# crontab -l

12 0 * * * /usr/share/acme.sh/acme.sh --cron --home "/root/.acme.sh" > /dev/null

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

7 participants