< 262024-08-27⋎28 >

Topic for #farmOS is: farmOS (farmos.org) is a free and open source, web-based farm management system. User guide: farmos.org/guide/ - Forum: farmOS.discourse.groupSet by mstenta on 2021-06-15 at 12:52
00:00mstenta[m]That just means private files directory is not configured. Let's get that set up next...
00:00riotmiked[m]mstenta[m]: Yes I suspected. I've been using `drush wd-show --count=50 --extended` when in bashed into the container.
00:01mstenta[m]Yea its ok. Private files can be configured after install. The warnings just show if its not configured ahead of time.
00:01mstenta[m]To configure you need to create a directory and add a line to settings.php
00:02mstenta[m]The directory can be sites/default/private, writeable by www-data
00:02riotmiked[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.
00:02mstenta[m]And the settings.php line is in the install docs
00:03mstenta[m]Cool!
00:03riotmiked[m]mstenta[m]: Yes that's pretty clear
00:04mstenta[m]Remind me what step is it getting hung up on?
00:04*uploaded an image: (125KiB) < matrix.org/_matrix/media/v3/download/mat >
00:04mstenta[m]Maybe the global volumes were the issue?
00:04riotmiked[m]Step 6
00:04mstenta[m]Oh right. Thats still happening? :-(
00:05mstenta[m]Is there a PHP error? (Not warning)
00:06mstenta[m]Is the oauth keys directory thing still an issue?
00:09mstenta[m]You might also try installing via drush... rather than UI. Curious if that would work, or provide better logs
00:10riotmiked[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 <matrix.org/_matrix/media/v3/download/mat>)
00:13riotmiked[m]For that procedure (and hanging on Initializing at the end) I get the following drush output:... (full message at <matrix.org/_matrix/media/v3/download/mat>)
00:13mstenta[m]drush site-install --db-url=farmos:password@db/farmos
00:14mstenta[m]Thats the drush command FYI
00:14mstenta[m]Hmm OK yea I don't see any good clues in that drush output
00:14riotmiked[m]I do that as root bashed into the docker container?
00:15mstenta[m]Can you look at the Docker logs?
00:15riotmiked[m]mstenta[m]: Yes I can!! One sec
00:15mstenta[m]The drush watchdog logs are Drupal logs, so they may miss lower level PHP errots
00:16mstenta[m]riotmiked[m]: Here is how we do it in automated tests: github.com/farmOS/farmOS/blob/3a73ccf636
00:17mstenta[m](using docker compose exec ...)
00:17mstenta[m](important to run as www-data user)
00:18mstenta[m]You can leave off the "farm farm.modules..." bit at the end and it will install defaults
00:22riotmiked[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.
00:22riotmiked[m]mstenta[m]: but I **want** all of the modules :)
00:23mstenta[m]Well then the line in our github action above is perfect 😄
00:26mstenta[m]Hmm
00:27mstenta[m]Well I'm a bit stumped. I would try drush site-install next
00:28riotmiked[m]Install stops at those [warning] is_dir() lines.... (full message at <matrix.org/_matrix/media/v3/download/mat>)
00:28mstenta[m]This hanging install issue is a new one
00:28mstenta[m]Huh.
00:29mstenta[m]Well... lets set up your private files!
00:29riotmiked[m]mstenta[m]: hold on - it finished.
00:29mstenta[m]Shouldn't need to, but ...
00:29mstenta[m]Oh!
00:30riotmiked[m]It worked. It spit out a default user name and password
00:30mstenta[m]Wahoo!
00:30riotmiked[m]I am now logged in as admin at my site
00:31mstenta[m]🎉
00:31riotmiked[m]now what did I do to mess that up on the UI???
00:31mstenta[m]I don't know! Very curious! 🤔
00:31*sent a code block: matrix.org/_matrix/media/v3/download/mat
00:33mstenta[m]That's it!
00:33mstenta[m]And setting up private files ahead of time would fix the warning
00:33riotmiked[m]mstenta[m]: Thanks for sticking it out with me - I'm really curious about this setup error.
00:34mstenta[m]Yea... wonder if there were any browser console errors
00:35mstenta[m]Maybe it was client side. Something with JS or https issues or dns or or or... 🫣
00:35riotmiked[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 :).
00:36mstenta[m]postmanpat: I wonder if we solved your issue somewhere along the way too 😅
00:36riotmiked[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.
00:36riotmiked[m]riotmiked[m]: BEFORE, that is
00:36riotmiked[m]riotmiked[m]: Now it's working beautifully
00:37mstenta[m]Oh ok
00:37mstenta[m]Question: did you make sites/default writeable? Or did it work without that?
00:38riotmiked[m]mstenta[m]: Worked without that. However, I did have to make `keys` writable
00:38mstenta[m]Oh good
00:39mstenta[m]Ok yea. We need to add that to our docs. About keys
00:39mstenta[m]Realizing we don't have it in there
00:39riotmiked[m]mstenta[m]: As you suggested, though - the keys directory was blank and was populated
00:39mstenta[m]Awesome.
00:40riotmiked[m]I now have a private.key, public.key, and web.config file there
00:42mstenta[m]Cool. Not sure what web.config ia tho 🤔
00:42mstenta[m]In keys?
00:43mstenta[m]Oh might be autogenerated for security purposes
00:43mstenta[m]Is there also a .htaccess file in there? (hidden)
01:01riotmiked[m]<mstenta[m]> "Is there also a .htaccess file..." <- yup :)
01:03riotmiked[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!
06:19postmanpat[m]<mstenta[m]> "postmanpat: I wonder if we..." <- I believe so. I'll try it out. 👍️

< 262024-08-27⋏28 >