Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker Compose Install Not able to complete Install Wizard #266

Open
tokenwizard opened this issue Oct 15, 2024 · 28 comments
Open

Docker Compose Install Not able to complete Install Wizard #266

tokenwizard opened this issue Oct 15, 2024 · 28 comments

Comments

@tokenwizard
Copy link

Trying to setup a fresh instance using the recommended docker-compose.yml method.

Here is my docker-compose.yml

services:
  db:
    image: mariadb
    restart: always
    volumes:
      - ./db:/var/lib/mysql
    environment:
      - MYSQL_USER=friendica
      - MYSQL_PASSWORD=secretpassword
      - MYSQL_DATABASE=friendica
      - MYSQL_RANDOM_ROOT_PASSWORD=yes

  app:
    image: friendica
    restart: always
    volumes:
      - ./friendica:/var/www/html
    ports:
      - "8080:80"
    environment:
      - MYSQL_HOST=db
      - MYSQL_USER=friendica
      - MYSQL_PASSWORD=secretpassword
      - MYSQL_DATABASE=friendica
      - [email protected]     
    depends_on:
      - db

Here is the console after the first time trying to complete install. Everything seems to start up fine for the db and app.

[+] Running 2/0
 ✔ Container friendica-db-1   Created                                                                                                                                                                                                                       0.0s 
 ✔ Container friendica-app-1  Created                                                                                                                                                                                                                       0.0s 
