Hello all.
I am trying to develop an app for Nextcloud using the dev container provided here. For the past couple of days I have had nothing but issues leading to no progress.
How I start the container:
When starting the container I follow the Windows tutorial provided in the link above. This uses WSL and creates a docker container on that system running Nextcloud. The container typically starts just fine and I am able to connect to it via nextcloud.local
.
How I am attempting to develop:
I am using VS Code to open the workspace on the WSL system. Here I can add my app skeleton and start trying to add onto the base app.
Issues I’m having:
This is where things start to go wrong. I have had several different issues so I will list them one by one:
- The dev container randomly lost its
CAN_INSTALL
file (Seems to be fixed after freeing up space even though 50GB was already free) - Blank login screen with the following error found in the webpage console:
Content-Security-Policy: The page’s settings blocked an inline script (script-src-elem) from being executed because it violates the following directive: “script-src 'self'”
. This was a fresh install and I had only added my skeleton app to theapps-extra
folder. - After staring the container and leaving it running for a bit, it will eventually complain about the inability to write to the config file. This doesn’t make much sense since I have not been setting up a config file. Creating one then changing the owner to www-data typically fixes this but not always. Stopping the containers, deleting them, then recreating them is another solution.
What I am expecting/hoping for:
I was hoping the tutorial published by Nextcloud would work well but this has not been the case so far. I have never worked with this type of project before and it has been frustrating. In all instances there have been no logs produced in the data
folder so I have been unable to look into the why of all of this.
I am posting here in hopes that someone might be able to tell me what I am doing wrong and offer some guidance. If anyone can offer such help, please let me know.
Thank you for your time.