solidnerd/docker-bookstack

New Installation: An unknown error occurred

Closed this issue · 2 comments

HJF9w commented

Using the example "docker-compose.yml" in this repo, only changing the app URL to APP_URL=http://localhost:8080.
The Containers starts without an error.
But when trying to access the website is split in half, with the message An Error Occurred An unknown error occurred Return to home

Clicking on "return to home" only reloads the page.

  • Host is fedora workstation.
  • Docker version 20.10.23
  • Bookstack 23.6.2

Let me know if you need more info.
Thanks!

Screenshot 2023-07-19 at 17-36-12 BookStack

Creating volume "docker-bookstack_mysql-data" with default driver
Creating volume "docker-bookstack_uploads" with default driver
Creating volume "docker-bookstack_storage-uploads" with default driver
Creating docker-bookstack_mysql_1 ... done
Creating docker-bookstack_bookstack_1 ... done
Attaching to docker-bookstack_mysql_1, docker-bookstack_bookstack_1
bookstack_1  | wait-for-db: waiting for mysql:3306
mysql_1      | 2023-07-19 15:29:56+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.33-1.el8 started.
mysql_1      | 2023-07-19 15:29:56+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
mysql_1      | 2023-07-19 15:29:56+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.33-1.el8 started.
mysql_1      | 2023-07-19 15:29:56+00:00 [Note] [Entrypoint]: Initializing database files
mysql_1      | 2023-07-19T15:29:56.571908Z 0 [Warning] [MY-010139] [Server] Changed limits: max_open_files: 1024 (requested 8161)
mysql_1      | 2023-07-19T15:29:56.571916Z 0 [Warning] [MY-010142] [Server] Changed limits: table_open_cache: 431 (requested 4000)
mysql_1      | 2023-07-19T15:29:56.573686Z 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.
mysql_1      | 2023-07-19T15:29:56.573771Z 0 [System] [MY-013169] [Server] /usr/sbin/mysqld (mysqld 8.0.33) initializing of server in progress as process 80
mysql_1      | 2023-07-19T15:29:56.587199Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
mysql_1      | 2023-07-19T15:29:57.247590Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
mysql_1      | 2023-07-19T15:29:59.057843Z 6 [Warning] [MY-010453] [Server] root@localhost is created with an empty password ! Please consider switching off the --initialize-insecure option.
mysql_1      | 2023-07-19 15:30:03+00:00 [Note] [Entrypoint]: Database files initialized
mysql_1      | 2023-07-19 15:30:03+00:00 [Note] [Entrypoint]: Starting temporary server
mysql_1      | 2023-07-19T15:30:03.765372Z 0 [Warning] [MY-010139] [Server] Changed limits: max_open_files: 1024 (requested 8161)
mysql_1      | 2023-07-19T15:30:03.765382Z 0 [Warning] [MY-010142] [Server] Changed limits: table_open_cache: 431 (requested 4000)
mysql_1      | 2023-07-19T15:30:03.984714Z 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.
mysql_1      | 2023-07-19T15:30:03.986129Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.33) starting as process 124
mysql_1      | 2023-07-19T15:30:04.006604Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
mysql_1      | 2023-07-19T15:30:04.148495Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
mysql_1      | 2023-07-19T15:30:04.475876Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
mysql_1      | 2023-07-19T15:30:04.475904Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
mysql_1      | 2023-07-19T15:30:04.479169Z 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.
mysql_1      | 2023-07-19T15:30:04.499949Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.0.33'  socket: '/var/run/mysqld/mysqld.sock'  port: 0  MySQL Community Server - GPL.
mysql_1      | 2023-07-19T15:30:04.499980Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Socket: /var/run/mysqld/mysqlx.sock
mysql_1      | 2023-07-19 15:30:04+00:00 [Note] [Entrypoint]: Temporary server started.
mysql_1      | '/var/lib/mysql/mysql.sock' -> '/var/run/mysqld/mysqld.sock'
mysql_1      | Warning: Unable to load '/usr/share/zoneinfo/iso3166.tab' as time zone. Skipping it.
mysql_1      | Warning: Unable to load '/usr/share/zoneinfo/leap-seconds.list' as time zone. Skipping it.
mysql_1      | Warning: Unable to load '/usr/share/zoneinfo/leapseconds' as time zone. Skipping it.
mysql_1      | Warning: Unable to load '/usr/share/zoneinfo/tzdata.zi' as time zone. Skipping it.
mysql_1      | Warning: Unable to load '/usr/share/zoneinfo/zone.tab' as time zone. Skipping it.
mysql_1      | Warning: Unable to load '/usr/share/zoneinfo/zone1970.tab' as time zone. Skipping it.
mysql_1      | 2023-07-19 15:30:05+00:00 [Note] [Entrypoint]: Creating database bookstack
mysql_1      | 2023-07-19 15:30:05+00:00 [Note] [Entrypoint]: Creating user bookstack
mysql_1      | 2023-07-19 15:30:05+00:00 [Note] [Entrypoint]: Giving user bookstack access to schema bookstack
mysql_1      |
mysql_1      | 2023-07-19 15:30:05+00:00 [Note] [Entrypoint]: Stopping temporary server
mysql_1      | 2023-07-19T15:30:05.952441Z 13 [System] [MY-013172] [Server] Received SHUTDOWN from user root. Shutting down mysqld (Version: 8.0.33).
mysql_1      | 2023-07-19T15:30:07.550620Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.33)  MySQL Community Server - GPL.
mysql_1      | 2023-07-19 15:30:07+00:00 [Note] [Entrypoint]: Temporary server stopped
mysql_1      |
mysql_1      | 2023-07-19 15:30:07+00:00 [Note] [Entrypoint]: MySQL init process done. Ready for start up.
mysql_1      |
mysql_1      | 2023-07-19T15:30:07.974458Z 0 [Warning] [MY-010139] [Server] Changed limits: max_open_files: 1024 (requested 8161)
mysql_1      | 2023-07-19T15:30:07.974465Z 0 [Warning] [MY-010142] [Server] Changed limits: table_open_cache: 431 (requested 4000)
mysql_1      | 2023-07-19T15:30:08.189649Z 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.
mysql_1      | 2023-07-19T15:30:08.191093Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.33) starting as process 1
mysql_1      | 2023-07-19T15:30:08.204197Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
mysql_1      | 2023-07-19T15:30:08.345725Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
mysql_1      | 2023-07-19T15:30:08.598058Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
mysql_1      | 2023-07-19T15:30:08.598107Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
mysql_1      | 2023-07-19T15:30:08.602098Z 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.
mysql_1      | 2023-07-19T15:30:08.625945Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /var/run/mysqld/mysqlx.sock
mysql_1      | 2023-07-19T15:30:08.625957Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.0.33'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  MySQL Community Server - GPL.
bookstack_1  | wait-for-db: done
bookstack_1  | Generating Key...
bookstack_1  | base64:9gJmY3GA+7aKcFukgJbYbL3RNDpUVexOxdR+xrYPQ5I=
bookstack_1  | Starting Migration...
bookstack_1  |
bookstack_1  |    INFO  Preparing database.
bookstack_1  |
bookstack_1  |   Creating migration table ......................................... 47ms DONE
bookstack_1  |
bookstack_1  |    INFO  Running migrations.
bookstack_1  |
bookstack_1  |   2014_10_12_000000_create_users_table ............................ 165ms DONE
bookstack_1  |   2014_10_12_100000_create_password_resets_table .................. 106ms DONE
bookstack_1  |   2015_07_12_114933_create_books_table ............................. 39ms DONE
bookstack_1  |   2015_07_12_190027_create_pages_table ............................. 41ms DONE
bookstack_1  |   2015_07_13_172121_create_images_table ............................ 41ms DONE
bookstack_1  |   2015_07_27_172342_create_chapters_table .......................... 39ms DONE
bookstack_1  |   2015_08_08_200447_add_users_to_entities ......................... 126ms DONE
bookstack_1  |   2015_08_09_093534_create_page_revisions_table .................... 37ms DONE
bookstack_1  |   2015_08_16_142133_create_activities_table ........................ 41ms DONE
bookstack_1  |   2015_08_29_105422_add_roles_and_permissions ................... 1,087ms DONE
bookstack_1  |   2015_08_30_125859_create_settings_table ......................... 116ms DONE
bookstack_1  |   2015_08_31_175240_add_search_indexes .............................. 0ms DONE
bookstack_1  |   2015_09_04_165821_create_social_accounts_table .................. 113ms DONE
bookstack_1  |   2015_09_05_164707_add_email_confirmation_table .................. 138ms DONE
bookstack_1  |   2015_11_21_145609_create_views_table ............................. 42ms DONE
bookstack_1  |   2015_11_26_221857_add_entity_indexes ............................ 725ms DONE
bookstack_1  |   2015_12_05_145049_fulltext_weighting .............................. 0ms DONE
bookstack_1  |   2015_12_07_195238_add_image_upload_types ......................... 89ms DONE
bookstack_1  |   2015_12_09_195748_add_user_avatars ............................... 33ms DONE
bookstack_1  |   2016_01_11_210908_add_external_auth_to_users ..................... 86ms DONE
bookstack_1  |   2016_02_25_184030_add_slug_to_revisions ......................... 102ms DONE
bookstack_1  |   2016_02_27_120329_update_permissions_and_roles .................. 559ms DONE
bookstack_1  |   2016_02_28_084200_add_entity_access_controls .................... 442ms DONE
bookstack_1  |   2016_03_09_203143_add_page_revision_types ........................ 84ms DONE
bookstack_1  |   2016_03_13_082138_add_page_drafts ................................ 69ms DONE
bookstack_1  |   2016_03_25_123157_add_markdown_support ........................... 78ms DONE
bookstack_1  |   2016_04_09_100730_add_view_permissions_to_roles ................. 168ms DONE
bookstack_1  |   2016_04_20_192649_create_joint_permissions_table ................ 510ms DONE
bookstack_1  |   2016_05_06_185215_create_tags_table ............................. 188ms DONE
bookstack_1  |   2016_07_07_181521_add_summary_to_page_revisions .................. 45ms DONE
bookstack_1  |   2016_09_29_101449_remove_hidden_roles ........................... 252ms DONE
bookstack_1  |   2016_10_09_142037_create_attachments_table ...................... 173ms DONE
bookstack_1  |   2017_01_21_163556_create_cache_table ............................ 128ms DONE
bookstack_1  |   2017_01_21_163602_create_sessions_table ......................... 131ms DONE
bookstack_1  |   2017_03_19_091553_create_search_index_table ..................... 290ms DONE
bookstack_1  |   2017_04_20_185112_add_revision_counts ........................... 121ms DONE
bookstack_1  |   2017_07_02_152834_update_db_encoding_to_ut8mb4 .................... 0ms DONE
bookstack_1  |   2017_08_01_130541_create_comments_table ......................... 195ms DONE
bookstack_1  |   2017_08_29_102650_add_cover_image_display ........................ 45ms DONE
bookstack_1  |   2018_07_15_173514_add_role_external_auth_id ...................... 89ms DONE
bookstack_1  |   2018_08_04_115700_create_bookshelves_table .................... 1,108ms DONE
bookstack_1  |   2019_07_07_112515_add_template_support .......................... 101ms DONE
bookstack_1  |   2019_08_17_140214_add_user_invites_table ........................ 127ms DONE
bookstack_1  |   2019_12_29_120917_add_api_auth .................................. 165ms DONE
bookstack_1  |   2020_08_04_111754_drop_joint_permissions_id ..................... 273ms DONE
bookstack_1  |   2020_08_04_131052_remove_role_name_field ........................ 118ms DONE
bookstack_1  |   2020_09_19_094251_add_activity_indexes ........................... 77ms DONE
bookstack_1  |   2020_09_27_210059_add_entity_soft_deletes ....................... 162ms DONE
bookstack_1  |   2020_09_27_210528_create_deletions_table ........................ 149ms DONE
bookstack_1  |   2020_11_07_232321_simplify_activities_table ..................... 352ms DONE
bookstack_1  |   2020_12_30_173528_add_owned_by_field_to_entities ................ 347ms DONE
bookstack_1  |   2021_01_30_225441_add_settings_type_column ....................... 39ms DONE
bookstack_1  |   2021_03_08_215138_add_user_slug ................................. 106ms DONE
bookstack_1  |   2021_05_15_173110_create_favourites_table ....................... 110ms DONE
bookstack_1  |   2021_06_30_173111_create_mfa_values_table ....................... 116ms DONE
bookstack_1  |   2021_07_03_085038_add_mfa_enforced_to_roles_table ................ 43ms DONE
bookstack_1  |   2021_08_28_161743_add_export_role_permission ..................... 15ms DONE
bookstack_1  |   2021_09_26_044614_add_activities_ip_column ....................... 34ms DONE
bookstack_1  |   2021_11_26_070438_add_index_for_user_ip .......................... 46ms DONE
bookstack_1  |   2021_12_07_111343_create_webhooks_table ......................... 223ms DONE
bookstack_1  |   2021_12_13_152024_create_jobs_table .............................. 80ms DONE
bookstack_1  |   2021_12_13_152120_create_failed_jobs_table ....................... 80ms DONE
bookstack_1  |   2022_01_03_154041_add_webhooks_timeout_error_columns ............. 36ms DONE
bookstack_1  |   2022_04_17_101741_add_editor_change_field_and_permission ......... 71ms DONE
bookstack_1  |   2022_04_25_140741_update_polymorphic_types ....................... 11ms DONE
bookstack_1  |   2022_07_16_170051_drop_joint_permission_type .................... 393ms DONE
bookstack_1  |   2022_08_17_092941_create_references_table ....................... 183ms DONE
bookstack_1  |   2022_09_02_082910_fix_shelf_cover_image_types ..................... 1ms DONE
bookstack_1  |   2022_10_07_091406_flatten_entity_permissions_table .............. 163ms DONE
bookstack_1  |   2022_10_08_104202_drop_entity_restricted_field .................. 506ms DONE
bookstack_1  |   2023_01_24_104625_refactor_joint_permissions_storage ............ 391ms DONE
bookstack_1  |   2023_01_28_141230_copy_color_settings_for_dark_mode ............... 1ms DONE
bookstack_1  |   2023_02_20_093655_increase_attachments_path_length ............... 98ms DONE
bookstack_1  |   2023_02_23_200227_add_updated_at_index_to_pages .................. 43ms DONE
bookstack_1  |   2023_06_10_071823_remove_guest_user_secondary_roles ............... 2ms DONE
bookstack_1  |   2023_06_25_181952_remove_bookshelf_create_entity_permissions ...... 0ms DONE
bookstack_1  |
bookstack_1  | Clearing caches...
bookstack_1  |
bookstack_1  |    INFO  Application cache cleared successfully.
bookstack_1  |
bookstack_1  |
bookstack_1  |    INFO  Compiled views cleared successfully.
bookstack_1  |
bookstack_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
bookstack_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
bookstack_1  | [Wed Jul 19 15:30:23.550657 2023] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.57 (Debian) PHP/8.2.8 configured -- resuming normal operations
bookstack_1  | [Wed Jul 19 15:30:23.550686 2023] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND'
bookstack_1  | bookstack:80 172.18.0.1 - - [19/Jul/2023:15:32:04 +0000] "GET / HTTP/1.1" 500 15312 "http://localhost:8080/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/113.0"
bookstack_1  | bookstack:80 172.18.0.1 - - [19/Jul/2023:15:32:04 +0000] "GET /dist/styles.css?version=v23.06.2 HTTP/1.1" 200 22989 "http://localhost:8080/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/113.0"
bookstack_1  | bookstack:80 172.18.0.1 - - [19/Jul/2023:15:32:04 +0000] "GET /logo.png HTTP/1.1" 200 5701 "http://localhost:8080/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/113.0"
bookstack_1  | bookstack:80 172.18.0.1 - - [19/Jul/2023:15:32:04 +0000] "GET /dist/app.js?version=v23.06.2 HTTP/1.1" 200 92694 "http://localhost:8080/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/113.0"
bookstack_1  | bookstack:80 172.18.0.1 - - [19/Jul/2023:15:32:04 +0000] "GET /dist/print-styles.css?version=v23.06.2 HTTP/1.1" 200 1238 "http://localhost:8080/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/113.0"
bookstack_1  | bookstack:80 172.18.0.1 - - [19/Jul/2023:15:32:04 +0000] "GET /dist/app.js?version=v23.06.2 HTTP/1.1" 200 92693 "http://localhost:8080/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/113.0"

Have you worked through the Bookstack Troubleshooting steps? This sounds more like an issue from Bookstack itself, rather than with the container that wraps it.

HJF9w commented

So in the README it is correct that the APP_KEY is SomeRandomStringWith32Characters but in the docker-compose.yml and docker-compose.test.yml it is just SomeRandomString which causes the above problems.
The hint to use php artisan key:generate to generate a valid key causes an Unable to set application key. No APP_KEY variable was found in the .env file..

So if APP_KEY is set correctly to a string with 32 characters, it works.
Thank you!