Attaching to app-1, db-1
db-1   | 2024-10-15 20:09:10+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:11.5.2+maria~ubu2404 started.
db-1   | 2024-10-15 20:09:11+00:00 [Warn] [Entrypoint]: /sys/fs/cgroup///memory.pressure not writable, functionality unavailable to MariaDB
db-1   | 2024-10-15 20:09:11+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
db-1   | 2024-10-15 20:09:11+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:11.5.2+maria~ubu2404 started.
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
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
app-1  | [Tue Oct 15 20:09:11.879350 2024] [mpm_prefork:notice] [pid 1:tid 1] AH00163: Apache/2.4.62 (Debian) PHP/8.1.30 configured -- resuming normal operations
app-1  | [Tue Oct 15 20:09:11.879486 2024] [core:notice] [pid 1:tid 1] AH00094: Command line: 'apache2 -D FOREGROUND'
db-1   | 2024-10-15 20:09:12+00:00 [Note] [Entrypoint]: MariaDB upgrade not required
db-1   | 2024-10-15 20:09:12 0 [Note] Starting MariaDB 11.5.2-MariaDB-ubu2404 source revision ea75a0b6009b0251e83193cd38c3974e36b65e06 server_uid <<redacted>> as process 1
db-1   | 2024-10-15 20:09:12 0 [Note] InnoDB: Compressed tables use zlib 1.3
db-1   | 2024-10-15 20:09:12 0 [Note] InnoDB: Number of transaction pools: 1
db-1   | 2024-10-15 20:09:12 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
db-1   | 2024-10-15 20:09:12 0 [Note] mariadbd: O_TMPFILE is not supported on /tmp (disabling future attempts)
db-1   | 2024-10-15 20:09:12 0 [Warning] mariadbd: io_uring_queue_init() failed with errno 95
db-1   | 2024-10-15 20:09:12 0 [Warning] InnoDB: liburing disabled: falling back to innodb_use_native_aio=OFF
db-1   | 2024-10-15 20:09:12 0 [Note] InnoDB: Initializing buffer pool, total size = 128.000MiB, chunk size = 2.000MiB
db-1   | 2024-10-15 20:09:12 0 [Note] InnoDB: Completed initialization of buffer pool
db-1   | 2024-10-15 20:09:12 0 [Note] InnoDB: Buffered log writes (block size=512 bytes)
db-1   | 2024-10-15 20:09:12 0 [Note] InnoDB: End of log at LSN=47629
db-1   | 2024-10-15 20:09:12 0 [Note] InnoDB: Opened 3 undo tablespaces
db-1   | 2024-10-15 20:09:12 0 [Note] InnoDB: 128 rollback segments in 3 undo tablespaces are active.
db-1   | 2024-10-15 20:09:12 0 [Note] InnoDB: Setting file './ibtmp1' size to 12.000MiB. Physically writing the file full; Please wait ...
db-1   | 2024-10-15 20:09:12 0 [Note] InnoDB: File './ibtmp1' size is now 12.000MiB.
db-1   | 2024-10-15 20:09:12 0 [Note] InnoDB: log sequence number 47629; transaction id 14
db-1   | 2024-10-15 20:09:12 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
db-1   | 2024-10-15 20:09:12 0 [Note] Plugin 'FEEDBACK' is disabled.
db-1   | 2024-10-15 20:09:12 0 [Note] Plugin 'wsrep-provider' is disabled.
db-1   | 2024-10-15 20:09:12 0 [Note] InnoDB: Buffer pool(s) load completed at 241015 20:09:12
db-1   | 2024-10-15 20:09:16 0 [Note] Server socket created on IP: '0.0.0.0'.
db-1   | 2024-10-15 20:09:16 0 [Note] Server socket created on IP: '::'.
db-1   | 2024-10-15 20:09:16 0 [Note] mariadbd: Event Scheduler: Loaded 0 events
db-1   | 2024-10-15 20:09:16 0 [Note] mariadbd: ready for connections.
db-1   | Version: '11.5.2-MariaDB-ubu2404'  socket: '/run/mysqld/mysqld.sock'  port: 3306  mariadb.org binary distribution
app-1  | 192.168.12.128 - - [15/Oct/2024:20:09:21 +0000] "GET / HTTP/1.1" 302 355 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0"
app-1  | 172.18.0.1 - - [15/Oct/2024:20:09:22 +0000] "GET /install/testrewrite HTTP/1.1" 204 180 "-" "Friendica/2024.08 DatabaseVersion/1571 +http://192.168.12.67:8080"
app-1  | 192.168.12.128 - - [15/Oct/2024:20:09:21 +0000] "GET /install HTTP/1.1" 200 3637 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0"
app-1  | 192.168.12.128 - - [15/Oct/2024:20:09:22 +0000] "GET /view/global.css?v=2024.08 HTTP/1.1" 200 4617 "http://192.168.12.67:8080/install" "Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0"
app-1  | 192.168.12.128 - - [15/Oct/2024:20:09:22 +0000] "GET /view/asset/jgrowl/jquery.jgrowl.min.css?v=2024.08 HTTP/1.1" 200 835 "http://192.168.12.67:8080/install" "Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0"
app-1  | 192.168.12.128 - - [15/Oct/2024:20:09:22 +0000] "GET /view/asset/jquery-colorbox/example5/colorbox.css?v=2024.08 HTTP/1.1" 200 1599 "http://192.168.12.67:8080/install" "Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0"
app-1  | 192.168.12.128 - - [15/Oct/2024:20:09:22 +0000] "GET /view/asset/perfect-scrollbar/dist/css/perfect-scrollbar.min.css?v=2024.08 HTTP/1.1" 200 943 "http://192.168.12.67:8080/install" "Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0"
app-1  | 192.168.12.128 - - [15/Oct/2024:20:09:22 +0000] "GET /view/asset/jquery-datetimepicker/build/jquery.datetimepicker.min.css?v=2024.08 HTTP/1.1" 200 4830 "http://192.168.12.67:8080/install" "Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0"
app-1  | 192.168.12.128 - - [15/Oct/2024:20:09:22 +0000] "GET /view/js/jquery.textinputs.js?v=2024.08 HTTP/1.1" 200 1882 "http://192.168.12.67:8080/install" "Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0"
app-1  | 192.168.12.128 - - [15/Oct/2024:20:09:22 +0000] "GET /view/js/autocomplete.js?v=2024.08 HTTP/1.1" 200 4450 "http://192.168.12.67:8080/install" "Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0"
app-1  | 192.168.12.128 - - [15/Oct/2024:20:09:22 +0000] "GET /view/asset/jgrowl/jquery.jgrowl.min.js?v=2024.08 HTTP/1.1" 200 2096 "http://192.168.12.67:8080/install" "Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0"
app-1  | 192.168.12.128 - - [15/Oct/2024:20:09:23 +0000] "GET /view/asset/imagesloaded/imagesloaded.pkgd.min.js?v=2024.08 HTTP/1.1" 200 2161 "http://192.168.12.67:8080/install" "Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0"
app-1  | 192.168.12.128 - - [15/Oct/2024:20:09:23 +0000] "GET /view/asset/jquery-colorbox/jquery.colorbox-min.js?v=2024.08 HTTP/1.1" 200 5066 "http://192.168.12.67:8080/install" "Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0"
app-1  | 192.168.12.128 - - [15/Oct/2024:20:09:22 +0000] "GET /view/js/fancybox/jquery.fancybox.min.css?v=2024.08 HTTP/1.1" 200 3434 "http://192.168.12.67:8080/install" "Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0"
app-1  | 192.168.12.128 - - [15/Oct/2024:20:09:22 +0000] "GET /view/asset/perfect-scrollbar/dist/js/perfect-scrollbar.jquery.min.js?v=2024.08 HTTP/1.1" 200 6856 "http://192.168.12.67:8080/install" "Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0"
app-1  | 192.168.12.128 - - [15/Oct/2024:20:09:23 +0000] "GET /view/js/fancybox/fancybox.config.js?v=2024.08 HTTP/1.1" 200 560 "http://192.168.12.67:8080/install" "Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0"
app-1  | 192.168.12.128 - - [15/Oct/2024:20:09:23 +0000] "GET /view/asset/base64/base64.min.js?v=2024.08 HTTP/1.1" 200 1067 "http://192.168.12.67:8080/install" "Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0"
app-1  | 192.168.12.128 - - [15/Oct/2024:20:09:23 +0000] "GET /view/asset/dompurify/dist/purify.min.js?v=2024.08 HTTP/1.1" 200 6599 "http://192.168.12.67:8080/install" "Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0"
app-1  | 192.168.12.128 - - [15/Oct/2024:20:09:22 +0000] "GET /view/asset/jquery-datetimepicker/build/jquery.datetimepicker.full.min.js?v=2024.08 HTTP/1.1" 200 19551 "http://192.168.12.67:8080/install" "Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0"
app-1  | 192.168.12.128 - - [15/Oct/2024:20:09:23 +0000] "GET /view/js/main.js?v=2024.08 HTTP/1.1" 200 9739 "http://192.168.12.67:8080/install" "Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0"
app-1  | 192.168.12.128 - - [15/Oct/2024:20:09:23 +0000] "GET /view/js/fancybox/jquery.fancybox.min.js?v=2024.08 HTTP/1.1" 200 22366 "http://192.168.12.67:8080/install" "Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0"
app-1  | 192.168.12.128 - - [15/Oct/2024:20:09:23 +0000] "GET /view/js/vanillaEmojiPicker/vanillaEmojiPicker.min.js?v=2024.08 HTTP/1.1" 200 27050 "http://192.168.12.67:8080/install" "Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0"
app-1  | 192.168.12.128 - - [15/Oct/2024:20:09:23 +0000] "GET /view/install/style.css?v=2024.08 HTTP/1.1" 200 851 "http://192.168.12.67:8080/install" "Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0"
app-1  | 192.168.12.128 - - [15/Oct/2024:20:09:24 +0000] "GET /view/js/modernizr.js?v=2024.08 HTTP/1.1" 200 3970 "http://192.168.12.67:8080/install" "Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0"
app-1  | 192.168.12.128 - - [15/Oct/2024:20:09:24 +0000] "GET /view/asset/jquery/dist/jquery.min.js?v=2024.08 HTTP/1.1" 200 30176 "http://192.168.12.67:8080/install" "Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0"
app-1  | 192.168.12.128 - - [15/Oct/2024:20:09:25 +0000] "GET /view/asset/textcomplete/dist/textcomplete.min.js?v=2024.08 HTTP/1.1" 200 7489 "http://192.168.12.67:8080/install" "Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0"
app-1  | 192.168.12.128 - - [15/Oct/2024:20:09:25 +0000] "GET /view/install/green.png HTTP/1.1" 304 248 "http://192.168.12.67:8080/install" "Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0"
app-1  | 192.168.12.128 - - [15/Oct/2024:20:09:25 +0000] "GET /images/friendica.svg HTTP/1.1" 304 248 "http://192.168.12.67:8080/install" "Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0"
app-1  | 192.168.12.128 - - [15/Oct/2024:20:09:25 +0000] "GET /view/install/yellow.png HTTP/1.1" 304 248 "http://192.168.12.67:8080/install" "Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0"
app-1  | 192.168.12.128 - - [15/Oct/2024:20:09:25 +0000] "GET /friendica/view/install/info.png HTTP/1.1" 302 377 "http://192.168.12.67:8080/view/install/style.css?v=2024.08" "Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0"
app-1  | 192.168.12.128 - - [15/Oct/2024:20:09:26 +0000] "GET /friendica/view/install/install HTTP/1.1" 302 377 "http://192.168.12.67:8080/view/install/style.css?v=2024.08" "Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0"
app-1  | 192.168.12.128 - - [15/Oct/2024:20:09:26 +0000] "GET /friendica/view/install/install HTTP/1.1" 302 377 "http://192.168.12.67:8080/view/install/style.css?v=2024.08" "Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0"
app-1  | 192.168.12.128 - - [15/Oct/2024:20:09:26 +0000] "GET /friendica/view/install/install HTTP/1.1" 302 377 "http://192.168.12.67:8080/view/install/style.css?v=2024.08" "Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0"
app-1  | 192.168.12.128 - - [15/Oct/2024:20:09:26 +0000] "GET /friendica/view/install/install HTTP/1.1" 302 377 "http://192.168.12.67:8080/view/install/style.css?v=2024.08" "Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0"
app-1  | 192.168.12.128 - - [15/Oct/2024:20:09:26 +0000] "GET /friendica/view/install/install HTTP/1.1" 302 377 "http://192.168.12.67:8080/view/install/style.css?v=2024.08" "Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0"
app-1  | 192.168.12.128 - - [15/Oct/2024:20:09:26 +0000] "GET /friendica/view/install/install HTTP/1.1" 302 377 "http://192.168.12.67:8080/view/install/style.css?v=2024.08" "Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0"
app-1  | 192.168.12.128 - - [15/Oct/2024:20:09:26 +0000] "GET /friendica/view/install/install HTTP/1.1" 302 377 "http://192.168.12.67:8080/view/install/style.css?v=2024.08" "Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0"
app-1  | 192.168.12.128 - - [15/Oct/2024:20:09:26 +0000] "GET /friendica/view/install/install HTTP/1.1" 302 377 "http://192.168.12.67:8080/view/install/style.css?v=2024.08" "Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0"
app-1  | 192.168.12.128 - - [15/Oct/2024:20:09:26 +0000] "GET /friendica/view/install/install HTTP/1.1" 302 377 "http://192.168.12.67:8080/view/install/style.css?v=2024.08" "Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0"
app-1  | 192.168.12.128 - - [15/Oct/2024:20:09:26 +0000] "GET /friendica/view/install/install HTTP/1.1" 302 377 "http://192.168.12.67:8080/view/install/style.css?v=2024.08" "Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0"
app-1  | 192.168.12.128 - - [15/Oct/2024:20:09:26 +0000] "GET /friendica/view/install/install HTTP/1.1" 302 377 "http://192.168.12.67:8080/view/install/style.css?v=2024.08" "Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0"
app-1  | 192.168.12.128 - - [15/Oct/2024:20:09:26 +0000] "GET /friendica/view/install/install HTTP/1.1" 302 377 "http://192.168.12.67:8080/view/install/style.css?v=2024.08" "Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0"
app-1  | 192.168.12.128 - - [15/Oct/2024:20:09:26 +0000] "GET /friendica/view/install/install HTTP/1.1" 302 377 "http://192.168.12.67:8080/view/install/style.css?v=2024.08" "Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0"
app-1  | 192.168.12.128 - - [15/Oct/2024:20:09:26 +0000] "GET /friendica/view/install/install HTTP/1.1" 302 377 "http://192.168.12.67:8080/view/install/style.css?v=2024.08" "Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0"
app-1  | 192.168.12.128 - - [15/Oct/2024:20:09:26 +0000] "GET /friendica/view/install/install HTTP/1.1" 302 377 "http://192.168.12.67:8080/view/install/style.css?v=2024.08" "Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0"
app-1  | 192.168.12.128 - - [15/Oct/2024:20:09:26 +0000] "GET /friendica/view/install/install HTTP/1.1" 302 377 "http://192.168.12.67:8080/view/install/style.css?v=2024.08" "Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0"
app-1  | 192.168.12.128 - - [15/Oct/2024:20:09:26 +0000] "GET /friendica/view/install/install HTTP/1.1" 302 377 "http://192.168.12.67:8080/view/install/style.css?v=2024.08" "Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0"
app-1  | 192.168.12.128 - - [15/Oct/2024:20:09:26 +0000] "GET /friendica/view/install/install HTTP/1.1" 302 377 "http://192.168.12.67:8080/view/install/style.css?v=2024.08" "Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0"
app-1  | 192.168.12.128 - - [15/Oct/2024:20:09:26 +0000] "GET /friendica/view/install/install HTTP/1.1" 302 377 "http://192.168.12.67:8080/view/install/style.css?v=2024.08" "Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0"
app-1  | 192.168.12.128 - - [15/Oct/2024:20:09:26 +0000] "GET /friendica/view/install/install HTTP/1.1" 302 377 "http://192.168.12.67:8080/view/install/style.css?v=2024.08" "Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0"
app-1  | 192.168.12.128 - - [15/Oct/2024:20:09:26 +0000] "GET /ping?_=1729022964936 HTTP/1.1" 302 354 "http://192.168.12.67:8080/install" "Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0"
app-1  | 127.0.0.1 - - [15/Oct/2024:20:09:27 +0000] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.62 (Debian) PHP/8.1.30 (internal dummy connection)"
app-1  | 172.18.0.1 - - [15/Oct/2024:20:09:27 +0000] "GET /install/testrewrite HTTP/1.1" 204 180 "-" "Friendica/2024.08 DatabaseVersion/1571 +http://192.168.12.67:8080"
app-1  | 192.168.12.128 - - [15/Oct/2024:20:09:26 +0000] "GET /install HTTP/1.1" 200 3637 "http://192.168.12.67:8080/install" "Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0"
app-1  | 127.0.0.1 - - [15/Oct/2024:20:09:28 +0000] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.62 (Debian) PHP/8.1.30 (internal dummy connection)"
app-1  | 127.0.0.1 - - [15/Oct/2024:20:09:29 +0000] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.62 (Debian) PHP/8.1.30 (internal dummy connection)"
app-1  | 127.0.0.1 - - [15/Oct/2024:20:09:30 +0000] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.62 (Debian) PHP/8.1.30 (internal dummy connection)"
app-1  | 127.0.0.1 - - [15/Oct/2024:20:09:31 +0000] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.62 (Debian) PHP/8.1.30 (internal dummy connection)"
app-1  | 127.0.0.1 - - [15/Oct/2024:20:09:32 +0000] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.62 (Debian) PHP/8.1.30 (internal dummy connection)"
app-1  | 127.0.0.1 - - [15/Oct/2024:20:09:33 +0000] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.62 (Debian) PHP/8.1.30 (internal dummy connection)"
app-1  | 127.0.0.1 - - [15/Oct/2024:20:09:34 +0000] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.62 (Debian) PHP/8.1.30 (internal dummy connection)"
app-1  | 127.0.0.1 - - [15/Oct/2024:20:09:35 +0000] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.62 (Debian) PHP/8.1.30 (internal dummy connection)"
app-1  | 192.168.12.128 - - [15/Oct/2024:20:09:36 +0000] "POST /index.php?pagename=install HTTP/1.1" 200 2879 "http://192.168.12.67:8080/install" "Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0"
app-1  | 192.168.12.128 - - [15/Oct/2024:20:09:36 +0000] "GET /ping?_=1729022976765 HTTP/1.1" 302 354 "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"
app-1  | 127.0.0.1 - - [15/Oct/2024:20:09:36 +0000] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.62 (Debian) PHP/8.1.30 (internal dummy connection)"
app-1  | 172.18.0.1 - - [15/Oct/2024:20:09:40 +0000] "GET /install/testrewrite HTTP/1.1" 204 180 "-" "Friendica/2024.08 DatabaseVersion/1571 +http://192.168.12.67:8080"
app-1  | 192.168.12.128 - - [15/Oct/2024:20:09:36 +0000] "GET /install HTTP/1.1" 200 3637 "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"
app-1  | 127.0.0.1 - - [15/Oct/2024:20:09:45 +0000] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.62 (Debian) PHP/8.1.30 (internal dummy connection)"

