--- Log opened dom ene 16 00:00:57 2022 --- Log opened dom ene 16 05:07:49 2022 05:07 -!- Irssi: #friendica: Total of 6 nicks [0 ops, 0 halfops, 0 voices, 6 normal] 05:08 -!- Irssi: Join to #friendica was synced in 18 secs 10:56 < fikabot_> 💬 OK I'm kind of stuck on my demo install before trying it for the real deal 10:56 < fikabot_> 💬 I'm making notes on points that could be clarified in the install docs and can submit some changes...once I get it working etc 10:59 < fikabot_> 💬 I got it to the point of bringing up the login page but it has no graphics and going anywhere else brings up 404 errors 11:03 < fikabot_> 💬 I am doing the git checkout method doing it directly into the /var/www/html folder which i cleared out before 11:04 < fikabot_> 💬 everything is owned by root except things under the view/smart3 folder and below 11:14 < fikabot_> 💬 > <@bkil:grin.hu> I have my own bundler script for creating `view/smarty3` and ` vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer` before first run for example. 11:14 < fikabot_> 💬 11:15 < fikabot_> 💬 What about the Serializer folder? 11:15 < fikabot_> 💬 > <@hank:myportal.social> I got it to the point of bringing up the login page but it has no graphics and going anywhere else brings up 404 errors 11:15 < fikabot_> 💬 11:15 < fikabot_> 💬 404 may be caused by missing the .htaccess or rewrite adjustments. 11:20 < fikabot_> 💬 originally I was getting 500 errors until I uncommented the ReWriteBase / line and restarted apache2 11:20 < fikabot_> 💬 but changing it back and restarting apache2 didn't undo that change either so thought maybe that was a coincidence 11:21 < fikabot_> 💬 If you look into network inspector, which requests failed exactly? 11:21 < fikabot_> 💬 that was another equsetion...where should I be looking for logs? I am only finding stuff in the apache access and error logs 11:21 < fikabot_> 💬 This can cause HTTP 500 for no reason as well: https://github.com/friendica/friendica/issues/10131 11:22 < fikabot_> 💬 But to start at the beginning, does serving hello.php work? 11:22 < fikabot_> 💬 > <@hank:myportal.social> that was another equsetion...where should I be looking for logs? I am only finding stuff in the apache access and error logs 11:22 < fikabot_> 💬 11:22 < fikabot_> 💬 There, along with in your browser, bot its console, and its network request log. 11:22 < fikabot_> 💬 Yeah I have an info.php which just shows PHP info that serves fine 11:22 < fikabot_> 💬 After Friendica starts up, you can enable verbose logging as well (or set it up via the config file). 11:23 < fikabot_> 💬 Apache's `error.log` will almost always contains the error that you need to correlate with the access log based on timing. 11:24 < fikabot_> 💬 Did you go through this checklist at the end? https://github.com/friendica/friendica/blob/8d5c03755d8b9d73d8c30517b1ee9c3cd330c158/doc/Install.md#user-content-400-and-4xx-file-not-found-errors 11:24 < fikabot_> 💬 It had errors from the 500 era but nothing except "CURLE_OPERATION_TIMEOUTED" errors recently 11:25 < fikabot_> 💬 Did you make sure to set up HTTPS before starting `/install` and not afterwards? 11:25 < fikabot_> 💬 Is loading .htaccess enabled in your Apache at all? (Again, see the above checklist about how to test) 11:25 < fikabot_> 💬 I'm not accessing it via https since it's a local thing right now 11:26 < fikabot_> 💬 Did `/install` output any error before you started? 11:26 < fikabot_> 💬 `/install`? 11:26 < fikabot_> 💬 the autoinstall script? 11:28 < fikabot_> 💬 Before we proceed, I think it would be great if you checked the answers to my above questions and perhaps share via privatebin what steps you have done so far (or any ansible etc. script/role that you are writin) 11:28 < fikabot_> 💬 Yeah I'm working on it 11:28 < fikabot_> 💬 it seems it's not processing the .htaccess file 11:29 < fikabot_> 💬 https://phoenixnap.com/kb/how-to-set-up-enable-htaccess-apache 11:29 < fikabot_> 💬 it's owned by root:root with same permission as other files 11:29 < fikabot_> 💬 https://www.xmodulo.com/enable-htaccess-apache.html 11:30 < fikabot_> 💬 The manual said jus copy the one there 11:30 < fikabot_> 💬 which I did 11:30 < fikabot_> 💬 is that now the wrong advice or something? 11:30 < fikabot_> 💬 The manual does not know what OS you are using and how you have set up Apache and PHP in the past. 11:30 < fikabot_> 💬 that's the one that's resident in the folder 11:30 < fikabot_> 💬 this is a virgin machine 11:30 < fikabot_> 💬 ubuntu 11:30 < fikabot_> 💬 But see: https://github.com/friendica/friendica/blob/8d5c03755d8b9d73d8c30517b1ee9c3cd330c158/bin/dev/vagrant_vhost.sh 11:31 < fikabot_> 💬 there is no preexisting configuration 11:31 < fikabot_> 💬 AllowOverride is also mentioned here https://github.com/friendica/friendica/blob/8d5c03755d8b9d73d8c30517b1ee9c3cd330c158/doc/Install.md#user-content-400-and-4xx-file-not-found-errors 11:31 < fikabot_> 💬 hold on 11:32 < fikabot_> 💬 sigh 11:33 < fikabot_> 💬 maybe I should try to use the docker image 11:33 < fikabot_> 💬 this is too rube goldberg like 11:34 < fikabot_> 💬 It's why I started with a virgin Ubuntu/Debian machine per the instructions 11:34 < fikabot_> 💬 the only areas of ambiguity with the instructions were if dumping it all in /var/www/html was the preferred way. but since that's the default Apache hosting location that's what I did 11:35 < fikabot_> 💬 and if root was the proper owner for everything besides stuff in the view/smarty3 folder tree 11:36 < fikabot_> 💬 See also the sources of these for inspiration https://github.com/YunoHost-Apps/friendica_ynh https://github.com/friendica/docker/tree/stable/2021.12-rc 11:37 < fikabot_> 💬 > <@hank:myportal.social> and if root was the proper owner for everything besides stuff in the view/smarty3 folder tree 11:37 < fikabot_> 💬 11:37 < fikabot_> 💬 I just answered that that may not enough, see above which folder might still be missing 11:38 < fikabot_> 💬 But you're right. Why not try a more admin friendly install method if time is short? 11:38 < fikabot_> 💬 K .htaccess is being properly sourced because default Ubuntu does not allow overrides 11:39 < fikabot_> 💬 what is the more admin friendly method? 11:39 < fikabot_> 💬 `s/properly/not &/` 11:40 < fikabot_> 💬 > <@bkil:grin.hu> `s/properly/not &/` 11:40 < fikabot_> 💬 11:40 < fikabot_> 💬 ? 11:40 < fikabot_> 💬 `K .htaccess is NOT being properly sourced because default Ubuntu does not allow overrides` 11:41 < fikabot_> 💬 Oh FFS 11:41 < fikabot_> 💬 nevermind...I'll have to try this later 11:41 < fikabot_> 💬 https://askubuntu.com/questions/429869/is-this-a-correct-way-to-enable-htaccess-in-apache-2-4-7 11:41 < fikabot_> 💬 this is too grating right now 11:41 < fikabot_> 💬 I thought you were doing it for the fun and for learning. 🤷 11:42 < fikabot_> 💬 I am and to help dogfood it 11:42 < fikabot_> 💬 I'll probably start with the docker version next go around 11:42 < fikabot_> 💬 The post-config stuff is just too all over the map I'm sorry to say 11:43 < fikabot_> 💬 even from a virgin machine 11:44 < fikabot_> 💬 YunoHost is considered an single-click solution, not sure how much Docker helps. 11:45 < fikabot_> 💬 hmm 11:45 < fikabot_> 💬 maybe I'll look into that instead then 11:46 < fikabot_> 💬 > <@hank:myportal.social> The post-config stuff is just too all over the map I'm sorry to say 11:46 < fikabot_> 💬 11:46 < fikabot_> 💬 Yes, I think it would be great if we had an Ansible role for Friendica as well! Too bad this one is not maintained: https://github.com/poiriermike/ansible-friendica 11:46 < fikabot_> 💬 A lot of this isn't a Friendica problem it seems it is a PHP/LAMP stack problem too 11:47 < fikabot_> 💬 I mean I'm not at any point in a Friendica specific area...nor is anything exotic being attempted yet 11:48 < fikabot_> 💬 But this also seems like a complete guide: https://www.howtoforge.com/how-to-install-friendica-social-network-platform-on-ubuntu-20-04/ 11:50 < fikabot_> 💬 This step specifying permissions is the one hting different so far: 11:50 < fikabot_> 💬 ``` 11:50 < fikabot_> 💬 chown -R www-data:www-data /var/www/html/friendica/ 11:50 < fikabot_> 💬 chmod -R 755 /var/www/html/friendica/ 11:50 < fikabot_> 💬 ``` 11:50 < fikabot_> 💬 and it being in a friendica sub-directory 11:51 < fikabot_> 💬 And the order in the guide is also incorrect - you should set up TLS first, not at the end! 11:51 < fikabot_> 💬 I didn't even get that far yet :) 11:52 < fikabot_> 💬 Just wanted to let you know before you start the production run and/or if you update `install.md` 11:52 < fikabot_> 💬 Also crucial as noted in the guide is `a2enmod rewrite` 11:53 < fikabot_> 💬 yeah I did none of that because I just coopted the root html folder for it 12:07 < fikabot_> 💬 `a2enmod rewrite` was the key 12:07 < fikabot_> 💬 and then restarting apache 12:10 < fikabot_> 💬 Like with the php packages (I guessed the wrong one for the XML requirement) adding some additional documentation in the requirements section (or an e.g. for Debian) could help a lot. I'm keeping notes... 12:37 < fikabot_> 💬 K I didn't have to start from scratch just tweaks from that manual and faking out setting up HTTPS on the local machine...so now going to try it for real 12:37 < fikabot_> 💬 Would a PR with updates specifying debian/ubuntu instructions from some of the pre-reqs be acceptable to the team? Or should I make a separate Quick Start for DEbian guide or something? 12:38 < fikabot_> 💬 (which would look a lot like his) 12:39 < fikabot_> 💬 Also really liked the graphical config stuff path which I didn't get to following the instructions in the main install (ended up creating the local.config.php manually and running the autoinstall from the CLI path 13:01 < fikabot_> 💬 > <@hank:myportal.social> Would a PR with updates specifying debian/ubuntu instructions from some of the pre-reqs be acceptable to the team? Or should I make a separate Quick Start for DEbian guide or something? 13:01 < fikabot_> 💬 13:01 < fikabot_> 💬 I wouldn't like to speak for the dev team, but I think a PR should be excellent either way - it can be refactored later on. One may think that it could messy if we included instructions for all major distributions, but until we only have special instructions for a few, I'm sure it would not be a burden to scroll that through with the right section headings. 13:02 < fikabot_> 💬 And at latest, they will tell you in the PR review on GitHub if they would prefer it to be put in a separate file. 13:04 < fikabot_> 💬 Yeah agree that could get complicated 13:06 < fikabot_> 💬 You know why the apache rewrite thing probably is a no-brainer in the directions? the certbot enables it when it sets up all that stuff (according to the outputs of the bot anyway) 13:07 < fikabot_> 💬 I am admittedly rusty with apache since I ditched it long ago for nginx 13:10 < fikabot_> 💬 I see. I think a few people do run Friendica on nginx, I also know somebody like that. Specifically the above ansible links also used that combinations. 13:10 < fikabot_> 💬 Also, we have a (perhaps outdated) DreamHost shared hosting guide as well, but this one shares more code with the content of install.md. https://github.com/friendica/friendica/wiki/DreamHost-Friendica-Install-Guide 13:11 < fikabot_> 💬 Yeah I saw that but it seemed like it was a less common path and didn't want to go down that 13:11 < fikabot_> 💬 Was the notice about PHP 8 being problematic current? 13:11 < fikabot_> 💬 > <@hank:myportal.social> You know why the apache rewrite thing probably is a no-brainer in the directions? the certbot enables it when it sets up all that stuff (according to the outputs of the bot anyway) 13:11 < fikabot_> 💬 13:11 < fikabot_> 💬 I also prefer to mention all of my dependencies separately in other contexts as well (like development). Implies transitive dependencies can cause confusion at times as we have seen here as well. 13:11 < fikabot_> 💬 > <@hank:myportal.social> Was the notice about PHP 8 being problematic current? 13:12 < fikabot_> 💬 13:12 < fikabot_> 💬 Which one? 13:12 < fikabot_> 💬 I just noticed that the default LAMP stack by them uses PHP 8 13:12 < fikabot_> 💬 Under the requirements section of the main install documetn "PHP 7.3+ (PHP8 is not fully supported yet) " 13:13 < fikabot_> 💬 The last time I looked, Friendica was not 100% PHP8 ready, but close enough. When I tested, the log was spammed a lot with notices, but otherwise seemed fine. 13:13 < fikabot_> 💬 I guess I can give it a whirl and see how it goes 13:13 < fikabot_> 💬 I'd still recommend running on a configuration that is as similar to the ones used by the developers and others in production.. 13:15 < fikabot_> 💬 apache 2.4So the default system is Ubuntu 20 running MySQL 8, PHP 8, and APache 2.4 13:15 < fikabot_> 💬 So the default system is Ubuntu 20 running MySQL 8, PHP 8, and Apache 2.4 13:19 < fikabot_> 💬 I'll see if it is easy to reconfig that to be 7.x 13:23 < fikabot_> 💬 Not sure what either of those emojis mean in this context :) 13:23 < fikabot_> 💬 I'm confused why my Ubuntu 20.04 VB image I worked with used 7.4 by default but the DigitalOcean one is using 8.0 for PHP... 13:25 < fikabot_> 💬 but they have instructions for installing 7.x as well 13:30 < fikabot_> 💬 Well, 8.x has been out for some years now and is way cooler. Surely it would be best if we could iron out all remaining issues, but I recall some of them were caused by third party dependencies. Although, if those don't want to update, we might as well find an alternative to replace them. Friendica can't stay on legacy PHP forever. 13:34 < fikabot_> 💬 Oh didn't realize it was around so long (not a PHP developer) 13:40 < fikabot_> 💬 Well, publicly released on 2020-11-26 it seems. Good thing they upgraded it in the Ubuntu LTS https://en.wikipedia.org/wiki/PHP_version_history#PHP_8 13:42 < fikabot_> 💬 According to the table, support for PHP 7.4 will end after 2022-11-28 (10 months) I think Friendica will have to reach "stable" status on PHP 8 many months before that to allow for operators to upgrade. 13:43 < fikabot_> 💬 They open an issue for this to investigate after each release https://github.com/friendica/friendica/labels/PHP%208 13:43 < fikabot_> 💬 BTW is the addons folder "addon" or "addons"...I haven't gotten that far but it was another discrepancy between the install manual and the howtoguide.com manual 13:43 < fikabot_> 💬 I think it would be just about time to open threads for PHP 8 warnings and PHP 8 notices as well.. 13:44 < fikabot_> 💬 It's called `addon` 13:44 < fikabot_> 💬 Where did `addons` come from? 13:44 < fikabot_> 💬 in his checkout he didn't specify the folder name so its going to be called addons since the repo is addons.git not addon.git 13:45 < fikabot_> 💬 versus the official manual which has you specify the folder name at checkout `addon` 13:46 < fikabot_> 💬 You see this is why proofreading is valuable! 15:18 < fikabot_> 💬 K I'm further along than ever 15:19 < fikabot_> 💬 glad to see email worked out of the gate since for Matrix had to setup an SMTP relay 15:23 < fikabot_> 💬 I wanted to do the daemon method but it's asking me to configure the pid path in the local config file 15:24 < fikabot_> 💬 what do you all usually set that to? 15:56 < fikabot_> 💬 which storage options do you all usually use? the default DB or the folder structure? Is there an S3/CDN addon (I didn't see one perusing the list) 16:21 < fikabot_> 💬 k this is working enough for me for now I think...confirmed federation with a test account etc...will try doing my account migration after getting some exercise in 16:21 < fikabot_> 💬 thanks for the help with everything. I have some doc tweaks documented I will contribute back 16:24 < fikabot_> 💬 For example, `/run/friendica.pid,`, but definitely somewhere on `mount -t tmpfs` 16:25 < fikabot_> 💬 One more thing hadn't mentioned was it seems that it's not picking up the changed memory limit I set in /etc/php/7.4/apache2/php.ini 16:27 < fikabot_> 💬 I even rebooted the whole system in case I'm missing whichever service I needed to restart to get it to take lol 16:28 < fikabot_> 💬 k going to try to dabble with that later 16:29 < fikabot_> 💬 > <@hank:myportal.social> which storage options do you all usually use? the default DB or the folder structure? Is there an S3/CDN addon (I didn't see one perusing the list) 16:29 < fikabot_> 💬 16:29 < fikabot_> 💬 See https://github.com/friendica/friendica/issues/10071 and https://github.com/friendica/friendica/issues/8457 16:30 < fikabot_> 💬 So TL;DR for me is no on S3/CDN...but do you recommend the DB or the storage folder for performance? 16:33 < fikabot_> 💬 I don't have first hand experience about that at the moment. Personally, I think it would be much more sustainable if huge blobs were stored on the disk to keep the database size down (many shared hosts provide only megabytes of database space even along with gigabytes of data storage). However, if you look at the migration guide, they instruct you to switch to the SQL backend, p 16:33 < fikabot_> 💬 robably to facilitate database-dump based host transfer. 16:36 < fikabot_> 💬 hmm interesting 16:36 < fikabot_> 💬 there is supposedly a move script if I decide to change it later by the looks of it 16:39 < fikabot_> 💬 > <@hank:myportal.social> One more thing hadn't mentioned was it seems that it's not picking up the changed memory limit I set in /etc/php/7.4/apache2/php.ini 16:39 < fikabot_> 💬 16:39 < fikabot_> 💬 You can actually find a bunch of php.ini files on your system `find / -iname "php*.ini" -o -iname "httpd.conf"` 16:42 < fikabot_> 💬 Ah good point 16:42 < fikabot_> 💬 so my PHP 7.4 intsall is picking that setting up from the 8.0 config lol 16:45 < fikabot_> 💬 Well I think this is as tuned up as I need it to try an account migration :) Thanks again 16:45 < fikabot_> 💬 Yes, this happened on my shared host as well, I added the interpreter path along with its options in friendica's config, but you have a few other workarounds. Like uninstall the other one. 16:46 < fikabot_> 💬 just reclassified like 50 nodes from Mastodon to Friendica on the-federation.info 16:46 < fikabot_> 💬 > <@fikabot:matrix.org> 💬 [xmpp] just reclassified like 50 nodes from Mastodon to Friendica on the-federation.info 16:46 < fikabot_> 💬 16:46 < fikabot_> 💬 📈 🎉 16:48 < fikabot_> 💬 > <@bkil:grin.hu> Yes, this happened on my shared host as well, I added the interpreter path along with its options in friendica's config, but you have a few other workarounds. Like uninstall the other one. 16:48 < fikabot_> 💬 16:49 < fikabot_> 💬 By the way, did you verify in your Friendica admin phpinfo that the interpreter itself is the version that you want? It might actually have started up Friendica with php8. It might be altered either by entering the full path in Friendica's config or by selecting the default alternative in the OS. https://serverok.in/set-default-php-version-in-ubuntu 16:50 < fikabot_> 💬 Damn it is using 8 16:51 < fikabot_> 💬 php -v on command line is 7.4 though 16:55 < fikabot_> 💬 `/usr/bin/php` is 7.4 but `/usr/bin/php.default` is 8.0 16:55 < fikabot_> 💬 (I used that update-alternatives tool to get PHP 7 configured in the first place) 16:56 < fikabot_> 💬 > <@fikabot:matrix.org> 💬 [xmpp] just reclassified like 50 nodes from Mastodon to Friendica on the-federation.info 16:56 < fikabot_> 💬 16:56 < fikabot_> 💬 Were they misclassified as Mastodon even though they were Friendica? 16:59 < fikabot_> 💬 Needed to swap the apache module 16:59 < fikabot_> 💬 it was still using 8 16:59 < fikabot_> 💬 okay now I'm going to do my exercises for real (but probably won't be able to help checking my smartphone during breaks lol) 17:02 < fikabot_> 💬 Hank, yes, known problem… from time to time I fix it in the backend 17:12 < fikabot_> 💬 Oh interesting good to know 17:19 < fikabot_> 💬 Might be a a good idea to do a monthly sanity check on the whole table by just opening $DOMAIN/friendica and check whether it is an error page or not via `grep`. 17:23 < fikabot_> 💬 well, I would prefer to fix the issue in the source code 😉 17:25 < fikabot_> 💬 https://github.com/thefederationinfo/the-federation.info/issues/239 & https://github.com/thefederationinfo/the-federation.info/issues/214 17:26 < fikabot_> 💬 especiall #214 17:33 < fikabot_> 💬 +y 17:43 < fikabot_> 💬 There will always be such "bugs" in Mastodon, Friendica or the-federation.info in the future, that is why I recommend checking them via an independent, much cheaper system (basically just a few lines of bash hooked up on cron and sendmail). 21:37 < fikabot_> 💬 A couple of things with importing: Is it a bug or a feature that servers that require admin approval can't do account importing? 21:38 < fikabot_> 💬 A lot of my info came in, group names, profile data,etc but none of the contacts have shown up yet. Does each contact have to approve it? 21:39 < fikabot_> 💬 I haven't seen any notifications on accounts I have that I use for testing on D* or even the test account on the new machine I connected with my old account to make sure federation was working correctly. And there aren't a lot of things going on in the worker queue just an "UpdateServerDirectories" that's been htere for several hours (not sure what that's about) 21:45 < fikabot_> 💬 I didn't want to be impatient about hitting the Account Settings->Relocate Save Settings button 22:35 < fikabot_> 💬 Did you configure cron? Is it working? 22:36 < fikabot_> 💬 I did it as daemon and yeah 22:36 < fikabot_> 💬 > <@hank:myportal.social> A couple of things with importing: Is it a bug or a feature that servers that require admin approval can't do account importing? 22:36 < fikabot_> 💬 22:36 < fikabot_> 💬 https://github.com/friendica/friendica/blob/2021.12-rc/doc/Move-Account.md _"Please consider that this is only possible on servers with open registration. On other systems only the administrator can add accounts with an uploaded file." _ 22:37 < fikabot_> 💬 I've got to go now, but I hope others can help you further. 22:37 < fikabot_> 💬 But do open your apache & friendica logs every once in a while and look for errors. Friendica logging needs to be enabled separately on the admin web interface (you can choose the log file location there as well) 22:38 < fikabot_> 💬 Yes I enabled logging 22:39 < fikabot_> 💬 lots of errors....hmmm 23:02 < fikabot_> 💬 DB errors related to this: https://github.com/friendica/friendica/issues/10935 23:02 < fikabot_> 💬 does that config change need to be added to the install instruction troubleshooting? 23:22 < fikabot_> 💬 And latest MySQL doesn't have the NO_AUTO_CREATE_USER setting either...posted about that in the issue --- Log closed lun ene 17 00:00:37 2022