Using docker Farm OS 3.4.5 as non root user it appears that I can’t upload data (kml, pictures) to FarmOS. I also can’t export/ write out CSV files.
I can add logs and other things to the database but no uploads.
What could be the reason?
Using docker Farm OS 3.4.5 as non root user it appears that I can’t upload data (kml, pictures) to FarmOS. I also can’t export/ write out CSV files.
I can add logs and other things to the database but no uploads.
What could be the reason?
I think server folder access restriction problem for your web server.
@Lars have you followed the instructions for configuring your server to enable file uploads?
I am trying to do this. Is it correct that the settings.php has to be made writable with `chmod a+w sites/default/settings.php and if so how do I change it back to the secure setting?
I assume the folder (create the folder /opt/drupal/web/sites/default/private/) should be outside the docker container to make it permanent but then it needs to be mounted as a volume correct? Sorry this is a new setup using the pretty good manual of FarmOS on Raspberry PI: Farm Management Software Open-Source but this part was not explained.
Just to be sure that my data is stored in a permanent place and I dont loose all the work of data input. I can see that /var/lib/docker/volumes/farmos_db/_data is mounted as a volume but cant find that volume or the docker folder on the normal file system even as root. Is this correct?
Yes you’ll need to edit settings.php
to add the line described in the installation guide I linked above. Use chmod a-w sites/default/settings.php
(minus instead of plus) to remove all write access to it afterwards.
Correct. Best practice is to bind mount /opt/drupal/web/sites
. This is also explained in the official installation guide: Installing farmOS | farmOS
I can’t vouch for that guide, but the official installation guide should cover everything you need!
Thank you you for getting back to my questions. However for a non programmer this is not so straight forward also because there is different information and missing information that makes it difficult to follow and understand the process.
For example here Installing farmOS | farmOS it sais that there is
An example docker-compose.production.yml
configuration file is provided in the farmOS repository’s docker
directory, with an accompanying README.md
. But looking at it I cant find it. As a result I can’t check the information in that file to understand how it is done.
I have read the install file in the git farmos doc but its not the same thing.
While it is probably very easy for someone with experience to do what you describe under Installing farmOS | farmOS I have looked at it on and off for the last days but cant fully execute it as the folder /opt/drupal/web/sites/default/
is already mounted as a volume and I cant access it. Dont get me wrong farmos is a amazing system but not easy to correctly install for farmers. Especially considering that data needs to be persistent after the next update and the years to come.