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

Healthcheck Failure: No such file or directory #37

Open
lifeneatify opened this issue Jan 9, 2025 · 3 comments
Open

Healthcheck Failure: No such file or directory #37

lifeneatify opened this issue Jan 9, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@lifeneatify
Copy link

Demyx seems to easily have health check error after running for a while, could you please tell me how to avoid it?

2 GB Memory / 2 AMD vCPUs / 25 GB Disk / SYD1 - Docker 24.0.7 on Ubuntu 20.04

[CROND FIVE-MINUTE] Healthcheck - App/etc/demyx/function/global.sh: line 477: /demyx/tmp/demyx_notify_healthcheck: No such file or directory

[2025-01-08-09:00:00] Fatal Error: 'DEMYX_NOTIFICATION_BODY="$(cat < "$DEMYX_TMP"/demyx_notify_healthcheck | sed -r "s/\x1B\[([0-9]{1,3}(;[0-9]{1,2})?)?[mGK]//g" | sed 's|["'\'']||g' | sed ':a;N;$!ba;s/\n/<br>/g')"' with exit code '1' in /etc/demyx/function/global.sh:477

Stack Trace:
#0 /etc/demyx/function/global.sh(477): demyx_notification
#1 /etc/demyx/function/healthcheck.sh(135): demyx_healthcheck_disk
#2 /etc/demyx/function/healthcheck.sh(21): demyx_healthcheck
#3 /etc/demyx/function/global.sh(342): demyx_execute
#4 /etc/demyx/function/cron.sh(140): demyx_cron_hourly
#5 /etc/demyx/function/cron.sh(27): demyx_cron
#6 /etc/demyx/bin/demyx.sh(34): demyx
#7 /etc/demyx/bin/demyx.sh(97): main
#8 cron hourly

[CROND FIVE-MINUTE] Healthcheck - App/etc/demyx/function/global.sh: line 477: /demyx/tmp/demyx_notify_healthcheck: No such file or directory

[2025-01-08-10:00:01] Fatal Error: 'sed ':a;N;$!ba;s/\n/<br>/g'' with exit code '1' in /etc/demyx/function/global.sh:477

Stack Trace:
#0 /etc/demyx/function/global.sh(477): demyx_notification
#1 /etc/demyx/function/healthcheck.sh(135): demyx_healthcheck_disk
#2 /etc/demyx/function/healthcheck.sh(21): demyx_healthcheck
#3 /etc/demyx/function/global.sh(342): demyx_execute
#4 /etc/demyx/function/cron.sh(140): demyx_cron_hourly
#5 /etc/demyx/function/cron.sh(27): demyx_cron
#6 /etc/demyx/bin/demyx.sh(34): demyx
#7 /etc/demyx/bin/demyx.sh(97): main
#8 cron hourly

[CROND FIVE-MINUTE] Healthcheck - App/etc/demyx/function/global.sh: line 477: /demyx/tmp/demyx_notify_healthcheck: No such file or directory

[2025-01-08-10:00:01] Fatal Error: 'DEMYX_NOTIFICATION_BODY="$(cat < "$DEMYX_TMP"/demyx_notify_healthcheck | sed -r "s/\x1B\[([0-9]{1,3}(;[0-9]{1,2})?)?[mGK]//g" | sed 's|["'\'']||g' | sed ':a;N;$!ba;s/\n/<br>/g')"' with exit code '1' in /etc/demyx/function/global.sh:477

Stack Trace:
#0 /etc/demyx/function/global.sh(477): demyx_notification
#1 /etc/demyx/function/healthcheck.sh(135): demyx_healthcheck_disk
#2 /etc/demyx/function/healthcheck.sh(21): demyx_healthcheck
#3 /etc/demyx/function/global.sh(342): demyx_execute
#4 /etc/demyx/function/cron.sh(140): demyx_cron_hourly
#5 /etc/demyx/function/cron.sh(27): demyx_cron
#6 /etc/demyx/bin/demyx.sh(34): demyx
#7 /etc/demyx/bin/demyx.sh(97): main
#8 cron hourly
@demyxco demyxco added the bug Something isn't working label Jan 9, 2025
@demyxco
Copy link
Collaborator

demyxco commented Jan 9, 2025

Hey 👋 thanks for opening the issue. Looks like the file /demyx/tmp/demyx_notify_healthcheck doesn't exist during the hourly cron. Did you set up a custom daily hourly script in /demyx/custom/cron/hourly.sh?

@lifeneatify
Copy link
Author

I think I didn't do anything special to set up daily/hourly crons
What command should I use to verify /demyx/custom/cron/hourly.sh BTW?
Basically I am justing using the default to create a site such as demyx run your-domain.tld --cache --redis --ssl

@demyxco
Copy link
Collaborator

demyxco commented Jan 9, 2025

Oh ok it seems like you didn't setup a custom hourly cron then. Looks like a regular bug from a fresh install. Thanks for the report, I will address this before v1.9 is released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants