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

[bitnami/moodle] realpath: /bitnami/apache/conf: No such file or directory #67724

Closed
longester opened this issue Jun 9, 2024 · 7 comments
Closed
Assignees
Labels
moodle solved stale 15 days without activity tech-issues The user has a technical issue about an application triage Triage is needed

Comments

@longester
Copy link

longester commented Jun 9, 2024

Name and Version

[bitnami/moodle] realpath: /bitnami/apache/conf: No such file or directory
Linux debian 6.1.0-21-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.90-1 (2024-05-03) x86_64

What architecture are you using?

amd64

What steps will reproduce the bug?

name: sharp_todd
services:
  mariadb:
    cpu_shares: 90
    command: []
    deploy:
      resources:
        limits:
          memory: 29985M
    environment:
      - MYSQL_DATABASE=moodle
      - MYSQL_ROOT_PASSWORD=moodle
      - MYSQL_ROOT_USER=root
    image: mariadb:latest
    restart: unless-stopped
    volumes:
      - type: bind
        source: /srv/Configs/Databases/Moodle
        target: /var/lib/mysql
    ports: []
    devices: []
    cap_add: []
    network_mode: bridge
    privileged: false
    container_name: ""
    hostname: ""
  moodle:
    cpu_shares: 90
    command: []
    depends_on:
      mariadb:
        condition: service_started
        required: true
    deploy:
      resources:
        limits:
          memory: 29985M
    environment:
      - MOODLE_DATABASE_HOST=mariadb
      - MOODLE_DATABASE_NAME=moodle
      - MOODLE_DATABASE_PASSWORD=moodle
      - MOODLE_DATABASE_USER=root
      - PGID=100
      - PUID=998
    image: bitnami/moodle:latest
    links:
      - mariadb:mariadb
    ports:
      - target: 8080
        published: "8080"
        protocol: tcp
      - target: 8443
        published: "8443"
        protocol: tcp
    restart: unless-stopped
    volumes:
      - type: bind
        source: /srv/Configs/Moodle
        target: /bitnami/moodle
      - type: bind
        **source: /mnt/Storage/Moodle/MoodleData**
        target: /bitnami/moodledata
    devices: []
    cap_add: []
    network_mode: bridge
    privileged: false
    container_name: ""
    hostname: ""
x-casaos:
  author: self
  category: self
  hostname: ""
  icon: ""
  index: /
  is_uncontrolled: false
  port_map: "8080"
  scheme: http
  store_app_id: sharp_todd
  title:
    custom: Moodle

What is the expected behavior?

no error

What do you see instead?

moodle 12:14:20.62 INFO  ==> Welcome to the Bitnami moodle container
moodle 12:14:20.62 INFO  ==> Subscribe to project updates by watching https://github.com/bitnami/containers
moodle 12:14:20.62 INFO  ==> Submit issues and feature requests at https://github.com/bitnami/containers/issues
moodle 12:14:20.63 INFO  ==> Upgrade to Tanzu Application Catalog for production environments to access custom-configured and pre-packaged software components. Gain enhanced features, including Software Bill of Materials (SBOM), CVE scan result reports, and VEX documents. To learn more, visit https://bitnami.com/enterprise
moodle 12:14:20.63 INFO  ==> 
moodle 12:14:20.63 INFO  ==> ** Starting Moodle setup **
**realpath: /bitnami/apache/conf: No such file or directory**
moodle 12:14:20.68 INFO  ==> Configuring Apache ServerTokens directive
moodle 12:14:20.71 INFO  ==> Configuring PHP options
moodle 12:14:20.72 INFO  ==> Setting PHP expose_php option
moodle 12:14:20.73 INFO  ==> Setting PHP output_buffering option
moodle 12:14:20.75 INFO  ==> Validating settings in MYSQL_CLIENT_* env vars
moodle 12:14:20.76 INFO  ==> Validating settings in POSTGRESQL_CLIENT_* env vars
moodle 12:14:20.87 INFO  ==> Ensuring Moodle directories exist
moodle 12:14:20.95 INFO  ==> Trying to connect to the database server
moodle 12:14:21.02 INFO  ==> Running Moodle install script
@longester longester added the tech-issues The user has a technical issue about an application label Jun 9, 2024
@github-actions github-actions bot added the triage Triage is needed label Jun 9, 2024
@longester
Copy link
Author

longester commented Jun 9, 2024

debian@debian:~$ docker logs e1728903bc1a
moodle 12:20:36.45 INFO  ==> 
moodle 12:20:36.45 INFO  ==> Welcome to the Bitnami moodle container
moodle 12:20:36.46 INFO  ==> Subscribe to project updates by watching https://github.com/bitnami/containers
moodle 12:20:36.46 INFO  ==> Submit issues and feature requests at https://github.com/bitnami/containers/issues
moodle 12:20:36.46 INFO  ==> Upgrade to Tanzu Application Catalog for production environments to access custom-configured and pre-packaged software components. Gain enhanced features, including Software Bill of Materials (SBOM), CVE scan result reports, and VEX documents. To learn more, visit https://bitnami.com/enterprise
moodle 12:20:36.46 INFO  ==> 
moodle 12:20:36.46 INFO  ==> ** Starting Moodle setup **
moodle 12:20:36.48 DEBUG ==> Validating settings in APACHE_* environment variables
moodle 12:20:36.49 DEBUG ==> Copying files from /opt/bitnami/apache/conf.default to /opt/bitnami/apache/conf
moodle 12:20:36.50 INFO  ==> Generating sample certificates
Certificate request self-signature ok
subject=CN = example.com
realpath: /bitnami/apache/conf: No such file or directory
moodle 12:20:37.39 INFO  ==> Configuring Apache ServerTokens directive
moodle 12:20:37.39 DEBUG ==> Configuring ServerTokens Prod on file /opt/bitnami/apache/conf/httpd.conf
moodle 12:20:37.45 INFO  ==> Configuring PHP options
moodle 12:20:37.45 INFO  ==> Setting PHP expose_php option
moodle 12:20:37.46 INFO  ==> Setting PHP output_buffering option
moodle 12:20:37.49 INFO  ==> Validating settings in MYSQL_CLIENT_* env vars
moodle 12:20:37.50 INFO  ==> Validating settings in POSTGRESQL_CLIENT_* env vars
moodle 12:20:37.54 DEBUG ==> Validating settings in MOODLE_* environment variables...
moodle 12:20:37.61 INFO  ==> Ensuring Moodle directories exist
moodle 12:20:37.66 INFO  ==> Trying to connect to the database server
moodle 12:20:37.67 DEBUG ==> Executing SQL command:
SELECT 1
/opt/bitnami/mysql/bin/mysql: Deprecated program name. It will be removed in a future release, use '/opt/bitnami/mysql/bin/mariadb' instead
1
moodle 12:20:37.73 INFO  ==> Running Moodle install script
                                 .-..-.       
   _____                         | || |       
  /____/-.---_  .---.  .---.  .-.| || | .---. 
  | |  _   _  |/  _  \/  _  \/  _  || |/  __ \
  * | | | | | || |_| || |_| || |_| || || |___/
    |_| |_| |_|\_____/\_____/\_____||_|\_____)

Moodle 4.4 (Build: 20240422) command line installation program
== Environment ==
!! unicode !!
[System] must be installed and enabled - It is required that you store all your data in Unicode format (UTF-8). New
installations must be performed into databases that have their default
character set as Unicode. If you are upgrading, you should perform the
UTF-8 migration process (see the Admin page).