I can access the install wizard at http://l<LAN_IP>:8080 and everything is green except TLS:

image

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)

                   -`                    root@Friendica 
                  .o+`                   -------------- 
                 `ooo/                   OS: Arch Linux x86_64 
                `+oooo:                  Host: PowerEdge R720 
               `+oooooo:                 Kernel: 6.8.8-4-pve 
               -+oooooo+:                Uptime: 49 mins 
             `/:-:++oooo+:               Packages: 131 (pacman) 
            `/++++/+++++++:              Shell: bash 5.2.37 
           `/++++++++++++++:             Resolution: 1024x768 
          `/+++ooooooooooooo/`           Terminal: /dev/pts/3 
         ./ooosssso++osssssso+`          CPU: Intel Xeon E5-2670 0 (4) @ 3.300GHz 
        .oossssso-````/ossssss+`         GPU: NVIDIA GeForce RTX 4060 Ti 16GB 
       -osssssso.      :ssssssso.        Memory: 104MiB / 4096MiB 
      :osssssss/        osssso+++.
     /ossssssss/        +ssssooo/-                               
   `/ossssso+/:-        -:/+osssso+-                             
  `+sso+:-`                 `.-/+oso:
 `++:.                           `-/+/
 .`                                 `/

Docker Compose version 2.29.7

@ne20002
Copy link
Collaborator

ne20002 commented Oct 16, 2024

Thank you for the detailed description. It might be related / similar to friendica/friendica#14450.
I will give it a try myself based on your description and see if I can fix it.

@tokenwizard
Copy link
Author

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?

@tokenwizard
Copy link
Author

tokenwizard commented Oct 16, 2024

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: 
[email protected]
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' => '[email protected]',
		'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:
image

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"

@comradeferret
Copy link

comradeferret commented Nov 9, 2024

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.

@ne20002
Copy link
Collaborator

ne20002 commented Nov 15, 2024

I'm sorry but I will not have time to look into this for the next two weeks at least.

@ne20002
Copy link
Collaborator

ne20002 commented Nov 15, 2024

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?

@Alkarex
Copy link

Alkarex commented Nov 17, 2024

2024.09 RC and dev Docker images do not contain Friendica code at all #268

@ne20002
Copy link
Collaborator

ne20002 commented Nov 17, 2024

2024.09 RC and dev Docker images do not contain Friendica code at all #268

As intended.

@ne20002
Copy link
Collaborator

ne20002 commented Nov 17, 2024

We also have a related discussion on Matrix. And we have a seond user with installation problem (#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

  • attach here the source of the white page
  • have a look in the browser console
  • attach logs if possible

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.

@Alkarex
Copy link

Alkarex commented Nov 17, 2024

Sorry for the wrong diagnostic. More details on my issue
#268 (comment)

@comradeferret
Copy link

There's nothing in the Readme or in that landing page that suggests you need an SMTP setup, so that would be a strange thing and would itself probably warrant patching, at least for clarification when someone is trying to install this software.

Here's the source of the blank page.

<!DOCTYPE html>
<html itemscope itemtype="http://schema.org/Blog" lang="en-us">
<head>
  <title>Friendica Social Network | Install</title>
  <script>var baseurl="http://192.168.50.230:8081";</script>
  <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<base href="[http://192.168.50.230:8081/](view-source:http://192.168.50.230:8081/)" />
<meta name="generator" content="Friendica 2024.09-dev" />
<link rel="stylesheet" href="[view/global.css?v=2024.09-dev](view-source:http://192.168.50.230:8081/view/global.css?v=2024.09-dev)" type="text/css" media="all" />
<link rel="stylesheet" href="[view/asset/jquery-colorbox/example5/colorbox.css?v=2024.09-dev](view-source:http://192.168.50.230:8081/view/asset/jquery-colorbox/example5/colorbox.css?v=2024.09-dev)" type="text/css" media="screen" />
<link rel="stylesheet" href="[view/asset/jgrowl/jquery.jgrowl.min.css?v=2024.09-dev](view-source:http://192.168.50.230:8081/view/asset/jgrowl/jquery.jgrowl.min.css?v=2024.09-dev)" type="text/css" media="screen" />
<link rel="stylesheet" href="[view/asset/jquery-datetimepicker/build/jquery.datetimepicker.min.css?v=2024.09-dev](view-source:http://192.168.50.230:8081/view/asset/jquery-datetimepicker/build/jquery.datetimepicker.min.css?v=2024.09-dev)" type="text/css" media="screen" />
<link rel="stylesheet" href="[view/asset/perfect-scrollbar/dist/css/perfect-scrollbar.min.css?v=2024.09-dev](view-source:http://192.168.50.230:8081/view/asset/perfect-scrollbar/dist/css/perfect-scrollbar.min.css?v=2024.09-dev)" type="text/css" media="screen" />
<link rel="stylesheet" href="[view/js/fancybox/jquery.fancybox.min.css?v=2024.09-dev](view-source:http://192.168.50.230:8081/view/js/fancybox/jquery.fancybox.min.css?v=2024.09-dev)" type="text/css" media="screen" />

	<link rel="stylesheet" href="[http://192.168.50.230:8081/view/install/style.css?v=2024.09-dev](view-source:http://192.168.50.230:8081/view/install/style.css?v=2024.09-dev)" type="text/css" media="screen" />

<link rel="icon" href="[images/friendica.svg](view-source:http://192.168.50.230:8081/images/friendica.svg)" />
<link rel="apple-touch-icon" href="[images/friendica-192.png](view-source:http://192.168.50.230:8081/images/friendica-192.png)"/>

<meta name="apple-mobile-web-app-capable" content="yes" />
<link rel="manifest" href="[http://192.168.50.230:8081/manifest](view-source:http://192.168.50.230:8081/manifest)" />
<script>
// @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt Expat
// Prevents links to switch to Safari in a home screen app - see https://gist.github.com/irae/1042167
(function(a,b,c){if(c in b&&b[c]){var d,e=a.location,f=/^(a|html)$/i;a.addEventListener("click",function(a){d=a.target;while(!f.test(d.nodeName))d=d.parentNode;"href"in d&&(chref=d.href).replace("http://192.168.50.230:8081/", "").replace(e.href,"").indexOf("#")&&(!/^[a-z\+\.\-]+:/i.test(chref)||chref.indexOf(e.protocol+"//"+e.host)===0)&&(a.preventDefault(),e.href=d.href)},!1)}})(document,window.navigator,"standalone");
// |license-end
</script>

<link rel="search"
         href="[http://192.168.50.230:8081/opensearch](view-source:http://192.168.50.230:8081/opensearch)"
         type="application/opensearchdescription+xml"
         title="Search in Friendica" />

<!--[if IE]>
<script type="text/javascript" src="https://html5shiv.googlecode.com/svn/trunk/html5.js?v=2024.09-dev"></script>
<![endif]-->
<script type="text/javascript" src="[view/js/modernizr.js?v=2024.09-dev](view-source:http://192.168.50.230:8081/view/js/modernizr.js?v=2024.09-dev)"></script>
<script type="text/javascript" src="[view/asset/jquery/dist/jquery.min.js?v=2024.09-dev](view-source:http://192.168.50.230:8081/view/asset/jquery/dist/jquery.min.js?v=2024.09-dev)"></script>
<script type="text/javascript" src="[view/js/jquery.textinputs.js?v=2024.09-dev](view-source:http://192.168.50.230:8081/view/js/jquery.textinputs.js?v=2024.09-dev)"></script>
<script type="text/javascript" src="[view/asset/textcomplete/dist/textcomplete.min.js?v=2024.09-dev](view-source:http://192.168.50.230:8081/view/asset/textcomplete/dist/textcomplete.min.js?v=2024.09-dev)"></script>
<script type="text/javascript" src="[view/js/autocomplete.js?v=2024.09-dev](view-source:http://192.168.50.230:8081/view/js/autocomplete.js?v=2024.09-dev)"></script>
<script type="text/javascript" src="[view/asset/jquery-colorbox/jquery.colorbox-min.js?v=2024.09-dev](view-source:http://192.168.50.230:8081/view/asset/jquery-colorbox/jquery.colorbox-min.js?v=2024.09-dev)"></script>
<script type="text/javascript" src="[view/asset/jgrowl/jquery.jgrowl.min.js?v=2024.09-dev](view-source:http://192.168.50.230:8081/view/asset/jgrowl/jquery.jgrowl.min.js?v=2024.09-dev)"></script>
<script type="text/javascript" src="[view/asset/jquery-datetimepicker/build/jquery.datetimepicker.full.min.js?v=2024.09-dev](view-source:http://192.168.50.230:8081/view/asset/jquery-datetimepicker/build/jquery.datetimepicker.full.min.js?v=2024.09-dev)"></script>
<script type="text/javascript" src="[view/asset/perfect-scrollbar/dist/js/perfect-scrollbar.jquery.min.js?v=2024.09-dev](view-source:http://192.168.50.230:8081/view/asset/perfect-scrollbar/dist/js/perfect-scrollbar.jquery.min.js?v=2024.09-dev)"></script>
<script type="text/javascript" src="[view/asset/imagesloaded/imagesloaded.pkgd.min.js?v=2024.09-dev](view-source:http://192.168.50.230:8081/view/asset/imagesloaded/imagesloaded.pkgd.min.js?v=2024.09-dev)"></script>
<script type="text/javascript" src="[view/asset/base64/base64.min.js?v=2024.09-dev](view-source:http://192.168.50.230:8081/view/asset/base64/base64.min.js?v=2024.09-dev)"></script>
<script type="text/javascript" src="[view/asset/dompurify/dist/purify.min.js?v=2024.09-dev](view-source:http://192.168.50.230:8081/view/asset/dompurify/dist/purify.min.js?v=2024.09-dev)"></script>
<script type="text/javascript" src="[view/js/fancybox/jquery.fancybox.min.js?v=2024.09-dev](view-source:http://192.168.50.230:8081/view/js/fancybox/jquery.fancybox.min.js?v=2024.09-dev)"></script>
<script type="text/javascript" src="[view/js/fancybox/fancybox.config.js?v=2024.09-dev](view-source:http://192.168.50.230:8081/view/js/fancybox/fancybox.config.js?v=2024.09-dev)"></script>
<script type="text/javascript" src="[view/js/vanillaEmojiPicker/vanillaEmojiPicker.min.js?v=2024.09-dev](view-source:http://192.168.50.230:8081/view/js/vanillaEmojiPicker/vanillaEmojiPicker.min.js?v=2024.09-dev)"></script>
<script>
window.onload = function(){
	new EmojiPicker({
		trigger: [
			{
				selector: '.emojis-post',
				insertInto: ['#comment-edit-text-0', '#profile-jot-text']
			},
			{
				selector: '.emojis',
				insertInto: ['.comment-edit-text-full']
			}
		],
		closeButton: true
	});
};
</script>
<script type="text/javascript">
	const updateInterval = 40000;
	const localUser = false;
</script>
<script type="text/javascript" src="[view/js/main.js?v=2024.09-dev](view-source:http://192.168.50.230:8081/view/js/main.js?v=2024.09-dev)"></script>
<script>
	// Lifted from https://css-tricks.com/snippets/jquery/move-cursor-to-end-of-textarea-or-input/
    jQuery.fn.putCursorAtEnd = function() {
        return this.each(function() {
            // Cache references
            var $el = $(this),
                el = this;

            // Only focus if input isn't already
            if (!$el.is(":focus")) {
                $el.focus();
            }

            // If this function exists... (IE 9+)
            if (el.setSelectionRange) {
                // Double the length because Opera is inconsistent about whether a carriage return is one character or two.
                var len = $el.val().length * 2;

                // Timeout seems to be required for Blink
                setTimeout(function() {
                    el.setSelectionRange(len, len);
                }, 1);
            } else {
                // As a fallback, replace the contents with itself
                // Doesn't work in Chrome, but Chrome supports setSelectionRange
                $el.val($el.val());
            }

            // Scroll to the bottom, in case we're in a tall textarea
            // (Necessary for Firefox and Chrome)
            this.scrollTop = 999999;
        });
    };

	function confirmDelete() { return confirm(""); }
	function commentExpand(id) {
		$("#comment-edit-text-" + id).putCursorAtEnd();
		$("#comment-edit-text-" + id).addClass("comment-edit-text-full");
		$("#comment-edit-text-" + id).removeClass("comment-edit-text-empty");
		$("#mod-cmnt-wrap-" + id).show();
		openMenu("comment-edit-submit-wrapper-" + id);
		return true;
	}
	function commentOpen(obj,id) {
		if (obj.value == "") {
			$("#comment-edit-text-" + id).addClass("comment-edit-text-full");
			$("#comment-edit-text-" + id).removeClass("comment-edit-text-empty");
			$("#mod-cmnt-wrap-" + id).show();
			openMenu("comment-edit-submit-wrapper-" + id);
			return true;
		}
		return false;
	}
	function commentClose(obj,id) {
		if (obj.value == "") {
			$("#comment-edit-text-" + id).removeClass("comment-edit-text-full");
			$("#comment-edit-text-" + id).addClass("comment-edit-text-empty");
			$("#mod-cmnt-wrap-" + id).hide();
			closeMenu("comment-edit-submit-wrapper-" + id);
			return true;
		}
		return false;
	}

	function commentInsert(obj,id) {
		var tmpStr = $("#comment-edit-text-" + id).val();
		if (tmpStr == "") {
			$("#comment-edit-text-" + id).addClass("comment-edit-text-full");
			$("#comment-edit-text-" + id).removeClass("comment-edit-text-empty");
			openMenu("comment-edit-submit-wrapper-" + id);
		}
		var ins = $(obj).html();
		ins = ins.replace("&lt;","<");
		ins = ins.replace("&gt;",">");
		ins = ins.replace("&amp;","&");
		ins = ins.replace("&quot;","\"");
		$("#comment-edit-text-" + id).val(tmpStr + ins);
	}

	function showHideCommentBox(id) {
		if ($("#comment-edit-form-" + id).is(":visible")) {
			$("#comment-edit-form-" + id).hide();
		} else {
			$("#comment-edit-form-" + id).show();
		}
	}
</script>
</head>
<body>
		<aside></aside>
	<section>
				<div id="pause"></div> <!-- The pause/resume Ajax indicator -->
		<div id="page-footer"></div>
	</section>
	<right_aside></right_aside>
	<footer></footer>
</body>
</html>

@annando
Copy link
Collaborator

annando commented Dec 2, 2024

Not sure if it is related, but in the current stable version we have got a bug that prevents installation. It is fixed in the RC.

@ne20002
Copy link
Collaborator

ne20002 commented Dec 2, 2024

Yes. I believe the users try to install with the rc version, so it might be another problem.
I just got back from holiday and will have a look at the problem the next days.

@ne20002
Copy link
Collaborator

ne20002 commented Dec 4, 2024

With a first test I can confirm that a install as described by the documentation for the docker image with the following docker-compose.yml fails:

version: '2'

services:
  db:
    image: mariadb
    restart: always
    volumes:
      - db:/var/lib/mysql
    environment:
      - MYSQL_USER=friendica
      - MYSQL_PASSWORD=friendica
      - MYSQL_DATABASE=friendica
      - MYSQL_RANDOM_ROOT_PASSWORD=yes

  app:
    image: friendica:2024.09-rc
    restart: always
    volumes:
      - friendica:/var/www/html
    ports:
      - "9080:80"
      - "9443:443"
    environment:
      - MYSQL_HOST=db
      - MYSQL_USER=friendica
      - MYSQL_PASSWORD=friendica
      - MYSQL_DATABASE=friendica
      - [email protected]
      - FRIENDICA_UPGRADE=true
    depends_on:
      - db

volumes:
  db:
  friendica:

The FRIENDICA_UPGRADE=true is required if a rc version is used. The call to /install returns with a http code 500.

The fix from #14530 is in the downloaded sources. So it must be something else. I will try to dig deeper.

@tokenwizard
Copy link
Author

tokenwizard commented Dec 4, 2024 via email

@ne20002
Copy link
Collaborator

ne20002 commented Dec 4, 2024

@tokenwizard Thank you

Looking into the friendica container it seems as with the rc version there are a few things not really working well. E.g. in the Dockerfile it copies config files into /usr/src/friendica/config but it seems that thoses files are missing after the download and extraction of the sources. In the dev entry script the /usr/src/friendica is removed before newly created. Not sure if this is related.

@Totobal5
Copy link

Totobal5 commented Jan 3, 2025

I am experiencing the same issue.

@ne20002
Copy link
Collaborator

ne20002 commented Jan 30, 2025

I can confirm that the web based install is not finishing properly.

This is what I have at the moment:

pi@dev0:~/test$ cat docker-compose.yml 
version: '2'

services:
  db:
    image: mariadb
    restart: always
    volumes:
      - db:/var/lib/mysql
    environment:
      - MYSQL_USER=friendica
      - MYSQL_PASSWORD=friendica
      - MYSQL_DATABASE=friendica
      - MYSQL_RANDOM_ROOT_PASSWORD=yes

  app:
    image: friendica:2024.12
    restart: always
    volumes:
      - friendica:/var/www/html
    ports:
      - "9080:80"
    environment:
      - MYSQL_HOST=db
      - MYSQL_USER=friendica
      - MYSQL_PASSWORD=friendica
      - MYSQL_DATABASE=friendica
      - [email protected]
    depends_on:
      - db

volumes:
  db:
  friendica:

Using docker-compose up is starting the installation properly:

pi@dev0:~/test$ docker-compose up
Creating volume "test_db" with default driver
Creating volume "test_friendica" with default driver
Creating test_db_1 ... done
Creating test_app_1 ... done
Attaching to test_db_1, test_app_1
app_1  | Initializing Friendica 2024.12 ...
db_1   | 2025-01-30 11:41:48+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:11.6.2+maria~ubu2404 started.
db_1   | 2025-01-30 11:41:48+00:00 [Warn] [Entrypoint]: /sys/fs/cgroup///memory.pressure not writable, functionality unavailable to MariaDB
db_1   | 2025-01-30 11:41:48+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
db_1   | 2025-01-30 11:41:48+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:11.6.2+maria~ubu2404 started.
db_1   | 2025-01-30 11:41:48+00:00 [Note] [Entrypoint]: Initializing database files
app_1  | Initializing finished
app_1  | New Friendica instance
app_1  | Running web-based installer on first connect!
app_1  | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.19.0.3. Set the 'ServerName' directive globally to suppress this message
app_1  | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.19.0.3. Set the 'ServerName' directive globally to suppress this message
app_1  | [Thu Jan 30 11:41:49.634546 2025] [mpm_prefork:notice] [pid 1:tid 1] AH00163: Apache/2.4.62 (Debian) PHP/8.2.27 configured -- resuming normal operations
app_1  | [Thu Jan 30 11:41:49.634589 2025] [core:notice] [pid 1:tid 1] AH00094: Command line: 'apache2 -D FOREGROUND'
db_1   | 2025-01-30 11:41:51+00:00 [Note] [Entrypoint]: Database files initialized
db_1   | 2025-01-30 11:41:51+00:00 [Note] [Entrypoint]: Starting temporary server
db_1   | 2025-01-30 11:41:51+00:00 [Note] [Entrypoint]: Waiting for server startup
db_1   | 2025-01-30 11:41:51 0 [Note] Starting MariaDB 11.6.2-MariaDB-ubu2404 source revision d8dad8c3b54cd09fefce7bc3b9749f427eed9709 server_uid boI2yEWnP+b4JlB7IyqfY5XtYeU= as process 97
db_1   | 2025-01-30 11:41:51 0 [Note] InnoDB: Compressed tables use zlib 1.3
db_1   | 2025-01-30 11:41:51 0 [Note] InnoDB: Number of transaction pools: 1
db_1   | 2025-01-30 11:41:51 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
db_1   | 2025-01-30 11:41:51 0 [Note] mariadbd: O_TMPFILE is not supported on /tmp (disabling future attempts)
db_1   | 2025-01-30 11:41:51 0 [Note] InnoDB: Using liburing
db_1   | 2025-01-30 11:41:51 0 [Note] InnoDB: Initializing buffer pool, total size = 128.000MiB, chunk size = 2.000MiB
db_1   | 2025-01-30 11:41:51 0 [Note] InnoDB: Completed initialization of buffer pool
db_1   | 2025-01-30 11:41:51 0 [Note] InnoDB: File system buffers for log disabled (block size=512 bytes)
db_1   | 2025-01-30 11:41:51 0 [Note] InnoDB: End of log at LSN=47763
db_1   | 2025-01-30 11:41:51 0 [Note] InnoDB: Opened 3 undo tablespaces
db_1   | 2025-01-30 11:41:51 0 [Note] InnoDB: 128 rollback segments in 3 undo tablespaces are active.
db_1   | 2025-01-30 11:41:51 0 [Note] InnoDB: Setting file './ibtmp1' size to 12.000MiB. Physically writing the file full; Please wait ...
db_1   | 2025-01-30 11:41:51 0 [Note] InnoDB: File './ibtmp1' size is now 12.000MiB.
db_1   | 2025-01-30 11:41:51 0 [Note] InnoDB: log sequence number 47763; transaction id 14
db_1   | 2025-01-30 11:41:51 0 [Note] Plugin 'FEEDBACK' is disabled.
db_1   | 2025-01-30 11:41:51 0 [Note] Plugin 'wsrep-provider' is disabled.
db_1   | 2025-01-30 11:41:54 0 [Note] mariadbd: Event Scheduler: Loaded 0 events
db_1   | 2025-01-30 11:41:54 0 [Note] mariadbd: ready for connections.
db_1   | Version: '11.6.2-MariaDB-ubu2404'  socket: '/run/mysqld/mysqld.sock'  port: 0  mariadb.org binary distribution
db_1   | 2025-01-30 11:41:55+00:00 [Note] [Entrypoint]: Temporary server started.
db_1   | 2025-01-30 11:41:55+00:00 [Note] [Entrypoint]: GENERATED ROOT PASSWORD: _6Qdg<D-Pk9FV2v^=vzdS)5i{g|4gXwb
db_1   | 2025-01-30 11:41:55+00:00 [Note] [Entrypoint]: Creating database friendica
db_1   | 2025-01-30 11:41:55+00:00 [Note] [Entrypoint]: Creating user friendica
db_1   | 2025-01-30 11:41:55+00:00 [Note] [Entrypoint]: Giving user friendica access to schema friendica
db_1   | 2025-01-30 11:41:55+00:00 [Note] [Entrypoint]: Securing system users (equivalent to running mysql_secure_installation)
db_1   | 
db_1   | 2025-01-30 11:41:55+00:00 [Note] [Entrypoint]: Stopping temporary server
db_1   | 2025-01-30 11:41:55 0 [Note] mariadbd (initiated by: unknown): Normal shutdown
db_1   | 2025-01-30 11:41:55 0 [Note] InnoDB: FTS optimize thread exiting.
db_1   | 2025-01-30 11:41:55 0 [Note] InnoDB: Starting shutdown...
db_1   | 2025-01-30 11:41:55 0 [Note] InnoDB: Dumping buffer pool(s) to /var/lib/mysql/ib_buffer_pool
db_1   | 2025-01-30 11:41:55 0 [Note] InnoDB: Buffer pool(s) dump completed at 250130 11:41:55
db_1   | 2025-01-30 11:41:56 0 [Note] InnoDB: Removed temporary tablespace data file: "./ibtmp1"
db_1   | 2025-01-30 11:41:56 0 [Note] InnoDB: Shutdown completed; log sequence number 47763; transaction id 15
db_1   | 2025-01-30 11:41:56 0 [Note] mariadbd: Shutdown complete
db_1   | 
db_1   | 2025-01-30 11:41:56+00:00 [Note] [Entrypoint]: Temporary server stopped
db_1   | 
db_1   | 2025-01-30 11:41:56+00:00 [Note] [Entrypoint]: MariaDB init process done. Ready for start up.
db_1   | 
db_1   | 2025-01-30 11:41:56 0 [Note] Starting MariaDB 11.6.2-MariaDB-ubu2404 source revision d8dad8c3b54cd09fefce7bc3b9749f427eed9709 server_uid boI2yEWnP+b4JlB7IyqfY5XtYeU= as process 1
db_1   | 2025-01-30 11:41:56 0 [Note] InnoDB: Compressed tables use zlib 1.3
db_1   | 2025-01-30 11:41:56 0 [Note] InnoDB: Number of transaction pools: 1
db_1   | 2025-01-30 11:41:56 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
db_1   | 2025-01-30 11:41:56 0 [Note] mariadbd: O_TMPFILE is not supported on /tmp (disabling future attempts)
db_1   | 2025-01-30 11:41:56 0 [Note] InnoDB: Using liburing
db_1   | 2025-01-30 11:41:56 0 [Note] InnoDB: Initializing buffer pool, total size = 128.000MiB, chunk size = 2.000MiB
db_1   | 2025-01-30 11:41:56 0 [Note] InnoDB: Completed initialization of buffer pool
db_1   | 2025-01-30 11:41:56 0 [Note] InnoDB: File system buffers for log disabled (block size=512 bytes)
db_1   | 2025-01-30 11:41:56 0 [Note] InnoDB: End of log at LSN=47763
db_1   | 2025-01-30 11:41:56 0 [Note] InnoDB: Opened 3 undo tablespaces
db_1   | 2025-01-30 11:41:56 0 [Note] InnoDB: 128 rollback segments in 3 undo tablespaces are active.
db_1   | 2025-01-30 11:41:56 0 [Note] InnoDB: Setting file './ibtmp1' size to 12.000MiB. Physically writing the file full; Please wait ...
db_1   | 2025-01-30 11:41:56 0 [Note] InnoDB: File './ibtmp1' size is now 12.000MiB.
db_1   | 2025-01-30 11:41:56 0 [Note] InnoDB: log sequence number 47763; transaction id 14
db_1   | 2025-01-30 11:41:56 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
db_1   | 2025-01-30 11:41:56 0 [Note] Plugin 'FEEDBACK' is disabled.
db_1   | 2025-01-30 11:41:56 0 [Note] Plugin 'wsrep-provider' is disabled.
db_1   | 2025-01-30 11:41:56 0 [Note] InnoDB: Buffer pool(s) load completed at 250130 11:41:56
db_1   | 2025-01-30 11:41:57 0 [Note] Server socket created on IP: '0.0.0.0'.
db_1   | 2025-01-30 11:41:57 0 [Note] Server socket created on IP: '::'.
db_1   | 2025-01-30 11:41:57 0 [Note] mariadbd: Event Scheduler: Loaded 0 events
db_1   | 2025-01-30 11:41:57 0 [Note] mariadbd: ready for connections.

To get access to the headless server I use: ssh -L 9080:dev0:9080 pi@dev0 from my dev notebook.

I now can start the installation by calling http://localhost:9080 in the web browser on my dev notebook:

The url in the web browser shows http://localhost:9080/install

Image

The first issue seems to be the .htaccess file. I'll have a look on that later.

Clicking the Next button I come to page http://localhost:9080/install?pass=2

Image

Clicking the Next button I come to page http://localhost:9080/install?pass=3

Image

I add the parameters as given in the docker-compose.yml:

Datenbank-Server: db
Datenbank-Nutzer: friendica
Datenbank-Passwort: friendica
Datenbank-Name: friendica

Clicking the Next button I come to page http://localhost:9080/install?pass=4

Image

I add the email address as given in the docker-compose.yml: [email protected]

Clicking the Next button gives me a blank page with the url http://localhost:9080/index.php?pagename=install shown in the web browser.

The page source shows good (including all scripts etc) but the body part is empty:

<body>
		<aside></aside>
	<section>
				<div id="pause"></div> <!-- The pause/resume Ajax indicator -->
		<div id="page-footer"></div>
	</section>
	<right_aside></right_aside>
	<footer></footer>
</body>

@ne20002
Copy link
Collaborator

ne20002 commented Jan 30, 2025

Looking into the container, there is no config.php. Only

root@1e01d474172f:/var/www/html/config# ls -la
total 24
drwxr-xr-x  2 www-data www-data 4096 Jan 30 11:41 .
drwxrwxrwt 14 www-data www-data 4096 Jan 30 11:41 ..
-rw-r--r--  1 www-data www-data  165 Jan 30 11:41 00apcu.config.php
-rw-r--r--  1 www-data www-data  382 Jan 30 11:41 01redis.config.php
-rw-r--r--  1 www-data www-data 1395 Jan 30 11:41 local-sample.config.php
-rw-r--r--  1 www-data www-data  855 Jan 30 11:41 zz-docker.config.php

I would have expected to have a config.php with the values entered during install (at least the database values).
I would also have expected that the database values should have been added from the env variables during entrypoint.sh.

@ne20002
Copy link
Collaborator

ne20002 commented Jan 30, 2025

Adding the FRIENDICA_URL env variable to the docker-compose.yml finished the autoinstall on startup and I could afterwards directly access the login page but there seems to be no login user created (so I assume @m33m33 is correct on adding this in PR #278.

But this is not fixing the web based install.

@m33m33
Copy link

m33m33 commented Jan 30, 2025

There is something phishy when the installer proceed from step 4 SITE_SETTINGS to 5 FINISHED according to the access.log, step 4 is the last I can see here.

@ne20002
Copy link
Collaborator

ne20002 commented Jan 30, 2025

Yes. It seems as if there is a lot of refactoring ongoing and I'm currently testing with the last stable version (as I hope to get this fixed and maybe get an updated version created before the next official release which will include a lot of changes).

Based on what I see I believe, that this call is failing and the function returns with no redirect set. But I'm not a php developer.
When I looked into the container the config file hasn't been there. Seems like it fails and the function returns without a redirect set (as it doesn't reach the last code line in the function).

@m33m33
Copy link

m33m33 commented Jan 30, 2025

I am at the same point. When checking the database it's still empty, and I have narrowed down something wrong during the php configuration file.
I managed to have it write an empty config file, but that's it.
I think there is something wrong with collecting the environment variables or something.

@m33m33
Copy link

m33m33 commented Jan 30, 2025

Actually, it's not only the last page that gives you a blank page. Every page of the install wizard gives you a blank page if something goes wrong.
You can reproduce it by entering wrong values for the database connector setup (that you know are wrong), you get a blank page too.

I managed to comment tests cases to go a little further after pass=4, it seems the configuration is not passed correctly from the database connector setup page to the rest of the install process.
When the database connector has been tested OK, allowing to go to site details, then the final blank page, the configuration file is created with empty variables for host, user pass.
And I can provoque these errors by commenting tests cases, the database descriptor is wrong, but it should not be (db tests passed during the db connector setup)

Warning: Undefined array key 0 in /var/www/html/src/Database/Database.php on line 306
Warning: Trying to access array offset on null in /var/www/html/src/Database/Database.php on line 306

link to line 306

@m33m33
Copy link

m33m33 commented Jan 30, 2025

Another try to confirm that the configuration entered on the WebUI is not passed through, in this screenshot I have removed the hidden attribute from previous configuration items in the view template, all empty fields were rigorously entered and checked on previous pass (database setting).
They should be displayed here, just like earlier settings (path, site url), right ?

Image

@ne20002
Copy link
Collaborator

ne20002 commented Jan 31, 2025

I will switch to the current development branch for further testing. There is a lot of work ongoing and it seems as if the next release is in the pipeline and expected end of february.
I will focus on ensuring that the next release with all its changes will work with the docker images. Alltough, this install wizard problems doesn't seem to be a problem of the docker images and if the problem persists in the current development branch we shall move the issue to the friendica project.

@m33m33
Copy link

m33m33 commented Jan 31, 2025

Its seems reasonable, ping me if you need some testing on Linux ARM64 + Docker.

@ne20002
Copy link
Collaborator

ne20002 commented Jan 31, 2025

My current findig is that I still can install with the autoinstall whereas the web wizard doesn't even show up with its first page.

@MrPetovan, are there any issues with the web install wizard kown in the current develop branch?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants