IRC logs for #farmOS, 2022-07-19 (GMT)

2022-07-18
2022-07-20
TimeNickMessage
[20:02:19]* farmBOT has joined #farmos
[01:54:16]* farmBOT has joined #farmos
[14:31:44]* thattechguy99[m] has joined #farmos
[14:32:04]<thattechguy99[m]>anyone around who can help with install questions on local hosting?
[14:32:25]<paul121[m]>ask away!
[14:32:41]<thattechguy99[m]>Alright!!! :) Here they come
[14:33:20]<thattechguy99[m]>Which install method do you recommend? I have tried the download one by one component approach and the tar ball method. Both have not gone well for me. Ubuntu 20.04 here.
[14:34:37]<symbioquine[m]>Docker
[14:34:48]<thattechguy99[m]>boo. :)
[14:35:11]<thattechguy99[m]>I'm not running docker but I can see how that would be nice.
[14:35:19]<FarmerEd[m]>Docker :)
[14:35:23]<symbioquine[m]>https://farmos.org/hosting/install/#farmos-in-docker
[14:35:46]<paul121[m]>ya. so you'll want these docs for the packaged tar ball, but yeah, configuring the server is not included in this documentation: https://farmos.org/hosting/install/#packaged-releases
[14:36:10]<MarcosCarballal[>thattechguy99: I've gone down that road before. On Ubuntu 20.04... I would not recommend it. As others have said, Docker.
[14:36:34]<thattechguy99[m]>ok, hint taken, Docker download it is...
[14:36:35]<mstenta[m]>One command: `docker run --rm -p 80:80 -v "${PWD}/sites:/opt/drupal/web/sites" farmos/farmos:2.0.0-beta5` :-)
[14:36:58]<thattechguy99[m]>need to install docker first.
[14:37:00]<mstenta[m]>thattechguy99: You will need a database too... do you have one running?
[14:37:10]<thattechguy99[m]>sqlite3
[14:37:40]<mstenta[m]>thattechguy99: this page walks through installing Docker https://docs.docker.com/engine/install/ubuntu/
[14:37:53]<mstenta[m]>it's less complicated than it looks - you basically just walk through that and copy and paste the commands
[14:37:55]<thattechguy99[m]>on it mstenta like a rat on a cheeto
[14:38:27]<mstenta[m]>> sqlite3
[14:38:27]<mstenta[m]>if you're going down the Docker path, you may want to consider running PostgreSQL in Docker as well
[14:38:31]<mstenta[m]>it will perform better than sqlite3
[14:38:40]<mstenta[m]>but no harm in testing it out on sqlite3 first to see if you like it!
[14:42:42]<paul121[m]>the demo site uses sqlite and isn't too bad! but often doesn't have much data either :-)
[14:44:28]<thattechguy99[m]>I can go Postges as well. Tried that the first install.
[14:55:25]<thattechguy99[m]>ran this command "sudo docker pull farmos/farmos:2.0.0" Received the following: Error response from daemon: manifest for farmos/farmos:2.0.0 not found: manifest unknown: manifest unknown
[14:55:46]<thattechguy99[m]>Do you know what the release name is?
[15:02:53]<FarmerEd[m]>farmOS/farmOS:2.0.0-beta5
[15:11:17]<thattechguy99[m]>I must have missed a step somewhere. here is the error: Error response from daemon: pull access denied for farmos/farmos2.0.0-beta5, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
[15:11:57]<thattechguy99[m]>this was the command: sudo docker pull farmos/farmos2.0.0-beta5
[15:12:33]<thattechguy99[m]>putting caps in "OS" resulted in: invalid reference format: repository name must be lowercase
[15:20:14]<FarmerEd[m]>Does beta4 result in the same?
[15:20:23]<thattechguy99[m]>I'll try it.
[15:20:44]<thattechguy99[m]>same message
[15:21:10]<thattechguy99[m]>Using default tag: latest
[15:21:10]<thattechguy99[m]>Error response from daemon: pull access denied for farmos/farmos2.0.0-beta4, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
[15:25:14]<thattechguy99[m]>from my syslog: Jul 19 19:20:38 farmsvr dockerd[876]: time="2022-07-19T19:20:38.449161686Z" level=info msg="Ignoring extra error returned from registry: unauthorized: authentication required"
[15:27:37]<paul121[m]>You need a colon between the image name and version:
[15:27:37]<paul121[m]>`docker pull farmos/farmos:2.0.0-beta5`
[15:27:59]<thattechguy99[m]>crap, I hope that is it
[15:28:39]<thattechguy99[m]> * that was it
[15:28:49]<thattechguy99[m]>Downloading now
[15:29:10]<FarmerEd[m]>Damn colons :D
[15:29:21]<thattechguy99[m]>haha... Need to get that checked
[17:59:42]<thattechguy99[m]>well folks, I got it running. Thanks for the help. one question. I do have a question about if the configuration changes I make in the application will persist through a restart since it is in a docker image?
[19:46:49]<mstenta[m]>The -v argument to the docker run command mounts a volume from your host system into the container
[19:47:28]<mstenta[m]>Everything in that folder will persist when the container is destroyed/upgraded/etc
[19:47:43]<mstenta[m]>So thats what you'll want to backup as well
[19:48:36]<mstenta[m]>Note: that is just for files (settings.php, uploaded photos, etc). You also need to backup your database separately.
[19:49:01]<mstenta[m]>But if you are using sqlite then the db file may actually be in that same dir