moodle 12:20:39.06 INFO  ==> 
moodle 12:20:39.06 INFO  ==> Welcome to the Bitnami moodle container
moodle 12:20:39.06 INFO  ==> Subscribe to project updates by watching https://github.com/bitnami/containers
moodle 12:20:39.06 INFO  ==> Submit issues and feature requests at https://github.com/bitnami/containers/issues
moodle 12:20:39.07 INFO  ==> Upgrade to Tanzu Application Catalog for production environments to access custom-configured and pre-packaged software components. Gain enhanced features, including Software Bill of Materials (SBOM), CVE scan result reports, and VEX documents. To learn more, visit https://bitnami.com/enterprise
moodle 12:20:39.07 INFO  ==> 
moodle 12:20:39.07 INFO  ==> ** Starting Moodle setup **
moodle 12:20:39.08 DEBUG ==> Validating settings in APACHE_* environment variables
moodle 12:20:39.10 DEBUG ==> Copying files from /opt/bitnami/apache/conf.default to /opt/bitnami/apache/conf
realpath: /bitnami/apache/conf: No such file or directory
moodle 12:20:39.11 INFO  ==> Configuring Apache ServerTokens directive
moodle 12:20:39.12 DEBUG ==> Configuring ServerTokens Prod on file /opt/bitnami/apache/conf/httpd.conf
moodle 12:20:39.15 INFO  ==> Configuring PHP options
moodle 12:20:39.15 INFO  ==> Setting PHP expose_php option
moodle 12:20:39.16 INFO  ==> Setting PHP output_buffering option
moodle 12:20:39.19 INFO  ==> Validating settings in MYSQL_CLIENT_* env vars
moodle 12:20:39.20 INFO  ==> Validating settings in POSTGRESQL_CLIENT_* env vars
moodle 12:20:39.24 DEBUG ==> Validating settings in MOODLE_* environment variables...
moodle 12:20:39.30 INFO  ==> Ensuring Moodle directories exist
moodle 12:20:39.35 INFO  ==> Trying to connect to the database server
moodle 12:20:39.36 DEBUG ==> Executing SQL command:
SELECT 1
/opt/bitnami/mysql/bin/mysql: Deprecated program name. It will be removed in a future release, use '/opt/bitnami/mysql/bin/mariadb' instead
1
moodle 12:20:39.42 INFO  ==> Running Moodle install script
!!! Error reading from database !!!
moodle 12:20:40.18 INFO  ==> 
moodle 12:20:40.18 INFO  ==> Welcome to the Bitnami moodle container
moodle 12:20:40.18 INFO  ==> Subscribe to project updates by watching https://github.com/bitnami/containers
moodle 12:20:40.18 INFO  ==> Submit issues and feature requests at https://github.com/bitnami/containers/issues
moodle 12:20:40.19 INFO  ==> Upgrade to Tanzu Application Catalog for production environments to access custom-configured and pre-packaged software components. Gain enhanced features, including Software Bill of Materials (SBOM), CVE scan result reports, and VEX documents. To learn more, visit https://bitnami.com/enterprise
moodle 12:20:40.19 INFO  ==> 
moodle 12:20:40.19 INFO  ==> ** Starting Moodle setup **
moodle 12:20:40.20 DEBUG ==> Validating settings in APACHE_* environment variables
moodle 12:20:40.22 DEBUG ==> Copying files from /opt/bitnami/apache/conf.default to /opt/bitnami/apache/conf
realpath: /bitnami/apache/conf: No such file or directory
moodle 12:20:40.23 INFO  ==> Configuring Apache ServerTokens directive
moodle 12:20:40.23 DEBUG ==> Configuring ServerTokens Prod on file /opt/bitnami/apache/conf/httpd.conf
moodle 12:20:40.26 INFO  ==> Configuring PHP options
moodle 12:20:40.27 INFO  ==> Setting PHP expose_php option
moodle 12:20:40.28 INFO  ==> Setting PHP output_buffering option
moodle 12:20:40.30 INFO  ==> Validating settings in MYSQL_CLIENT_* env vars
moodle 12:20:40.31 INFO  ==> Validating settings in POSTGRESQL_CLIENT_* env vars
moodle 12:20:40.35 DEBUG ==> Validating settings in MOODLE_* environment variables...
moodle 12:20:40.41 INFO  ==> Ensuring Moodle directories exist
moodle 12:20:40.46 INFO  ==> Trying to connect to the database server
moodle 12:20:40.47 DEBUG ==> Executing SQL command:
SELECT 1
/opt/bitnami/mysql/bin/mysql: Deprecated program name. It will be removed in a future release, use '/opt/bitnami/mysql/bin/mariadb' instead
1
moodle 12:20:40.52 INFO  ==> Running Moodle install script
!!! Error reading from database !!!
moodle 12:20:41.43 INFO  ==> 
moodle 12:20:41.43 INFO  ==> Welcome to the Bitnami moodle container
moodle 12:20:41.43 INFO  ==> Subscribe to project updates by watching https://github.com/bitnami/containers
moodle 12:20:41.43 INFO  ==> Submit issues and feature requests at https://github.com/bitnami/containers/issues
moodle 12:20:41.43 INFO  ==> Upgrade to Tanzu Application Catalog for production environments to access custom-configured and pre-packaged software components. Gain enhanced features, including Software Bill of Materials (SBOM), CVE scan result reports, and VEX documents. To learn more, visit https://bitnami.com/enterprise
moodle 12:20:41.43 INFO  ==> 
moodle 12:20:41.44 INFO  ==> ** Starting Moodle setup **
moodle 12:20:41.45 DEBUG ==> Validating settings in APACHE_* environment variables
moodle 12:20:41.47 DEBUG ==> Copying files from /opt/bitnami/apache/conf.default to /opt/bitnami/apache/conf
realpath: /bitnami/apache/conf: No such file or directory
moodle 12:20:41.49 INFO  ==> Configuring Apache ServerTokens directive
moodle 12:20:41.49 DEBUG ==> Configuring ServerTokens Prod on file /opt/bitnami/apache/conf/httpd.conf
moodle 12:20:41.52 INFO  ==> Configuring PHP options
moodle 12:20:41.53 INFO  ==> Setting PHP expose_php option
moodle 12:20:41.54 INFO  ==> Setting PHP output_buffering option
moodle 12:20:41.56 INFO  ==> Validating settings in MYSQL_CLIENT_* env vars
moodle 12:20:41.57 INFO  ==> Validating settings in POSTGRESQL_CLIENT_* env vars
moodle 12:20:41.61 DEBUG ==> Validating settings in MOODLE_* environment variables...
moodle 12:20:41.67 INFO  ==> Ensuring Moodle directories exist
moodle 12:20:41.72 INFO  ==> Trying to connect to the database server
moodle 12:20:41.72 DEBUG ==> Executing SQL command:
SELECT 1
/opt/bitnami/mysql/bin/mysql: Deprecated program name. It will be removed in a future release, use '/opt/bitnami/mysql/bin/mariadb' instead
1
moodle 12:20:41.79 INFO  ==> Running Moodle install script
!!! Error reading from database !!!
moodle 12:20:43.13 INFO  ==> 
moodle 12:20:43.13 INFO  ==> Welcome to the Bitnami moodle container
moodle 12:20:43.13 INFO  ==> Subscribe to project updates by watching https://github.com/bitnami/containers
moodle 12:20:43.13 INFO  ==> Submit issues and feature requests at https://github.com/bitnami/containers/issues
moodle 12:20:43.13 INFO  ==> Upgrade to Tanzu Application Catalog for production environments to access custom-configured and pre-packaged software components. Gain enhanced features, including Software Bill of Materials (SBOM), CVE scan result reports, and VEX documents. To learn more, visit https://bitnami.com/enterprise
moodle 12:20:43.13 INFO  ==> 
moodle 12:20:43.13 INFO  ==> ** Starting Moodle setup **
moodle 12:20:43.15 DEBUG ==> Validating settings in APACHE_* environment variables
moodle 12:20:43.16 DEBUG ==> Copying files from /opt/bitnami/apache/conf.default to /opt/bitnami/apache/conf
realpath: /bitnami/apache/conf: No such file or directory
moodle 12:20:43.18 INFO  ==> Configuring Apache ServerTokens directive
moodle 12:20:43.18 DEBUG ==> Configuring ServerTokens Prod on file /opt/bitnami/apache/conf/httpd.conf
moodle 12:20:43.21 INFO  ==> Configuring PHP options
moodle 12:20:43.22 INFO  ==> Setting PHP expose_php option
moodle 12:20:43.23 INFO  ==> Setting PHP output_buffering option
moodle 12:20:43.25 INFO  ==> Validating settings in MYSQL_CLIENT_* env vars
moodle 12:20:43.26 INFO  ==> Validating settings in POSTGRESQL_CLIENT_* env vars
moodle 12:20:43.30 DEBUG ==> Validating settings in MOODLE_* environment variables...
moodle 12:20:43.36 INFO  ==> Ensuring Moodle directories exist
moodle 12:20:43.41 INFO  ==> Trying to connect to the database server
moodle 12:20:43.41 DEBUG ==> Executing SQL command:
SELECT 1
/opt/bitnami/mysql/bin/mysql: Deprecated program name. It will be removed in a future release, use '/opt/bitnami/mysql/bin/mariadb' instead
1
moodle 12:20:43.48 INFO  ==> Running Moodle install script
!!! Error reading from database !!!
moodle 12:20:45.61 INFO  ==> 
moodle 12:20:45.61 INFO  ==> Welcome to the Bitnami moodle container
moodle 12:20:45.61 INFO  ==> Subscribe to project updates by watching https://github.com/bitnami/containers
moodle 12:20:45.61 INFO  ==> Submit issues and feature requests at https://github.com/bitnami/containers/issues
moodle 12:20:45.62 INFO  ==> Upgrade to Tanzu Application Catalog for production environments to access custom-configured and pre-packaged software components. Gain enhanced features, including Software Bill of Materials (SBOM), CVE scan result reports, and VEX documents. To learn more, visit https://bitnami.com/enterprise
moodle 12:20:45.62 INFO  ==> 
moodle 12:20:45.62 INFO  ==> ** Starting Moodle setup **
moodle 12:20:45.64 DEBUG ==> Validating settings in APACHE_* environment variables
moodle 12:20:45.65 DEBUG ==> Copying files from /opt/bitnami/apache/conf.default to /opt/bitnami/apache/conf
realpath: /bitnami/apache/conf: No such file or directory
moodle 12:20:45.67 INFO  ==> Configuring Apache ServerTokens directive
moodle 12:20:45.67 DEBUG ==> Configuring ServerTokens Prod on file /opt/bitnami/apache/conf/httpd.conf
moodle 12:20:45.70 INFO  ==> Configuring PHP options
moodle 12:20:45.71 INFO  ==> Setting PHP expose_php option
moodle 12:20:45.72 INFO  ==> Setting PHP output_buffering option
moodle 12:20:45.74 INFO  ==> Validating settings in MYSQL_CLIENT_* env vars
moodle 12:20:45.75 INFO  ==> Validating settings in POSTGRESQL_CLIENT_* env vars
moodle 12:20:45.79 DEBUG ==> Validating settings in MOODLE_* environment variables...
moodle 12:20:45.85 INFO  ==> Ensuring Moodle directories exist
moodle 12:20:45.90 INFO  ==> Trying to connect to the database server
moodle 12:20:45.91 DEBUG ==> Executing SQL command:
SELECT 1
/opt/bitnami/mysql/bin/mysql: Deprecated program name. It will be removed in a future release, use '/opt/bitnami/mysql/bin/mariadb' instead
1
moodle 12:20:45.96 INFO  ==> Running Moodle install script
!!! Error reading from database !!!
moodle 12:20:49.67 INFO  ==> 
moodle 12:20:49.67 INFO  ==> Welcome to the Bitnami moodle container
moodle 12:20:49.67 INFO  ==> Subscribe to project updates by watching https://github.com/bitnami/containers
moodle 12:20:49.68 INFO  ==> Submit issues and feature requests at https://github.com/bitnami/containers/issues
moodle 12:20:49.68 INFO  ==> Upgrade to Tanzu Application Catalog for production environments to access custom-configured and pre-packaged software components. Gain enhanced features, including Software Bill of Materials (SBOM), CVE scan result reports, and VEX documents. To learn more, visit https://bitnami.com/enterprise
moodle 12:20:49.68 INFO  ==> 
moodle 12:20:49.68 INFO  ==> ** Starting Moodle setup **
moodle 12:20:49.69 DEBUG ==> Validating settings in APACHE_* environment variables
moodle 12:20:49.71 DEBUG ==> Copying files from /opt/bitnami/apache/conf.default to /opt/bitnami/apache/conf
realpath: /bitnami/apache/conf: No such file or directory
moodle 12:20:49.72 INFO  ==> Configuring Apache ServerTokens directive
moodle 12:20:49.72 DEBUG ==> Configuring ServerTokens Prod on file /opt/bitnami/apache/conf/httpd.conf
moodle 12:20:49.75 INFO  ==> Configuring PHP options
moodle 12:20:49.76 INFO  ==> Setting PHP expose_php option
moodle 12:20:49.77 INFO  ==> Setting PHP output_buffering option
moodle 12:20:49.80 INFO  ==> Validating settings in MYSQL_CLIENT_* env vars
moodle 12:20:49.81 INFO  ==> Validating settings in POSTGRESQL_CLIENT_* env vars
moodle 12:20:49.84 DEBUG ==> Validating settings in MOODLE_* environment variables...
moodle 12:20:49.91 INFO  ==> Ensuring Moodle directories exist
moodle 12:20:49.96 INFO  ==> Trying to connect to the database server
moodle 12:20:49.96 DEBUG ==> Executing SQL command:
SELECT 1
/opt/bitnami/mysql/bin/mysql: Deprecated program name. It will be removed in a future release, use '/opt/bitnami/mysql/bin/mariadb' instead
1
moodle 12:20:50.02 INFO  ==> Running Moodle install script
!!! Error reading from database !!!
moodle 12:20:56.99 INFO  ==> 
moodle 12:20:56.99 INFO  ==> Welcome to the Bitnami moodle container
moodle 12:20:56.99 INFO  ==> Subscribe to project updates by watching https://github.com/bitnami/containers
moodle 12:20:56.99 INFO  ==> Submit issues and feature requests at https://github.com/bitnami/containers/issues
moodle 12:20:57.00 INFO  ==> Upgrade to Tanzu Application Catalog for production environments to access custom-configured and pre-packaged software components. Gain enhanced features, including Software Bill of Materials (SBOM), CVE scan result reports, and VEX documents. To learn more, visit https://bitnami.com/enterprise
moodle 12:20:57.00 INFO  ==> 
moodle 12:20:57.00 INFO  ==> ** Starting Moodle setup **
moodle 12:20:57.02 DEBUG ==> Validating settings in APACHE_* environment variables
moodle 12:20:57.03 DEBUG ==> Copying files from /opt/bitnami/apache/conf.default to /opt/bitnami/apache/conf
realpath: /bitnami/apache/conf: No such file or directory
moodle 12:20:57.05 INFO  ==> Configuring Apache ServerTokens directive
moodle 12:20:57.05 DEBUG ==> Configuring ServerTokens Prod on file /opt/bitnami/apache/conf/httpd.conf
moodle 12:20:57.08 INFO  ==> Configuring PHP options
moodle 12:20:57.09 INFO  ==> Setting PHP expose_php option
moodle 12:20:57.10 INFO  ==> Setting PHP output_buffering option
moodle 12:20:57.13 INFO  ==> Validating settings in MYSQL_CLIENT_* env vars
moodle 12:20:57.14 INFO  ==> Validating settings in POSTGRESQL_CLIENT_* env vars
moodle 12:20:57.17 DEBUG ==> Validating settings in MOODLE_* environment variables...
moodle 12:20:57.25 INFO  ==> Ensuring Moodle directories exist
moodle 12:20:57.30 INFO  ==> Trying to connect to the database server
moodle 12:20:57.30 DEBUG ==> Executing SQL command:
SELECT 1
/opt/bitnami/mysql/bin/mysql: Deprecated program name. It will be removed in a future release, use '/opt/bitnami/mysql/bin/mariadb' instead
1
moodle 12:20:57.37 INFO  ==> Running Moodle install script
!!! Error reading from database !!!
moodle 12:21:10.68 INFO  ==> 
moodle 12:21:10.68 INFO  ==> Welcome to the Bitnami moodle container
moodle 12:21:10.68 INFO  ==> Subscribe to project updates by watching https://github.com/bitnami/containers
moodle 12:21:10.69 INFO  ==> Submit issues and feature requests at https://github.com/bitnami/containers/issues
moodle 12:21:10.69 INFO  ==> Upgrade to Tanzu Application Catalog for production environments to access custom-configured and pre-packaged software components. Gain enhanced features, including Software Bill of Materials (SBOM), CVE scan result reports, and VEX documents. To learn more, visit https://bitnami.com/enterprise
moodle 12:21:10.69 INFO  ==> 
moodle 12:21:10.69 INFO  ==> ** Starting Moodle setup **
moodle 12:21:10.71 DEBUG ==> Validating settings in APACHE_* environment variables
moodle 12:21:10.72 DEBUG ==> Copying files from /opt/bitnami/apache/conf.default to /opt/bitnami/apache/conf
realpath: /bitnami/apache/conf: No such file or directory
moodle 12:21:10.73 INFO  ==> Configuring Apache ServerTokens directive
moodle 12:21:10.74 DEBUG ==> Configuring ServerTokens Prod on file /opt/bitnami/apache/conf/httpd.conf
moodle 12:21:10.78 INFO  ==> Configuring PHP options
moodle 12:21:10.78 INFO  ==> Setting PHP expose_php option
moodle 12:21:10.79 INFO  ==> Setting PHP output_buffering option
moodle 12:21:10.82 INFO  ==> Validating settings in MYSQL_CLIENT_* env vars
moodle 12:21:10.82 INFO  ==> Validating settings in POSTGRESQL_CLIENT_* env vars
moodle 12:21:10.86 DEBUG ==> Validating settings in MOODLE_* environment variables...
moodle 12:21:10.92 INFO  ==> Ensuring Moodle directories exist
moodle 12:21:10.97 INFO  ==> Trying to connect to the database server
moodle 12:21:10.98 DEBUG ==> Executing SQL command:
SELECT 1
/opt/bitnami/mysql/bin/mysql: Deprecated program name. It will be removed in a future release, use '/opt/bitnami/mysql/bin/mariadb' instead
1
moodle 12:21:11.04 INFO  ==> Running Moodle install script
!!! Error reading from database !!!
debian@debian:~$ 

