Open tokenwizard opened 1 month 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"
I'm also having this issue on a Debian server, using the same compose file (only the port changed, since port 8080 is already in use). Hope it gets solved soon, my community is looking forward to trying Friendica out. Read in the other thread that 2024.09-rc has resolved this, but installing friendica:2024.09-rc
in place of friendica
in the compose file, and while the pull is successful, the friendica container fails to start and restarts endlessly.
I'm sorry but I will not have time to look into this for the next two weeks at least.
msmtp: account default not found: no configuration file available
I believe a mail setup is necessary. At least when registration is open.
Can you add the needed env variables to the docker compose?
2024.09 RC and dev Docker images do not contain Friendica code at all https://github.com/friendica/docker/issues/268
2024.09 RC and dev Docker images do not contain Friendica code at all #268
As intended.
We also have a related discussion on Matrix. And we have a seond user with installation problem (https://github.com/friendica/docker/issues/268).
I'm not doing fresh installs all the time. ;) So I can only say that updates/upgrades are working and this for the fpm image with an nginx in front.
To narrow it down
1.) if the white page appears, please
2.) Both users use a minimum of environment initialization. I'm not sure if that is working at all. I believe that at least a working smtp setup is required. How about setting the other environment options also and see if this works?
3.) If possible, please try to do a setup with the fpm image with a nginx in front. So we can see if it is image related.
I will also try to add a way to run github actions and tests locally. So I can improve testing of built images in future without the need to do all the combinations of fresh install and updates manually.
Sorry for the wrong diagnostic. More details on my issue https://github.com/friendica/docker/issues/268#issuecomment-2481396677
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