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

[nextcloud] HTTP probe failed with statuscode: 503 #1264

Closed
andreclemente opened this issue Jun 14, 2023 · 4 comments
Closed

[nextcloud] HTTP probe failed with statuscode: 503 #1264

andreclemente opened this issue Jun 14, 2023 · 4 comments

Comments

@andreclemente
Copy link

andreclemente commented Jun 14, 2023

Hi, I think there's a problem with nextcloud version 26.0.2_1.6.29. Everytime I try to upgrade I get the following:

2023-06-14 10:02:39
Back-off restarting failed container
2023-06-14 9:54:05
Container nextcloud failed startup probe, will be restarted
2023-06-14 9:53:35
Startup probe failed: HTTP probe failed with statuscode: 503
2023-06-14 9:53:30
Startup probe failed: Get "http://172.16.0.103:80/status.php": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
2023-06-14 9:53:13
Started container nextcloud
2023-06-14 9:53:12
Created container nextcloud
2023-06-14 9:53:09
Container image "nextcloud:26.0.2" already present on machine
2023-06-14 9:52:45
Created container nextcloud-postgres
2023-06-14 9:52:45
Started container nextcloud-postgres
2023-06-14 9:52:41
Started container init-postgresdb
2023-06-14 9:52:40
Created container init-postgresdb

Then, in order to make it work again, I have to rollback the app and the data to the previous version.
Any clue?

Thank you very much in advance!

@andreclemente
Copy link
Author

Here's a bit more info from the logs:

2023-06-14 09:19:07.308883+00:00[Wed Jun 14 09:19:07.308714 2023] [php:notice] [pid 33] [client 172.16.0.1:45026] {"reqId":"3B9B6BmUaQXLCicqvmgR","level":3,"time":"2023-06-14T09:19:07+00:00","remoteAddr":"172.16.0.1","user":"--","app":"PHP","method":"GET","url":"/status.php","message":"Using ${var} in strings is deprecated, use {$var} instead at /var/www/html/custom_apps/recognize/vendor/voku/portable-utf8/src/voku/helper/UTF8.php#13409","userAgent":"kube-probe/1.25","version":"26.0.1.1","data":{"app":"PHP"}}

@andreclemente
Copy link
Author

Seems to be related to nextcloud/recognize#872 and voku/portable-utf8#191
However, I fixed the file voku/portable-utf8/src/voku/helper/UTF8.php locally and I get the following:

2023-06-14 11:01:13
Container nextcloud failed startup probe, will be restarted
2023-06-14 11:00:38
Startup probe failed: HTTP probe failed with statuscode: 503
2023-06-14 11:00:19
Started container nextcloud
2023-06-14 11:00:18
Created container nextcloud
2023-06-14 11:00:15
Container image "nextcloud:26.0.2" already present on machine
2023-06-14 10:59:53
Created container nextcloud-postgres
2023-06-14 10:59:53
Started container nextcloud-postgres
2023-06-14 10:59:49
Started container init-postgresdb
2023-06-14 10:59:48
Created container init-postgresdb

@stavros-k
Copy link
Contributor

503 HTTP code means server error, Which makes me think the upgrade is either error-ing out or taking too long.
But I can't say for sure without the full logs.

Also, the above single log line you have shared is just a warning and should not cause any failures. (also something that Nextcloud have to address)

@stavros-k
Copy link
Contributor

I'm closing this for now, as there wasn't any response.
If you still encounter the issue feel free to comment back and I'll re-open.

Thanks

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