@javsalgar
Copy link
Contributor

Hi,

It seems that you are using docker library/mariadb image. I'm afraid we cannot guarantee support with non-bitnami images. Could you try with bitnami/mariadb?

@longester
Copy link
Author

longester commented Jun 10, 2024

moodle 22:57:06.07 INFO  ==> 
moodle 22:57:06.08 INFO  ==> Welcome to the Bitnami moodle container
moodle 22:57:06.08 INFO  ==> Subscribe to project updates by watching https://github.com/bitnami/containers
moodle 22:57:06.08 INFO  ==> Submit issues and feature requests at https://github.com/bitnami/containers/issues
moodle 22:57:06.08 INFO  ==> Upgrade to Tanzu Application Catalog for production environments to access custom-configured and pre-packaged software components. Gain enhanced features, including Software Bill of Materials (SBOM), CVE scan result reports, and VEX documents. To learn more, visit https://bitnami.com/enterprise
moodle 22:57:06.08 INFO  ==> 
moodle 22:57:06.08 INFO  ==> ** Starting Moodle setup **
moodle 22:57:06.10 DEBUG ==> Validating settings in APACHE_* environment variables
moodle 22:57:06.11 DEBUG ==> Copying files from /opt/bitnami/apache/conf.default to /opt/bitnami/apache/conf
moodle 22:57:06.12 INFO  ==> Generating sample certificates
Certificate request self-signature ok
subject=CN = example.com
realpath: /bitnami/apache/conf: No such file or directory
moodle 22:57:09.56 INFO  ==> Configuring Apache ServerTokens directive
moodle 22:57:09.56 DEBUG ==> Configuring ServerTokens Prod on file /opt/bitnami/apache/conf/httpd.conf
moodle 22:57:09.59 INFO  ==> Configuring PHP options
moodle 22:57:09.60 INFO  ==> Setting PHP expose_php option
moodle 22:57:09.61 INFO  ==> Setting PHP output_buffering option
moodle 22:57:09.63 INFO  ==> Validating settings in MYSQL_CLIENT_* env vars
moodle 22:57:09.64 INFO  ==> Validating settings in POSTGRESQL_CLIENT_* env vars
moodle 22:57:09.68 DEBUG ==> Validating settings in MOODLE_* environment variables...
moodle 22:57:09.68 WARN  ==> You set the environment variable ALLOW_EMPTY_PASSWORD=yes. For safety reasons, do not use this flag in a production environment.
moodle 22:57:09.74 INFO  ==> Ensuring Moodle directories exist
moodle 22:57:09.77 INFO  ==> Trying to connect to the database server
moodle 22:57:09.77 DEBUG ==> Executing SQL command:
SELECT 1
/opt/bitnami/mysql/bin/mysql: Deprecated program name. It will be removed in a future release, use '/opt/bitnami/mysql/bin/mariadb' instead
ERROR 2005 (HY000): Unknown server host 'mariadb' (-5)
moodle 22:57:14.79 DEBUG ==> Executing SQL command:
SELECT 1
/opt/bitnami/mysql/bin/mysql: Deprecated program name. It will be removed in a future release, use '/opt/bitnami/mysql/bin/mariadb' instead
ERROR 2005 (HY000): Unknown server host 'mariadb' (-5)
moodle 22:57:19.82 DEBUG ==> Executing SQL command:
SELECT 1
/opt/bitnami/mysql/bin/mysql: Deprecated program name. It will be removed in a future release, use '/opt/bitnami/mysql/bin/mariadb' instead
ERROR 2005 (HY000): Unknown server host 'mariadb' (-5)
moodle 22:57:24.84 DEBUG ==> Executing SQL command:
SELECT 1
/opt/bitnami/mysql/bin/mysql: Deprecated program name. It will be removed in a future release, use '/opt/bitnami/mysql/bin/mariadb' instead
ERROR 2005 (HY000): Unknown server host 'mariadb' (-5)
moodle 22:57:29.87 DEBUG ==> Executing SQL command:
SELECT 1
/opt/bitnami/mysql/bin/mysql: Deprecated program name. It will be removed in a future release, use '/opt/bitnami/mysql/bin/mariadb' instead
ERROR 2005 (HY000): Unknown server host 'mariadb' (-5)
moodle 22:57:34.90 DEBUG ==> Executing SQL command:
SELECT 1
/opt/bitnami/mysql/bin/mysql: Deprecated program name. It will be removed in a future release, use '/opt/bitnami/mysql/bin/mariadb' instead
ERROR 2005 (HY000): Unknown server host 'mariadb' (-5)
debian@debian:~$ 

