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