< 022020-02-03⋎04 >

farmOS (farmos.org) is a free and open source, web-based farm management system. User guide: farmos.org/guide/ - Feature requests and bug reports: github.com/farmOS/farmOS/issuesSet by ChanServ on 2018-08-16 at 14:32
05:46*farmBOT has joined
08:52*JustTB has joined
09:11*JustTB has quit (Read error: Connection reset by peer)
12:34*JustTB has joined
13:45*JustTB has quit (Quit: Leaving.)
16:56*komatek[m] has joined
16:56komatek[m]Hi
16:56farmBOTbonjour
17:04*JustTB has joined
19:13*JustTB has quit (Quit: Leaving.)
19:13*JustTB has joined
19:33*JustTB has quit (Ping timeout: 265 seconds)
19:47*JustTB has joined
19:54komatek[m]bonjour bonjour
19:56komatek[m]Hi
19:56farmBOTeh oh
19:56komatek[m]how are you ?
19:58komatek[m]pretty well thank you ;-)
19:59komatek[m]I'm working on a automatic deployment (based on ansible) of a full FarmOS stack on Debian
19:59komatek[m]and I've almost done everything but i'm stuck with an error with the FarmOS drupal release
20:00komatek[m]Since my work will be done, I'll put it on my github
20:01komatek[m]Actually the goal is to provide a simple way to user to deploy a secured web stack on which we can put FarmOS
20:01komatek[m]So the task automatically done are :
20:01komatek[m]- dev-sec hardening linux
20:02komatek[m]- configure SSH for use with key
20:02*wimpertier[m] has quit (*.net *.split)
20:02*skipper_is[m] has quit (*.net *.split)
20:02*mstenta[m] has quit (*.net *.split)
20:09komatek[m]Below is what I've done and working (in term of ansible jobs):
20:09*sent a long message: < matrix.org/_matrix/media/r0/download/mat >
20:10komatek[m]The goal is to made easy the deployment of a secure web server (Nginx Nemesida PHP Mysql) with security best practices
20:11komatek[m]I've done everything , but I'm stuck with the drupal installation that hang at "installation profile"
20:11komatek[m]Yes I've considered it but only for dev
20:11komatek[m]I don't wnat my prod instance runing on docker
20:12komatek[m]but the ansible tasks are allready done ;-)
20:12komatek[m]they are working like a charm on a fresh debian 9.0 install
20:13komatek[m]I've debian 9.0 because of mysql 5.5 and php 7.2
20:13komatek[m] * I've choose debian 9.0 because of mysql 5.5 and php 7.2
20:14komatek[m]yes but I'm really not a big fan of docker for production servers and security aspects
20:14komatek[m]maybe if we have opportunity to run cluster of farmos and K8s
20:15komatek[m]but actually that's not the case
20:15komatek[m];-)
20:16komatek[m]the issue is that I don't have any logs on the drupal installation process
20:16komatek[m]I launch the farmos install.php
20:16komatek[m]I confugure the mysql data
20:17komatek[m]and since the drupal install finnish the database populate it goes to a step called " installation profile"
20:18komatek[m]and there it's stuck and no mesage is shown
20:18komatek[m]nothing ....
20:18komatek[m]normally during the drupal process it should go forward
20:19komatek[m]no it's not blank
20:19komatek[m]the left menu indicate it's at the "installing profile" step
20:19komatek[m]but nothing happen never
20:20komatek[m]and if I force the browser to go back and come forward again
20:20komatek[m]yes
20:22komatek[m]there the step is marked finished but after the final "config screen" where you put the name of the admin etc... an error is shown on the webpage : Error: Call to undefined function field_attach_load() in DrupalDefaultEntityController->attachLoad() (line 354 of entity.inc).
20:22komatek[m]two days I'm restarting things and trying to solve this error
20:23komatek[m]I'm pretty sure that's it's not related to the ansible tasks but more on something between PHP mysql and drupal
20:23*skipper_is[m] has joined
20:23*wimpertier[m] has joined
20:23*mstenta[m] has joined
20:25komatek[m]ok thx
20:25mstenta[m]oh interesting...
20:25mstenta[m]someone else may have experienced this issue...
20:25mstenta[m]let me look...
20:26mstenta[m]www.drupal.org/project/drupal/issues/284
20:27mstenta[m]www.drupal.org/node/481758
20:27mstenta[m]That second issue might have some good info...
20:27mstenta[m]It sounds like there are a few different causes
20:28mstenta[m]What is you php `max_execution_time`?
20:28mstenta[m]farmos.org lists a few PHP settings that you could check: farmos.org/hosting/installing/#requireme
20:29komatek[m]yes I've put the parameter you defined for farmos
20:29komatek[m];-)
20:30komatek[m]maybe the db name length : myfarm_rocks
20:30mstenta[m]hmm i doubt it's the db name length
20:30mstenta[m]i've never had trouble with that
20:31komatek[m]ok, I'm actually reinstalling the server from scratch
20:31mstenta[m]ok yea it does sound like you need to delete the database and retry every time
20:32mstenta[m]> As you can see, there are a TON of different things that can cause this issue. The root cause is installation fails during module installation, and won't ever continue past that point until the database is dropped and recreated again.
20:32komatek[m]I'll check the multiple things in the drupal issue above in 10min (the time to fully redeploy from scratch)
20:33mstenta[m]do you have JS and cookies enabled?
20:33mstenta[m]www.drupal.org/project/drupal/issues/791
20:34komatek[m]hummmm JS in my firefox or Chrome ...
20:34komatek[m]maybe not
20:36komatek[m]hum yes JS allowed on Chrome
20:39komatek[m]Deployment in progress ...
21:03*wimpertier[m] has quit (*.net *.split)
21:03*skipper_is[m] has quit (*.net *.split)
21:03*mstenta[m] has quit (*.net *.split)
21:09komatek[m]ok deployment done
21:11*uploaded an image: image.png (36KB) < matrix.org/_matrix/media/r0/download/mat >
21:15komatek[m]so now I should find what to do to avoid issue
21:17komatek[m]I haven't done the drupal install.php
21:18komatek[m]I'm searching what to do to avoid the previous issue
21:18komatek[m]#27: Make sure dependencies[] = field is defined in your install profile's .info file. ???
21:19komatek[m]#57: is ok the user I've created got ALL rights on DB
21:20komatek[m]#66: Setting the $cookie_domain variable in settings.php fixed the problem. ?? maybe that one
21:21komatek[m]#88: Make sure the $base_url variable in settings.php is correct. ?? it's not the drupal install.php script that should do this ?
21:21*skipper_is[m] has joined
21:21*wimpertier[m] has joined
21:21*mstenta[m] has joined
21:23komatek[m]right now the server is full redployed with ansible and the drupal FarmOS release just unziped
21:23mstenta[m]right - i would think that if you let drupal's install.php create the settings.php file then you should be OK
21:23komatek[m]I'm on the install welcome screen of drupal
21:23komatek[m]<mstenta[m] "right - i would think that if yo"> yes I think so..
21:25komatek[m]#92: Ensuring the database name had only lowercase ASCII characters fixed the problem. ?? hmm the second time there is a fix with the DB name
21:25komatek[m]You know what, the most amaising thing is that there is no logs where I can see what is the error
21:26*sent a long message: < matrix.org/_matrix/media/r0/download/mat >
21:28mstenta[m]> You know what, the most amaising thing is that there is no logs where I can see what is the error
21:28mstenta[m]where did you see `Error: Call to undefined function field_attach_load() in DrupalDefaultEntityController->attachLoad()`?
21:29komatek[m]when I go previous and next in the browser
21:29komatek[m]on the install profile page step
21:30komatek[m]I've applied #161
21:31komatek[m]it's nginx
21:31komatek[m]not apache
21:31komatek[m]but yes I got them
21:31mstenta[m]do you have apache logs?
21:31mstenta[m]do you have nginx logs?
21:31mstenta[m]in apache, that error would show in the error log
21:31komatek[m]oh ok
21:32*uploaded an image: image.png (51KB) < matrix.org/_matrix/media/r0/download/mat >
21:33komatek[m]and hangs
21:33komatek[m]as usual
21:33komatek[m]without any error on nginx side
21:33*uploaded an image: image.png (28KB) < matrix.org/_matrix/media/r0/download/mat >
21:33komatek[m]and even after 15 min.. nothing
21:34mstenta[m]hmm yea that's not expected behavior :-)
21:34komatek[m]If I go back and next on the browser
21:34*uploaded an image: image.png (85KB) < matrix.org/_matrix/media/r0/download/mat >
21:35*uploaded an image: image.png (94KB) < matrix.org/_matrix/media/r0/download/mat >
21:35*uploaded an image: image.png (20KB) < matrix.org/_matrix/media/r0/download/mat >
21:35komatek[m]and voilà !!
21:35komatek[m]ahahah
21:36komatek[m]ok let's try the database name :-)
21:37mstenta[m]yea, that's worth a shot... try using a very simple db name, user name, and password
21:37mstenta[m]just to rule it out...
21:44komatek[m]yes
21:44mstenta[m]i also wonder if it would be worth trying the development version of farmOS
21:45mstenta[m]downloaded from here: www.drupal.org/project/farm/releases/7.x
21:45komatek[m]what is the actual status of the 8.x
21:45komatek[m]?
21:45mstenta[m]basically non-existent
21:45mstenta[m]we are starting to work on it :-)
21:46komatek[m]ok
21:46mstenta[m]getting the dependencies all squared away as the first step, including the openlayers maps, and the log and fraction modules
21:46mstenta[m]almost done with those
21:46komatek[m]ok
21:46komatek[m]I'm not a web developper, more a security / infrastructure engineer
21:47komatek[m]I'm actually converting my professional activity to IoT LoRaWAN ecosystem
21:48komatek[m]I've worked last 8 years in Cyber security
21:48mstenta[m]cool!
21:48mstenta[m]i have to leave now, family/evening time here :-)
21:48komatek[m]And I see a lot of potential with LoRaWAN and FarmOS
21:48mstenta[m]good luck debugging! please feel free to open a github issue and document your findings if you want!
21:48komatek[m]yes I'll do that
21:48mstenta[m]yes! lora++
21:48mstenta[m]also have you joined the forum?
21:49mstenta[m]farmOS.discourse.group
21:49komatek[m]I'm part of the TTN
21:49mstenta[m]there's some lora discussion
21:49komatek[m]yes I'm on it
21:49mstenta[m]great!
21:49komatek[m]oh great I need to see that
21:54komatek[m]ok so let's try
21:54*uploaded an image: image.png (52KB) < matrix.org/_matrix/media/r0/download/mat >
21:55komatek[m]same issue
21:55*uploaded an image: image.png (35KB) < matrix.org/_matrix/media/r0/download/mat >
21:56komatek[m]Drupal makes me crazy !!!!!!!!!!!!!!!
21:57komatek[m]Can you tell me how long this step should go ?
21:58komatek[m]😭
22:00komatek[m]I need to make a break, it's 11pm there (switzerland)
22:00komatek[m]I come back in 10 15 min
22:14mstenta[m]It might be worth trying a regular Drupal installation
22:14mstenta[m]And see if you have the same issue
22:14mstenta[m](Drupal 7)
22:52komatek[m]Yes you're totally right
22:53komatek[m]I'm on my smartphone, my pc crashed just after I left earlier
22:54komatek[m]I need to fix it....
23:17komatek[m]I'm back :-)
23:30komatek[m]ok same thing with drupal 7... issue remain.
23:30komatek[m]but without logs it's hard to find the root cause..
23:42komatek[m]drupal seem to work
23:43komatek[m] * drupal 8 seem to work better
23:43*uploaded an image: image.png (941KB) < matrix.org/_matrix/media/r0/download/mat >
23:43komatek[m]on the same base than drupal 7
23:44komatek[m]Unlucky me ☹︎
23:56*uploaded an image: image.png (47KB) < matrix.org/_matrix/media/r0/download/mat >

< 022020-02-03⋏04 >