Open tokenwizard opened 1 week ago
Thank you for the detailed description. It might be related / similar to https://github.com/friendica/friendica/issues/14450. I will give it a try myself based on your description and see if I can fix it.
Looked at that post and thought I would try some of the troubleshooting there. From inside the docker container friendica-app-1, trying to manually add the admin user:
root@26a88f6ba38b:/var/www/html# bin/console user add
[Error] Database isn't ready or populated yet
So maybe the issue is more related to the db rather than friendica itself?
Further digging...
Also inside the friendica-app-1 container, tried the "manual" setup mentioned in the above thread:
root@26a88f6ba38b:/var/www/html# mv config/local-sample.config.php config/local.config.php
root@26a88f6ba38b:/var/www/html# nano config/local.config.php
root@c243bd39e46b:/var/www/html# bin/console autoinstall -f config/local.config.php
Initializing setup...
Complete!
Checking environment...
NOTICE: Not checking .htaccess/URL-Rewrite during CLI installation.
Complete!
Loading config file 'config/local.config.php'...
Complete!
Checking database...
Complete!
Inserting data into database...
Complete!
Installing theme
Complete
Installation is finished
root@c243bd39e46b:/var/www/html# bin/console user add
Enter user name:
admin
Enter user nickname:
admin
Enter user email address:
james@tandj-homelab.dev
Enter a language (optional):
en
Enter URL of an image to use as avatar (optional):
msmtp: account default not found: no configuration file available
root@c243bd39e46b:/var/www/html#
Here is the local.config.php file as I have edited it:
<?php
// Local configuration
/* If automatic system installation fails:
*
* Copy this file to local.config.php
*
* Why local.config.php? Because it contains sensitive information which could
* give somebody complete control of your database. Apache's default
* configuration will interpret any .php file as a script and won't show the values
*
* Then set the following for your MySQL installation
*
* If you're unsure about what any of the config keys below do, please check the static/defaults.config.php file for
* detailed documentation of their data type and behavior.
*/
return [
'database' => [
'hostname' => 'localhost',
'username' => 'friendica',
'password' => 'mysecretpassword',
'database' => 'friendica',
'charset' => 'utf8mb4',
],
// ****************************************************************
// The configuration below will be overruled by the admin panel.
// Changes made below will only have an effect if the database does
// not contain any configuration for the friendica system.
// ****************************************************************
'config' => [
'admin_email' => 'james@tandj-homelab.dev',
'sitename' => 'T and J Friendica Network',
'register_policy' => \Friendica\Module\Register::OPEN,
'register_text' => '',
],
'system' => [
'default_timezone' => 'America/New_York',
'language' => 'en',
'url' => 'https://social.tjhome.dev',
],
];
Clearly there is an error with creating the admin user above. Restarting the container and trying to access the site now shows this:
And the log/console output looks like:
[friendica@Friendica ~]$ docker logs -f friendica-app-1
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.18.0.3. Set the 'ServerName' directive globally to suppress this message
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.18.0.3. Set the 'ServerName' directive globally to suppress this message
[Wed Oct 16 12:27:31.498635 2024] [mpm_prefork:notice] [pid 1:tid 1] AH00163: Apache/2.4.62 (Debian) PHP/8.1.30 configured -- resuming normal operations
[Wed Oct 16 12:27:31.498736 2024] [core:notice] [pid 1:tid 1] AH00094: Command line: 'apache2 -D FOREGROUND'
192.168.12.56 - - [16/Oct/2024:12:27:32 +0000] "GET / HTTP/1.1" 500 461 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0"
192.168.12.56 - - [16/Oct/2024:12:27:34 +0000] "GET / HTTP/1.1" 500 461 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0"
192.168.12.56 - - [16/Oct/2024:12:27:34 +0000] "GET / HTTP/1.1" 500 461 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0"
192.168.12.56 - - [16/Oct/2024:12:27:35 +0000] "GET / HTTP/1.1" 500 461 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0"
192.168.12.56 - - [16/Oct/2024:12:27:35 +0000] "GET / HTTP/1.1" 500 461 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0"
192.168.12.56 - - [16/Oct/2024:12:27:36 +0000] "GET / HTTP/1.1" 500 461 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0"
192.168.12.128 - - [16/Oct/2024:12:27:41 +0000] "GET /ping?_=1729024581470 HTTP/1.1" 500 461 "http://192.168.12.67:8080/index.php?pagename=install" "Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0"
192.168.12.56 - - [16/Oct/2024:12:27:47 +0000] "GET / HTTP/1.1" 500 461 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0"
192.168.12.128 - - [16/Oct/2024:12:28:21 +0000] "GET /ping?_=1729024581471 HTTP/1.1" 500 461 "http://192.168.12.67:8080/index.php?pagename=install" "Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0"
Trying to setup a fresh instance using the recommended docker-compose.yml method.
Here is my
docker-compose.yml
Here is the console after the first time trying to complete install. Everything seems to start up fine for the db and app.
I can access the install wizard at
http://l<LAN_IP>:8080
and everything is green except TLS:So far, so good. But when I click Next, it just goes to a blank white page and stops loading. What you see in the console output above includes what updated when I clicked next. Those last few lines just repeat themselves every 30 seconds or so but the page just stays white with no additional install wizard steps.
I'm using Zen/Firefox browser and installing into Arch linux in a Proxmox LXC (same way I am running several other LXCs for Docker Services)
Docker Compose version 2.29.7