From de138c405fb5f4f294c25414a7d6cfea100ff239 Mon Sep 17 00:00:00 2001 From: Adam Monsen Date: Thu, 2 May 2024 12:23:50 -0700 Subject: [PATCH] document JavaScript support warning root cause formatting for this section is terrible. WIP See also: * https://github.com/nextcloud/server/issues/42989 could fix with local DNS, or extra_hosts in compose.yml: * https://stackoverflow.com/questions/29076194/using-add-host-or-extra-hosts-with-docker-compose * https://github.com/compose-spec/compose-spec/blob/master/spec.md#extra_hosts --- book/steadfast.asciidoc | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/book/steadfast.asciidoc b/book/steadfast.asciidoc index f6706fb..ec16996 100644 --- a/book/steadfast.asciidoc +++ b/book/steadfast.asciidoc @@ -2488,10 +2488,13 @@ See <> for tips on how to roll out apps thoughtfully and which on . Check logs for all containers related to Netcloud with `dc nextcloud logs -f`. . Check Nextcloud internal logs at `/settings/admin/logging` in the web UI or `/data/nextcloud/root/data/nextcloud.log` on the server. . Review "`Security & setup warnings`" at `/settings/admin/overview`. -.. You can ignore ‟Could not check for JavaScript support. Please check manually if your webserver serves `.mjs` files using the JavaScript MIME type.”. -This warning appears to be caused by DNS issues but shouldn't break anything. -.. If you see a warning about an error in the logs and that error is **NotPermittedException** "`Could not create folder "/appdata_NNN/theming/global"`", just ignore it. -This appears to be a harmless install-time issue. +.. You can ignore the warning ‟Could not check for JavaScript support. Please check manually if your webserver serves `.mjs` files using the JavaScript MIME type.” if `curl -I \https://cloud.example.com/apps/settings/js/esm-test.mjs` succeeds on your admin computer and shows `content-type: text/javascript`. +This warning is because the Nextcloud `app` container https://github.com/nextcloud/server/issues/42989[fails at a test] to request `/apps/settings/js/esm-test.mjs`, likely because of a DNS issue. +To fix it, the request must be able to work from within the Nextcloud `app` container. +In other words, this must work: `dc nextcloud exec -u www-data app curl -I \https://cloud.ob4cuashcib3.site/apps/settings/js/esm-test.mjs`. +.. If you see a warning about "`1 error in the logs since DATE`" (or perhaps a couple), you can probably ignore them. +These initial logged errors appear to be harmless, possibly a result of some install-time race conditions. +It is still a good idea to review all logged errors. . Some ((maintenance)) requires the `occ` tool (short for "`ownCloud command`"). .. Run it with `sudo docker exec --interactive --user www-data nextcloud-app-1 php occ`. . Add `/data/video` as an External storage.