You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error:
Following the steps to build y own server results in an error:
sharenote-app-1 | /usr/local/bin/docker-entrypoint.sh: 5: cannot open /var/www/html/api/env.cfg.docker: No such file
Solution:
In the docker-compose.yml you need to add a mounting point to the api folder:
volumes:
- ./api:/var/www/html/api
- notes:/var/www/html/public/notes
Complete output with the error:
❯ docker-compose up
[+] Running 2/0
⠿ Container sharenote-db-1 Created 0.0s
⠿ Container sharenote-app-1 Created 0.0s
Attaching to sharenote-app-1, sharenote-db-1
sharenote-db-1 | 2024-09-29 10:21:41+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.39-1.el9 started.
sharenote-db-1 | 2024-09-29 10:21:41+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
sharenote-db-1 | 2024-09-29 10:21:41+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.39-1.el9 started.
sharenote-app-1 | /usr/local/bin/docker-entrypoint.sh: 5: cannot open /var/www/html/api/env.cfg.docker: No such file
sharenote-db-1 | '/var/lib/mysql/mysql.sock' -> '/var/run/mysqld/mysqld.sock'
sharenote-app-1 exited with code 2
sharenote-db-1 | 2024-09-29T10:21:41.573783Z 0 [Warning] [MY-011068] [Server] The syntax '--skip-host-cache' is deprecated and will be removed in a future release. Please use SET GLOBAL host_cache_size=0 instead.
sharenote-db-1 | 2024-09-29T10:21:41.574648Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.39) starting as process 1
sharenote-db-1 | 2024-09-29T10:21:41.578568Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
sharenote-db-1 | 2024-09-29T10:21:41.722138Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
sharenote-db-1 | 2024-09-29T10:21:41.829748Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
sharenote-db-1 | 2024-09-29T10:21:41.829764Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
sharenote-db-1 | 2024-09-29T10:21:41.832539Z 0 [Warning] [MY-011810] [Server] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
sharenote-db-1 | 2024-09-29T10:21:41.843242Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.0.39' socket: '/var/run/mysqld/mysqld.sock' port: 3306 MySQL Community Server - GPL.
sharenote-db-1 | 2024-09-29T10:21:41.843238Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /var/run/mysqld/mysqlx.sock
The text was updated successfully, but these errors were encountered:
Error:
Following the steps to build y own server results in an error:
sharenote-app-1 | /usr/local/bin/docker-entrypoint.sh: 5: cannot open /var/www/html/api/env.cfg.docker: No such file
Solution:
In the docker-compose.yml you need to add a mounting point to the api folder:
volumes:
- ./api:/var/www/html/api
- notes:/var/www/html/public/notes
Complete output with the error:
❯ docker-compose up
[+] Running 2/0
⠿ Container sharenote-db-1 Created 0.0s
⠿ Container sharenote-app-1 Created 0.0s
Attaching to sharenote-app-1, sharenote-db-1
sharenote-db-1 | 2024-09-29 10:21:41+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.39-1.el9 started.
sharenote-db-1 | 2024-09-29 10:21:41+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
sharenote-db-1 | 2024-09-29 10:21:41+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.39-1.el9 started.
sharenote-app-1 | /usr/local/bin/docker-entrypoint.sh: 5: cannot open /var/www/html/api/env.cfg.docker: No such file
sharenote-db-1 | '/var/lib/mysql/mysql.sock' -> '/var/run/mysqld/mysqld.sock'
sharenote-app-1 exited with code 2
sharenote-db-1 | 2024-09-29T10:21:41.573783Z 0 [Warning] [MY-011068] [Server] The syntax '--skip-host-cache' is deprecated and will be removed in a future release. Please use SET GLOBAL host_cache_size=0 instead.
sharenote-db-1 | 2024-09-29T10:21:41.574648Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.39) starting as process 1
sharenote-db-1 | 2024-09-29T10:21:41.578568Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
sharenote-db-1 | 2024-09-29T10:21:41.722138Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
sharenote-db-1 | 2024-09-29T10:21:41.829748Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
sharenote-db-1 | 2024-09-29T10:21:41.829764Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
sharenote-db-1 | 2024-09-29T10:21:41.832539Z 0 [Warning] [MY-011810] [Server] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
sharenote-db-1 | 2024-09-29T10:21:41.843242Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.0.39' socket: '/var/run/mysqld/mysqld.sock' port: 3306 MySQL Community Server - GPL.
sharenote-db-1 | 2024-09-29T10:21:41.843238Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /var/run/mysqld/mysqlx.sock
The text was updated successfully, but these errors were encountered: