joinmisskey/bash-install

issue with certbot.service

Opened this issue · 6 comments

Issue: certbot.service fails (quietly) because of running nginx
Expected: nginx is stopped before running the 60-90 day certbot.service renewal job

certbot.service fails because port 80 is unusable by the certbot tool.

should anyone run in to this the proper sequence of commands to get around this is

systemctl stop nginx && systemctl start certbot && systemctl start ngnix

It has been fixed certbot to work with the following nginx config:
https://github.com/joinmisskey/bash-install/blob/main/ubuntu.sh#L595-L599

At least, that problem does not occur in my environment.

あ〜〜、nginx有効かつcloudflare無効の時は確かに無理なのか

maybe fixed on v2

This may be an entirely different issue, so i can move it or someone on the project can move it

maybe fixed on v2

I can't upgrade/update anymore, when i run sudo bash update.ubuntu.sh:

Check: root user;
        OK. I am root user.
Process: import environment and detect method;
method: systemd / user: misskey / dir: misskey / localhost:3000
Process: update (systemd);
Process: git pull;
Already up to date.
Process: stop daemon;
Process: clean;
bash: line 7: yarn: command not found
Process: start daemon;

misskey webui shows:

Enviroment
Misskey
12.119.2
Node.js
v18.12.1
PostgreSQL
13.9 (Ubuntu 13.9-1.pgdg20.04+1)
Redis
7.0.7
Vue
3.2.39

corepack may be not enabled.

Please check Releases page and migrate to v2 from the version you installed. update.sh doesn't update the environment, update only the version of Misskey.

I think the fix of certbot might not apply.

You should change the crontab of certbot to --webroot --webroot-path /var/www/html (you should mkdir -p) instead of --standalone. To execute (immediate by you) the changed command in crontab will fix the cerfitication error your Msiskey have.