IRC logs for #farmOS, 2024-08-27 (GMT)

2024-08-26
2024-08-28
TimeNickMessage
[20:00:23]<mstenta[m]>That just means private files directory is not configured. Let's get that set up next...
[20:00:55]<riotmiked[m]>mstenta[m]: Yes I suspected. I've been using `drush wd-show --count=50 --extended` when in bashed into the container.
[20:01:37]<mstenta[m]>Yea its ok. Private files can be configured after install. The warnings just show if its not configured ahead of time.
[20:01:57]<mstenta[m]>To configure you need to create a directory and add a line to settings.php
[20:02:22]<mstenta[m]>The directory can be sites/default/private, writeable by www-data
[20:02:30]<riotmiked[m]>mstenta[m]: I can definitely follow the procedure you linked to. Still wondering if there is another place I should be looking for *why* it's getting hung up at that final step in initial config.
[20:02:56]<mstenta[m]>And the settings.php line is in the install docs
[20:03:11]<mstenta[m]>Cool!
[20:03:14]<riotmiked[m]>mstenta[m]: Yes that's pretty clear
[20:04:05]<mstenta[m]>Remind me what step is it getting hung up on?
[20:04:35]<riotmiked[m]>ACTION uploaded an image: (125KiB) < https://matrix.org/_matrix/media/v3/download/matrix.org/ERdHpWNnJFfoAAis... >
[20:04:37]<mstenta[m]>Maybe the global volumes were the issue?
[20:04:46]<riotmiked[m]>Step 6
[20:04:50]<mstenta[m]>Oh right. Thats still happening? :-(
[20:05:13]<mstenta[m]>Is there a PHP error? (Not warning)
[20:06:14]<mstenta[m]>Is the oauth keys directory thing still an issue?
[20:09:42]<mstenta[m]>You might also try installing via drush... rather than UI. Curious if that would work, or provide better logs
[20:10:27]<riotmiked[m]><mstenta[m]> "Maybe the global volumes were..." <- I've removed that now. I'm doing the following so I can report properly:... (full message at <https://matrix.org/_matrix/media/v3/download/matrix.org/MljJPhLJTKssLDvH...)
[20:13:07]<riotmiked[m]>For that procedure (and hanging on Initializing at the end) I get the following drush output:... (full message at <https://matrix.org/_matrix/media/v3/download/matrix.org/KrNndsuNnMeRKnPD...)
[20:13:55]<mstenta[m]>drush site-install --db-url=pgsql://farmos:password@db/farmos
[20:14:11]<mstenta[m]>Thats the drush command FYI
[20:14:53]<mstenta[m]>Hmm OK yea I don't see any good clues in that drush output
[20:14:55]<riotmiked[m]>I do that as root bashed into the docker container?
[20:15:07]<mstenta[m]>Can you look at the Docker logs?
[20:15:20]<riotmiked[m]>mstenta[m]: Yes I can!! One sec
[20:15:29]<mstenta[m]>The drush watchdog logs are Drupal logs, so they may miss lower level PHP errots
[20:16:42]<mstenta[m]>riotmiked[m]: Here is how we do it in automated tests: https://github.com/farmOS/farmOS/blob/3a73ccf6360ba309ee657e2d645d29c239...
[20:17:10]<mstenta[m]>(using docker compose exec ...)
[20:17:46]<mstenta[m]>(important to run as www-data user)
[20:18:49]<mstenta[m]>You can leave off the "farm farm.modules..." bit at the end and it will install defaults
[20:22:08]<riotmiked[m]><mstenta[m]> "Can you look at the Docker logs?" <- I did look at these. they don't seem to contain errors. I just sent them off-chat to your email because they include my specific site address in them.
[20:22:23]<riotmiked[m]>mstenta[m]: but I **want** all of the modules :)
[20:23:57]<mstenta[m]>Well then the line in our github action above is perfect 😄
[20:26:08]<mstenta[m]>Hmm
[20:27:45]<mstenta[m]>Well I'm a bit stumped. I would try drush site-install next
[20:28:37]<riotmiked[m]>Install stops at those [warning] is_dir() lines.... (full message at <https://matrix.org/_matrix/media/v3/download/matrix.org/RftRysFULUHpTMZV...)
[20:28:41]<mstenta[m]>This hanging install issue is a new one
[20:28:57]<mstenta[m]>Huh.
[20:29:20]<mstenta[m]>Well... lets set up your private files!
[20:29:20]<riotmiked[m]>mstenta[m]: hold on - it finished.
[20:29:38]<mstenta[m]>Shouldn't need to, but ...
[20:29:40]<mstenta[m]>Oh!
[20:30:40]<riotmiked[m]>It worked. It spit out a default user name and password
[20:30:51]<mstenta[m]>Wahoo!
[20:30:53]<riotmiked[m]>I am now logged in as admin at my site
[20:31:02]<mstenta[m]>🎉
[20:31:06]<riotmiked[m]>now what did I do to mess that up on the UI???
[20:31:30]<mstenta[m]>I don't know! Very curious! 🤔
[20:31:59]<riotmiked[m]>ACTION sent a code block: https://matrix.org/_matrix/media/v3/download/matrix.org/rjxwouPEINxSsgPJ...
[20:33:01]<mstenta[m]>That's it!
[20:33:19]<mstenta[m]>And setting up private files ahead of time would fix the warning
[20:33:45]<riotmiked[m]>mstenta[m]: Thanks for sticking it out with me - I'm really curious about this setup error.
[20:34:20]<mstenta[m]>Yea... wonder if there were any browser console errors
[20:35:02]<mstenta[m]>Maybe it was client side. Something with JS or https issues or dns or or or... 🫣
[20:35:05]<riotmiked[m]>mstenta[m]: I will try to replicate and investigate more. My install guide isn't going to be very useful if it doesn't work :).
[20:36:11]<mstenta[m]>postmanpat: I wonder if we solved your issue somewhere along the way too 😅
[20:36:18]<riotmiked[m]>mstenta[m]: A refresh of the site using a different browser in a private window just showed a default (non-styled) log-in screen that immediately reported the username and a couple of other information about the user when logged in.
[20:36:43]<riotmiked[m]>riotmiked[m]: BEFORE, that is
[20:36:54]<riotmiked[m]>riotmiked[m]: Now it's working beautifully
[20:37:02]<mstenta[m]>Oh ok
[20:37:27]<mstenta[m]>Question: did you make sites/default writeable? Or did it work without that?
[20:38:25]<riotmiked[m]>mstenta[m]: Worked without that. However, I did have to make `keys` writable
[20:38:45]<mstenta[m]>Oh good
[20:39:01]<mstenta[m]>Ok yea. We need to add that to our docs. About keys
[20:39:31]<mstenta[m]>Realizing we don't have it in there
[20:39:31]<riotmiked[m]>mstenta[m]: As you suggested, though - the keys directory was blank and was populated
[20:39:46]<mstenta[m]>Awesome.
[20:40:02]<riotmiked[m]>I now have a private.key, public.key, and web.config file there
[20:42:40]<mstenta[m]>Cool. Not sure what web.config ia tho 🤔
[20:42:47]<mstenta[m]>In keys?
[20:43:42]<mstenta[m]>Oh might be autogenerated for security purposes
[20:43:58]<mstenta[m]>Is there also a .htaccess file in there? (hidden)
[21:01:44]<riotmiked[m]><mstenta[m]> "Is there also a .htaccess file..." <- yup :)
[21:03:45]<riotmiked[m]>mstenta: Truly, thanks for the time this evening. I'm going to shuffle kids to bed, but I'm looking forward to writing up this stuff. I'm constantly impressed with your patience and dedication to FarmOS, especially working to make the docs better!
[02:19:08]<postmanpat[m]><mstenta[m]> "postmanpat: I wonder if we..." <- I believe so. I'll try it out. 👍️