< 272017-03-28⋎29 >

Topic for #farmOS is: farmOS (farmos.org) is a free open source, web-based farm management system, built on Drupal. Please report bugs to github.com/farmOS/farmOS/issues - Subscribe to the farmOS mailing list at: lists.eruditium.org/cgi-bin/mailman/listSet by mstenta on 2017-03-16 at 16:48
00:47lazerorcathank you soooo much for your help
02:06*itnomad has joined
02:19itnomadHello. Docker is pretty cool. I took a couple of days to familiarize myself with it. Nice to not be messing with drush, or compose, or the version problems.
02:20itnomadI got the image and on running it connected to the web site where the drupal installation is running. I'm having trouble with the database setup.
02:21itnomadI'm following these instructions. farmos.org/development/docker/
02:24itnomadIt's tricky. I'm using docker in a Centos7 virtual machine hosted on a Fedora 25 computer. I created the database on the Centos7 virtual machine and I wonder if I should be creating it on the farmos container or something like that.
02:25itnomadMaybe easier just to get a Centos 7 cloud server and set things up there. I have a couple of cloudservers with Cloudatcost, but they have been a lot of trouble to work with. So they sit idle.
02:34*JustTB has quit (Quit: Leaving.)
03:12itnomadI think I just found what I need in your documentation. There is a MariaDB database container available on the host system.
03:12itnomadOutstanding! You guys have really done some great work with this.
03:12itnomadBedtime now.
03:12*itnomad has quit (Quit: Leaving)
09:08*JustTB has joined
09:14*JustTB has quit (Quit: Leaving.)
09:42*JustTB has joined
10:04*M-DzzzzzzR has quit (Write error: Connection reset by peer)
10:19*M-DzzzzzzR has joined
12:20*Don has joined
12:20DonI could not get my map to work,
12:21*Don is now known as Don
12:21Guest4077i followed instruction on the drupal page...
12:22mstentaHi Don
12:22mstentaGuest4077 ^
12:22mstentaWhat is the issue you're seeing?
12:23Guest4077Oh, i just fixed it
12:23mstentaGreat! :-)
12:23Guest4077the map was initially disappearing, then i just see the source options, the help page said option, was not looking at source option
12:24Guest4077Thanks Mstenta, i can see your help on all the pages, and you are even responding here...
12:25mstentaGuest4077: sure thing! glad you figured it out!
12:25mstentaEventually I'd like to add an option during the farmOS installation for you to enter the API key, and then connect the dots in the background - to make this easier
12:26mstentaAnd/or also have the ability to choose a different default map source (not Google)
12:26mstentaMost require API keys these days, though, so the problem will be the same.
12:31mstentaGuest4077: if you start using farmOS regularly, consider adding your farm to farmOS.org/community/farms !
12:31Guest4077That is a great idea, so they can get it running from the get go...For now, if you had written, click the source option link to add the API key, i would have finished like 5mins..
12:31mstentaLooking to grow that list... :-)
12:32Guest4077Ok...great, i might write a blog on this since i have a tech blog.
12:32mstentaGuest4077: oh ok... i can update that... are you referring to this page? v
12:32mstentawww.drupal.org/node/2768895
12:32Guest4077yes...
12:32mstentaGuest4077: awesome! let me know if you do and i'll put a link on farmOS.org/community/press !
12:33mstenta:-)
12:33Guest4077admin/structure/openlayers/sources/list/farm_map_source_google_hybrid/edit/options ....just add source options, and Baaaam...it is way easier...
12:33Guest4077ok, i will save this now, and get back to you
12:34mstentaGuest4077: should i reword step 4 on this page? www.drupal.org/node/2768895
12:34mstentais that what you mean?
12:36Guest4077yes, please
12:37mstentaGuest4077: what do you think i should change it to?
12:37Guest4077At administrative settings, click on the "source options" link to enter the API key
12:37Guest4077At administrative settings, click on the "Source type options" link to enter the API key..
12:37mstentaOh... but doesn't that link take you directly there? (admin/structure/openlayers/sources/list/farm_map_source_google_hybrid/edit/options)
12:39mstentaI figured it was easier to just provide the direct link to that page than to try to explain how to get there through the UI
12:41Guest4077ohh, i will see
12:41Guest4077Ohhhh, you were right
12:42Guest4077i was following the UI...OMG..
12:42mstentaOh ok great! :-)
12:42mstentaAh yea... it is definitely tricky to find it in the UI if you are new to the Openlayers module
12:42Guest4077i was following links, so i missed that, ok...t
12:42Guest4077thanks once again
12:42mstentaYou're welcome!
12:42mstentaI'm impressed you found it without the link!
12:42mstenta:-)
12:43Guest4077:)
12:46*Guest4077 has quit (Quit: Page closed)
13:56*JustTB has quit (Quit: Leaving.)
13:59*JustTB has joined
17:05*itnomad has joined
18:34mstentahi itnomad - did you get it all working with docker?
18:38itnomadI'm being pulled in several directions today. Now, I'm following the instructions you suggested, carefully. I just ran docker-compose up. Funny the program could not be found when run with sudo. After an 'su' though, no problem.
18:41mstentaitnomad: i should mention - i've only tested this myself on ubuntu 16.04
18:41itnomaddocker-compose finished. There is an error. Could not start the www service.
18:41mstentanot sure why it doesn't work with sudo... sounds like a path issue?
18:41mstentahmm ok...
18:41mstentado you have anything else running on port 80, perchance?
18:42mstenta(some other folks have run into an issue on Macs, which have Apache installed by default)
18:42mstentaif so, you can tweak your docker-compose.yml file to make farmOS/docker run on a different port
18:42mstentaie: port 81
18:43itnomadapache is installed and I believe the service is called httpd not www.
18:44mstentaok
18:44itnomadI'm going to dig around a little and check back in later. I've got some pressing matters to attend to.
18:44mstentaok good luck!
18:44mstentai'll put a few ideas into chat as i think of them...
18:44mstentafeel free to read at your liesure
18:44mstentaleisure*
18:45itnomadThanks. Later. :)
18:46mstentain the docker-compose.yml file, you'll see the "www" service and a "ports" attribute set to "80:80"
18:47mstentathat basically means: when you create this container (which we have decided to call "www"), map port 80 in the container to port 80 on the host
18:47mstentaso when a request to port 80 hits your host server (Centos?) then it is forwarded to port 80 of the container
18:47mstentaat that point (in the container), our docker image has Apache listening on port 80, so it picks it up, processes it (through Drupal/farmOS) and gives you back the page
18:48mstentaso... if you are ALREADY running Apache on your host system, then port 80 is already taken
18:48mstentain that case, you can either: a) turn off Apache on your host (if you don't need it)
18:49mstentaor b) change the "ports" in docker-compose.yml to something like "81:80"
18:49mstentawhich says "take any requests on the host's port 81 and forward them to port 80 in the container"
18:49mstentathen try docker-compose up again, and hopefully the www service is able to start
18:50mstentaif it does, then you can view your farmOS site at 127.0.0.1:81
18:50mstenta(note the port at the end ":81")
18:50mstentahope that all makes sense! and feel free to ignore if any of that was already obvious to you :-)
20:55itnomadwhen I ran 'docker-compose up' I got a lot of permissions errors. First on reading the /var/lib/mysql and then on creating all the directories the script tries to create.
20:56mstentaitnomad: docker-compose needs to be run as sudo too i believe
20:56mstentathat might be the issue... ?
20:57mstentawhat that before or after the port 80 issue you had earlier?
20:57itnomadI ran it after switching to root. I don't understand why using sudo is acting differently that running as root.
20:59itnomadMaybe I'll download and install ubuntu 16.04. I'm not really tied to Centos, it's just what I'm most familiar with.
21:00mstentahmm yea i'm not sure either
21:00itnomadUnder sudo, docker-compose: command not found. Very odd.
21:00mstentait does sound like there is some subtle difference in the way sudo works on centos vs ubuntu...
21:01mstentaor maybe it's just an issue with paths... ie: the directory that docker is installed in is not in the path for your user?
21:03mstentabut if you're open to trying ubuntu i say do that!
21:03itnomad/usr/local/bin is most certainly in my user's path.
21:03mstentahmm
21:03mstentayea i would have been surprised if it wasn't...
21:04mstentawhere is docker and docker-compose installed?
21:04mstentain mine, docker is in /usr/bin
21:04mstentadocker-compose is in /usr/local/bin
21:06itnomaddocker-compose is owned by root.root and is in /usr/local/bin
21:07itnomadsame here. docker is in /usr/bin
21:07mstentahmm yea i'm not sure why it's not working
21:07mstentaif you run "docker" without sudo, does it also say not found?
21:08mstentahmm... doing some googling... stackoverflow.com/questions/30379381/doc
21:08mstentacould it be that you installed that instead of the real docker?
21:09mstentadid you install using the centos package manager? or from the instructions on docker.com?
21:09mstentaor wait... nevermind... you said before that it almost worked (with "could not start www service") - so that would suggest you have docker
21:10mstentawhat do you get when you run "docker --version" and "docker-compose --version" ?
21:10itnomadInteresting. If I run $docker, I get a usage error. If I run $docker images, the program is not found
21:10itnomadokay trying your last suggestion.
21:12itnomadI get docker version 1.12.6 and docker-compose version 1.12.0-rc2
21:13itnomadI'm being pulled away again. I'll be back later.
21:14mstentahmm ok...
21:15mstentathe current version of docker is 17.03.0-ce - github.com/docker/docker/blob/master/CHA
21:16mstenta(after 1.13.1 they changes to the 17.x.y numbering (where 17 is the year, x is the month))
21:16mstentaso your version is a little old... but not that bad... it should still work
21:16mstentathe docker-compose version is a little more confusing...
21:16mstentabecause the latest version is 1.11.0 - github.com/docker/compose/blob/master/CH
21:17mstentaare you sure yours is 1.12.0-rc2?

< 272017-03-28⋏29 >