@javsalgar
Copy link
Contributor

It seems there is a networking issue in your docker-compose configuration, as it is unable to resolve the host mariadb.

@longester
Copy link
Author

longester commented Jun 13, 2024

direct use docker run --name moodle bitnami/moodle:latest

$ docker run --name moodle bitnami/moodle:latest
Unable to find image 'bitnami/moodle:latest' locally
latest: Pulling from bitnami/moodle
20cc929570e9: Pull complete 
Digest: sha256:d7a0fabf3ed9efd5d46d23c6ae7878a72fa83bcf5b1f45b80b05695b5cc40366
Status: Downloaded newer image for bitnami/moodle:latest
moodle 15:58:38.02 INFO  ==> 
moodle 15:58:38.02 INFO  ==> Welcome to the Bitnami moodle container
moodle 15:58:38.03 INFO  ==> Subscribe to project updates by watching https://github.com/bitnami/containers
moodle 15:58:38.03 INFO  ==> Submit issues and feature requests at https://github.com/bitnami/containers/issues
moodle 15:58:38.03 INFO  ==> Upgrade to Tanzu Application Catalog for production environments to access custom-configured and pre-packaged software components. Gain enhanced features, including Software Bill of Materials (SBOM), CVE scan result reports, and VEX documents. To learn more, visit https://bitnami.com/enterprise
moodle 15:58:38.03 INFO  ==> 
moodle 15:58:38.04 INFO  ==> ** Starting Moodle setup **
moodle 15:58:38.09 INFO  ==> Generating sample certificates
Certificate request self-signature ok
subject=CN = example.com
realpath: /bitnami/apache/conf: No such file or directory
moodle 15:58:41.71 INFO  ==> Configuring Apache ServerTokens directive
moodle 15:58:41.76 INFO  ==> Configuring PHP options
moodle 15:58:41.77 INFO  ==> Setting PHP expose_php option
moodle 15:58:41.79 INFO  ==> Setting PHP output_buffering option
moodle 15:58:41.82 INFO  ==> Validating settings in MYSQL_CLIENT_* env vars
moodle 15:58:41.83 INFO  ==> Validating settings in POSTGRESQL_CLIENT_* env vars
moodle 15:58:41.88 ERROR ==> The MOODLE_DATABASE_PASSWORD environment variable is empty or not set. Set the environment variable ALLOW_EMPTY_PASSWORD=yes to allow a blank password. This is only recommended for development environments.

$ docker rm moodle
moodle

$ docker run -d --name moodle \
  -p 8080:8080 \
  -p 8443:8443 \
  -e MOODLE_DATABASE_HOST=mariadb \
  -e MOODLE_DATABASE_PORT_NUMBER=3306 \
  -e MOODLE_DATABASE_USER=moodle \
  -e MOODLE_DATABASE_PASSWORD=moodlepassword \
  -e MOODLE_DATABASE_NAME=moodledb \
  --network moodle-network \
  --volume moodle_data:/bitnami/moodle \
  bitnami/moodle:latest
7465a7d7bc8e094727aabe499747275c231c6a8f8c70886c38aa0ea353f895be

$ docker logs moodle
moodle 16:00:56.63 INFO  ==> 
moodle 16:00:56.64 INFO  ==> Welcome to the Bitnami moodle container
moodle 16:00:56.64 INFO  ==> Subscribe to project updates by watching https://github.com/bitnami/containers
moodle 16:00:56.64 INFO  ==> Submit issues and feature requests at https://github.com/bitnami/containers/issues
moodle 16:00:56.64 INFO  ==> Upgrade to Tanzu Application Catalog for production environments to access custom-configured and pre-packaged software components. Gain enhanced features, including Software Bill of Materials (SBOM), CVE scan result reports, and VEX documents. To learn more, visit https://bitnami.com/enterprise
moodle 16:00:56.65 INFO  ==> 
moodle 16:00:56.65 INFO  ==> ** Starting Moodle setup **
moodle 16:00:56.69 INFO  ==> Generating sample certificates
Certificate request self-signature ok
subject=CN = example.com
realpath: /bitnami/apache/conf: No such file or directory
moodle 16:01:00.54 INFO  ==> Configuring Apache ServerTokens directive
moodle 16:01:00.58 INFO  ==> Configuring PHP options
moodle 16:01:00.59 INFO  ==> Setting PHP expose_php option
moodle 16:01:00.61 INFO  ==> Setting PHP output_buffering option
moodle 16:01:00.65 INFO  ==> Validating settings in MYSQL_CLIENT_* env vars
moodle 16:01:00.66 INFO  ==> Validating settings in POSTGRESQL_CLIENT_* env vars
moodle 16:01:00.81 INFO  ==> Ensuring Moodle directories exist
moodle 16:01:00.85 INFO  ==> Trying to connect to the database server

Copy link

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

@github-actions github-actions bot added the stale 15 days without activity label Jun 30, 2024
Copy link

github-actions bot commented Jul 6, 2024

Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.

@github-actions github-actions bot added the solved label Jul 6, 2024
@bitnami-bot bitnami-bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
moodle solved stale 15 days without activity tech-issues The user has a technical issue about an application triage Triage is needed
Projects
None yet
Development

No branches or pull requests

3 participants