-
Notifications
You must be signed in to change notification settings - Fork 269
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
Failed opening required '/var/www/html/lib/versioncheck.php' #584
Comments
Hi! I confirm the same situation with 18, 21 and the latest versions. I may add that the files comes later, however cannot understand when. For me it was enough to add sleep 2m before running next task. |
I also seem to be encountering something similar thing with NFS docker mount. |
This has been going on for a while now.e.g. in 2018. A am seriously considering rolling my own here, especially after my find, I love nextcloud, but this is vexing. This has nothing to do with the mounts as far as can tell. The image, for whatever reason they are doing it is beyond me, is actually rsyncing the code over to I also thought, what would be so hard copying a repository over? When looking at the entrypoint-script or the image itself ( So the entry-point script has a bug, that could easily be sidestepped by having the source directly at the intented location in the first place as far as I can see this. Here is a snippet to dissect the docker-image in question. mkdir tmp
cd tmp
docker save 4a507000dafe |bsdtar -x
mkdir abc
cat manifest.json|jq -r '.[].Layers|.[]'|xargs -I {} tar -C abc -xf {}
cd abc |
Same issue with my docker setup. For me the workaround is to wait some seconds between the |
I was able to fix this by increasing the initial delays in the startup probes. More details in #583 , but tl;dr adding this to my livenessProbe:
initialDelaySeconds: 7200
readinessProbe:
initialDelaySeconds: 7200
startupProbe:
initialDelaySeconds: 7200 |
@provokateurin since the fix here is just updating the Perhaps I add a section to the https://github.com/nextcloud/helm/tree/main/charts/nextcloud#troubleshooting docs called "Nextcloud fails to initialize properly" and then start linking back to issues such as this one, and then explain how to increase |
I wonder if #344 could also fix the initialization problem by running the installation with in an init-container that doesn't have the probes. Otherwise we can document this workaround and close the issue, sure! |
@provokateurin Sounds good to me. If you can move forward #344 and it gets merged, we need to add a section about probes to the docs anyway (submitted #605), and then I think we can close this, and if others till have the problem, they can open a new Issue. |
Also, missed this, sorry:
You can adjust your helm/charts/nextcloud/values.yaml Lines 216 to 221 in bf6cc4a
|
Hi,
I use the official helm chart to deploy nextcloud on our internal kubernetes instance. The container went unhealthy every time. I disabled the probes. The container is marked as ready but I can not connect to the nextcloud, neither via browser or curl.
I connect into the container and want to execute
php occ
to get some logs, because php does not write their logs on stdout. I get the following error message:The complete lib folder is not available.
I tried additionally the nginx + fpm setup. There I run into the same error. I upgraded the image to
20.0.4-apache
. This is the same image as we have deployed on a docker host. I removed the complete persistent volume, so that the containter can recreate the complete data directory, but I get this error, too. The lib directory is not available.How is this possible that the directory is missing and how can I fix it? Here is an old thread with the same issue. It seems to be not fixed.
Next, I found that the permissions of the directory
/var/www/html
are incomplete. The owner/group of all mounted volumes isroot:root
. I changed the permissions manually towww-data:root
. Otherwise has the container no access to the mounted directories. This should also be fixed.The text was updated successfully, but these errors were encountered: