linuxserver / docker-bookstack

A Docker container for the BookStack documentation wiki
GNU General Public License v3.0
793 stars 109 forks source link

[BUG] An Error Occurred - An unknown error occurred #236

Closed lucasplcorrea closed 6 days ago

lucasplcorrea commented 6 days ago

Is there an existing issue for this?

Current Behavior

A while ago I uploaded a bookstack docker container and everything worked fine, but I needed to run docker-compose again and I can't get it to work anymore.

Among all the errors I faced and managed to fix, the last one I was unsuccessful in was a 500 error at the end of the installation, only a message is displayed:

" An Error Occurred An unknown error occurred Return to home "

In my browser console I get:

GET http://192.168.222.108:6875/login 500 (Internal Server Error)

The app and db logs don't show me much:

app:

2024-10-17 12:31:29 [migrations] started
2024-10-17 12:31:29 [migrations] 01-nginx-site-confs-default: skipped
2024-10-17 12:31:29 [migrations] 02-default-location: skipped
2024-10-17 12:31:29 [migrations] done
2024-10-17 12:31:29 ───────────────────────────────────────
2024-10-17 12:31:29 
2024-10-17 12:31:29       ██╗     ███████╗██╗ ██████╗
2024-10-17 12:31:29       ██║     ██╔════╝██║██╔═══██╗
2024-10-17 12:31:29       ██║     ███████╗██║██║   ██║
2024-10-17 12:31:29       ██║     ╚════██║██║██║   ██║
2024-10-17 12:31:29       ███████╗███████║██║╚██████╔╝
2024-10-17 12:31:29       ╚══════╝╚══════╝╚═╝ ╚═════╝
2024-10-17 12:31:29 
2024-10-17 12:31:29    Brought to you by linuxserver.io
2024-10-17 12:31:29 ───────────────────────────────────────
2024-10-17 12:31:29 
2024-10-17 12:31:29 To support LSIO projects visit:
2024-10-17 12:31:29 https://www.linuxserver.io/donate/
2024-10-17 12:31:29 
2024-10-17 12:31:29 ───────────────────────────────────────
2024-10-17 12:31:29 GID/UID
2024-10-17 12:31:29 ───────────────────────────────────────
2024-10-17 12:31:29 
2024-10-17 12:31:29 User UID:    1000
2024-10-17 12:31:29 User GID:    1000
2024-10-17 12:31:29 ───────────────────────────────────────
2024-10-17 12:31:29 Linuxserver.io version: v24.10-ls169
2024-10-17 12:31:29 Build-date: 2024-10-14T15:22:13+00:00
2024-10-17 12:31:29 ───────────────────────────────────────
2024-10-17 12:31:29     
2024-10-17 12:31:29 using keys found in /config/keys
2024-10-17 12:31:29 Waiting for DB to be available
2024-10-17 12:31:40 
2024-10-17 12:31:40    INFO  Preparing database.  
2024-10-17 12:31:40 
2024-10-17 12:31:40   Creating migration table ......................................... 20ms DONE
2024-10-17 12:31:40 
2024-10-17 12:31:40    INFO  Running migrations.  
2024-10-17 12:31:40 
2024-10-17 12:31:40   2014_10_12_000000_create_users_table ............................ 288ms DONE
2024-10-17 12:31:40   2014_10_12_100000_create_password_resets_table ................... 49ms DONE
2024-10-17 12:31:41   2015_07_12_114933_create_books_table ............................. 11ms DONE
2024-10-17 12:31:41   2015_07_12_190027_create_pages_table ............................. 12ms DONE
2024-10-17 12:31:41   2015_07_13_172121_create_images_table ............................ 10ms DONE
2024-10-17 12:31:41   2015_07_27_172342_create_chapters_table .......................... 12ms DONE
2024-10-17 12:31:41   2015_08_08_200447_add_users_to_entities .......................... 62ms DONE
2024-10-17 12:31:41   2015_08_09_093534_create_page_revisions_table .................... 10ms DONE
2024-10-17 12:31:41   2015_08_16_142133_create_activities_table ........................ 12ms DONE
2024-10-17 12:31:41   2015_08_29_105422_add_roles_and_permissions ..................... 328ms DONE
2024-10-17 12:31:41   2015_08_30_125859_create_settings_table .......................... 11ms DONE
2024-10-17 12:31:41   2015_08_31_175240_add_search_indexes .............................. 0ms DONE
2024-10-17 12:31:41   2015_09_04_165821_create_social_accounts_table ................... 50ms DONE
2024-10-17 12:31:41   2015_09_05_164707_add_email_confirmation_table ................... 65ms DONE
2024-10-17 12:31:41   2015_11_21_145609_create_views_table ............................. 10ms DONE
2024-10-17 12:31:42   2015_11_26_221857_add_entity_indexes ............................ 511ms DONE
2024-10-17 12:31:42   2015_12_05_145049_fulltext_weighting .............................. 0ms DONE
2024-10-17 12:31:42   2015_12_07_195238_add_image_upload_types ......................... 55ms DONE
2024-10-17 12:31:42   2015_12_09_195748_add_user_avatars ............................... 24ms DONE
2024-10-17 12:31:42   2016_01_11_210908_add_external_auth_to_users ..................... 48ms DONE
2024-10-17 12:31:42   2016_02_25_184030_add_slug_to_revisions .......................... 59ms DONE
2024-10-17 12:31:42   2016_02_27_120329_update_permissions_and_roles .................. 151ms DONE
2024-10-17 12:31:42   2016_02_28_084200_add_entity_access_controls .................... 226ms DONE
2024-10-17 12:31:42   2016_03_09_203143_add_page_revision_types ........................ 34ms DONE
2024-10-17 12:31:42   2016_03_13_082138_add_page_drafts ................................ 36ms DONE
2024-10-17 12:31:42   2016_03_25_123157_add_markdown_support ........................... 77ms DONE
2024-10-17 12:31:42   2016_04_09_100730_add_view_permissions_to_roles .................. 54ms DONE
2024-10-17 12:31:43   2016_04_20_192649_create_joint_permissions_table ................ 297ms DONE
2024-10-17 12:31:43   2016_05_06_185215_create_tags_table ............................. 101ms DONE
2024-10-17 12:31:43   2016_07_07_181521_add_summary_to_page_revisions .................. 32ms DONE
2024-10-17 12:31:43   2016_09_29_101449_remove_hidden_roles ............................ 62ms DONE
2024-10-17 12:31:43   2016_10_09_142037_create_attachments_table ...................... 130ms DONE
2024-10-17 12:31:43   2017_01_21_163556_create_cache_table ............................. 35ms DONE
2024-10-17 12:31:43   2017_01_21_163602_create_sessions_table .......................... 41ms DONE
2024-10-17 12:31:43   2017_03_19_091553_create_search_index_table ..................... 202ms DONE
2024-10-17 12:31:43   2017_04_20_185112_add_revision_counts ............................ 58ms DONE
2024-10-17 12:31:43   2017_07_02_152834_update_db_encoding_to_ut8mb4 .................... 0ms DONE
2024-10-17 12:31:43   2017_08_01_130541_create_comments_table .......................... 88ms DONE
2024-10-17 12:31:44   2017_08_29_102650_add_cover_image_display ........................ 17ms DONE
2024-10-17 12:31:44   2018_07_15_173514_add_role_external_auth_id ...................... 41ms DONE
2024-10-17 12:31:44   2018_08_04_115700_create_bookshelves_table ...................... 366ms DONE
2024-10-17 12:31:44   2019_07_07_112515_add_template_support ........................... 46ms DONE
2024-10-17 12:31:44   2019_08_17_140214_add_user_invites_table ......................... 55ms DONE
2024-10-17 12:31:44   2019_12_29_120917_add_api_auth ................................... 76ms DONE
2024-10-17 12:31:44   2020_08_04_111754_drop_joint_permissions_id ...................... 89ms DONE
2024-10-17 12:31:44   2020_08_04_131052_remove_role_name_field ......................... 18ms DONE
2024-10-17 12:31:44   2020_09_19_094251_add_activity_indexes ........................... 39ms DONE
2024-10-17 12:31:44   2020_09_27_210059_add_entity_soft_deletes ........................ 56ms DONE
2024-10-17 12:31:44   2020_09_27_210528_create_deletions_table ......................... 73ms DONE
2024-10-17 12:31:45   2020_11_07_232321_simplify_activities_table ..................... 121ms DONE
2024-10-17 12:31:45   2020_12_30_173528_add_owned_by_field_to_entities ................ 162ms DONE
2024-10-17 12:31:45   2021_01_30_225441_add_settings_type_column ....................... 14ms DONE
2024-10-17 12:31:45   2021_03_08_215138_add_user_slug .................................. 39ms DONE
2024-10-17 12:31:45   2021_05_15_173110_create_favourites_table ........................ 53ms DONE
2024-10-17 12:31:45   2021_06_30_173111_create_mfa_values_table ........................ 54ms DONE
2024-10-17 12:31:45   2021_07_03_085038_add_mfa_enforced_to_roles_table ................ 21ms DONE
2024-10-17 12:31:45   2021_08_28_161743_add_export_role_permission ...................... 9ms DONE
2024-10-17 12:31:45   2021_09_26_044614_add_activities_ip_column ....................... 17ms DONE
2024-10-17 12:31:45   2021_11_26_070438_add_index_for_user_ip .......................... 17ms DONE
2024-10-17 12:31:45   2021_12_07_111343_create_webhooks_table .......................... 99ms DONE
2024-10-17 12:31:45   2021_12_13_152024_create_jobs_table .............................. 29ms DONE
2024-10-17 12:31:45   2021_12_13_152120_create_failed_jobs_table ....................... 30ms DONE
2024-10-17 12:31:45   2022_01_03_154041_add_webhooks_timeout_error_columns ............. 14ms DONE
2024-10-17 12:31:45   2022_04_17_101741_add_editor_change_field_and_permission ......... 18ms DONE
2024-10-17 12:31:45   2022_04_25_140741_update_polymorphic_types ....................... 11ms DONE
2024-10-17 12:31:45   2022_07_16_170051_drop_joint_permission_type .................... 121ms DONE
2024-10-17 12:31:45   2022_08_17_092941_create_references_table ....................... 112ms DONE
2024-10-17 12:31:45   2022_09_02_082910_fix_shelf_cover_image_types ..................... 2ms DONE
2024-10-17 12:31:45   2022_10_07_091406_flatten_entity_permissions_table ............... 77ms DONE
2024-10-17 12:31:46   2022_10_08_104202_drop_entity_restricted_field ................... 80ms DONE
2024-10-17 12:31:46   2023_01_24_104625_refactor_joint_permissions_storage ............ 142ms DONE
2024-10-17 12:31:46   2023_01_28_141230_copy_color_settings_for_dark_mode ............... 2ms DONE
2024-10-17 12:31:46   2023_02_20_093655_increase_attachments_path_length ............... 37ms DONE
2024-10-17 12:31:46   2023_02_23_200227_add_updated_at_index_to_pages .................. 20ms DONE
2024-10-17 12:31:46   2023_06_10_071823_remove_guest_user_secondary_roles ............... 3ms DONE
2024-10-17 12:31:46   2023_06_25_181952_remove_bookshelf_create_entity_permissions ...... 0ms DONE
2024-10-17 12:31:46   2023_07_25_124945_add_receive_notifications_role_permissions ...... 4ms DONE
2024-10-17 12:31:46   2023_07_31_104430_create_watches_table .......................... 123ms DONE
2024-10-17 12:31:46   2023_08_21_174248_increase_cache_size ............................ 28ms DONE
2024-10-17 12:31:46   2023_12_02_104541_add_default_template_to_books .................. 17ms DONE
2024-10-17 12:31:46   2023_12_17_140913_add_description_html_to_entities ............... 53ms DONE
2024-10-17 12:31:46   2024_01_01_104542_add_default_template_to_chapters ............... 18ms DONE
2024-10-17 12:31:46   2024_02_04_141358_add_views_updated_index ........................ 22ms DONE
2024-10-17 12:31:46   2024_05_04_154409_rename_activity_relation_columns ............... 55ms DONE
2024-10-17 12:31:46   2024_09_29_140340_ensure_editor_value_set ......................... 3ms DONE
2024-10-17 12:31:46 
2024-10-17 12:31:46 [custom-init] No custom files found, skipping...
2024-10-17 12:31:46 *** Starting Async Action Queue ***
2024-10-17 12:31:46 [ls.io-init] done.

db:

2024-10-17 12:31:29 [migrations] started
2024-10-17 12:31:29 [migrations] no migrations found
2024-10-17 12:31:29 usermod: no changes
2024-10-17 12:31:29 ───────────────────────────────────────
2024-10-17 12:31:29 
2024-10-17 12:31:29       ██╗     ███████╗██╗ ██████╗
2024-10-17 12:31:29       ██║     ██╔════╝██║██╔═══██╗
2024-10-17 12:31:29       ██║     ███████╗██║██║   ██║
2024-10-17 12:31:29       ██║     ╚════██║██║██║   ██║
2024-10-17 12:31:29       ███████╗███████║██║╚██████╔╝
2024-10-17 12:31:29       ╚══════╝╚══════╝╚═╝ ╚═════╝
2024-10-17 12:31:29 
2024-10-17 12:31:29    Brought to you by linuxserver.io
2024-10-17 12:31:29 ───────────────────────────────────────
2024-10-17 12:31:29 
2024-10-17 12:31:29 To support LSIO projects visit:
2024-10-17 12:31:29 https://www.linuxserver.io/donate/
2024-10-17 12:31:29 
2024-10-17 12:31:29 ───────────────────────────────────────
2024-10-17 12:31:29 GID/UID
2024-10-17 12:31:29 ───────────────────────────────────────
2024-10-17 12:31:29 
2024-10-17 12:31:29 User UID:    911
2024-10-17 12:31:29 User GID:    911
2024-10-17 12:31:29 ───────────────────────────────────────
2024-10-17 12:31:29 Linuxserver.io version: 10.11.8-r0-ls160
2024-10-17 12:31:29 Build-date: 2024-10-15T17:27:11+00:00
2024-10-17 12:31:29 ───────────────────────────────────────
2024-10-17 12:31:29     
2024-10-17 12:31:29 Setting Up Initial Databases
2024-10-17 12:31:29 Installing MariaDB/MySQL system tables in '/config/databases' ...
2024-10-17 12:31:32 OK
2024-10-17 12:31:32 
2024-10-17 12:31:32 To start mariadbd at boot time you have to copy
2024-10-17 12:31:32 support-files/mariadb.service to the right place for your system
2024-10-17 12:31:32 
2024-10-17 12:31:32 
2024-10-17 12:31:32 PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER !
2024-10-17 12:31:32 To do so, start the server, then issue the following command:
2024-10-17 12:31:32 
2024-10-17 12:31:32 '/usr/bin/mariadb-secure-installation'
2024-10-17 12:31:32 
2024-10-17 12:31:32 which will also give you the option of removing the test
2024-10-17 12:31:32 databases and anonymous user created by default.  This is
2024-10-17 12:31:32 strongly recommended for production servers.
2024-10-17 12:31:32 
2024-10-17 12:31:32 See the MariaDB Knowledgebase at https://mariadb.com/kb
2024-10-17 12:31:32 
2024-10-17 12:31:32 You can start the MariaDB daemon with:
2024-10-17 12:31:32 cd '/usr' ; /usr/bin/mariadbd-safe --datadir='/config/databases'
2024-10-17 12:31:32 
2024-10-17 12:31:32 You can test the MariaDB daemon with mysql-test-run.pl
2024-10-17 12:31:32 cd '/usr/mysql-test' ; perl mariadb-test-run.pl
2024-10-17 12:31:32 
2024-10-17 12:31:32 Please report any problems at https://mariadb.org/jira
2024-10-17 12:31:32 
2024-10-17 12:31:32 The latest information about MariaDB is available at https://mariadb.org/.
2024-10-17 12:31:32 
2024-10-17 12:31:32 Consider joining MariaDB's strong and vibrant community:
2024-10-17 12:31:32 https://mariadb.org/get-involved/
2024-10-17 12:31:32 
2024-10-17 12:31:30 2024-10-17 15:31:30 0 [Warning] You need to use --log-bin to make --expire-logs-days or --binlog-expire-logs-seconds work.
2024-10-17 12:31:32 2024-10-17 15:31:32 0 [Note] Starting MariaDB 10.11.8-MariaDB-log source revision 3a069644682e336e445039e48baae9693f9a08ee as process 194
2024-10-17 12:31:32 2024-10-17 15:31:32 0 [Note] InnoDB: Compressed tables use zlib 1.3.1
2024-10-17 12:31:32 2024-10-17 15:31:32 0 [Note] InnoDB: Number of transaction pools: 1
2024-10-17 12:31:32 2024-10-17 15:31:32 0 [Note] InnoDB: Using AVX512 instructions
2024-10-17 12:31:32 2024-10-17 15:31:32 0 [Note] mariadbd: O_TMPFILE is not supported on /tmp (disabling future attempts)
2024-10-17 12:31:32 2024-10-17 15:31:32 0 [Note] InnoDB: Using Linux native AIO
2024-10-17 12:31:32 2024-10-17 15:31:32 0 [Note] InnoDB: Initializing buffer pool, total size = 256.000MiB, chunk size = 4.000MiB
2024-10-17 12:31:33 2024-10-17 15:31:33 0 [Note] InnoDB: Completed initialization of buffer pool
2024-10-17 12:31:33 2024-10-17 15:31:33 0 [Note] InnoDB: File system buffers for log disabled (block size=4096 bytes)
2024-10-17 12:31:33 2024-10-17 15:31:33 0 [Note] InnoDB: End of log at LSN=46980
2024-10-17 12:31:33 2024-10-17 15:31:33 0 [Note] InnoDB: 128 rollback segments are active.
2024-10-17 12:31:33 2024-10-17 15:31:33 0 [Note] InnoDB: Setting file './ibtmp1' size to 12.000MiB. Physically writing the file full; Please wait ...
2024-10-17 12:31:33 2024-10-17 15:31:33 0 [Note] InnoDB: File './ibtmp1' size is now 12.000MiB.
2024-10-17 12:31:33 2024-10-17 15:31:33 0 [Note] InnoDB: log sequence number 46980; transaction id 14
2024-10-17 12:31:33 2024-10-17 15:31:33 0 [Note] InnoDB: Loading buffer pool(s) from /config/databases/ib_buffer_pool
2024-10-17 12:31:33 2024-10-17 15:31:33 0 [Note] Plugin 'FEEDBACK' is disabled.
2024-10-17 12:31:33 2024-10-17 15:31:33 0 [Note] InnoDB: Buffer pool(s) load completed at 241017 15:31:33
2024-10-17 12:31:33 2024-10-17 15:31:33 0 [Note] Server socket created on IP: '0.0.0.0'.
2024-10-17 12:31:33 2024-10-17 15:31:33 0 [Note] Server socket created on IP: '::'.
2024-10-17 12:31:33 2024-10-17 15:31:33 0 [Note] mariadbd: ready for connections.
2024-10-17 12:31:33 Version: '10.11.8-MariaDB-log'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  Alpine Linux
2024-10-17 12:31:34 2024-10-17 15:31:34 5 [Warning] Aborted connection 5 to db: 'unconnected' user: 'unauthenticated' host: 'bookstacknovo-app-1.bookstacknovo_bookstack-network' (This connection closed normally without authentication)
2024-10-17 12:31:34 2024-10-17 15:31:34 0 [Note] mariadbd (initiated by: root[root] @ localhost []): Normal shutdown
2024-10-17 12:31:34 2024-10-17 15:31:34 0 [Note] InnoDB: FTS optimize thread exiting.
2024-10-17 12:31:34 2024-10-17 15:31:34 0 [Note] InnoDB: Starting shutdown...
2024-10-17 12:31:34 2024-10-17 15:31:34 0 [Note] InnoDB: Dumping buffer pool(s) to /config/databases/ib_buffer_pool
2024-10-17 12:31:34 2024-10-17 15:31:34 0 [Note] InnoDB: Buffer pool(s) dump completed at 241017 15:31:34
2024-10-17 12:31:35 2024-10-17 15:31:35 0 [Note] InnoDB: Removed temporary tablespace data file: "./ibtmp1"
2024-10-17 12:31:35 2024-10-17 15:31:35 0 [Note] InnoDB: Shutdown completed; log sequence number 46980; transaction id 16
2024-10-17 12:31:35 2024-10-17 15:31:35 0 [Note] mariadbd: Shutdown complete
2024-10-17 12:31:35 
2024-10-17 12:31:36 Connection to localhost (::1) 3306 port [tcp/mysql] succeeded!
2024-10-17 12:31:35 Database Setup Completed
2024-10-17 12:31:35 [custom-init] No custom files found, skipping...
2024-10-17 12:31:36 241017 15:31:36 mysqld_safe Logging to '/config/databases/5a49b8ee5cbf.err'.
2024-10-17 12:31:36 241017 15:31:36 mysqld_safe Starting mariadbd daemon with databases from /config/databases
2024-10-17 12:31:36 [ls.io-init] done.

My docker-compose looks like this:

version: '3.8'

services:
  bookstack_db:
    image: linuxserver/mariadb:latest
    restart: always
    environment:
      MYSQL_ROOT_PASSWORD: supersecretpassword 
      MYSQL_DATABASE: bookstack
      MYSQL_USER: bookstack
      MYSQL_PASSWORD: b00kst4ck  
    volumes:
      - db_data:/var/lib/mysql  
    networks:
      - bookstack-network

  app:
    image: lscr.io/linuxserver/bookstack:latest
    restart: unless-stopped
    ports:
      - "6875:80"  
    environment:
      PUID: 1000  
      PGID: 1000  
      TZ: America/Sao_Paulo  
      APP_URL: http://192.168.222.108:6875  
      APP_KEY: PK0jb9hzqmIOdpCny4jFG7q3T2MkxEFR8JfNKhKc5+k=  
      DB_HOST: bookstack_db  
      DB_PORT: 3306  
      DB_USERNAME: bookstack  
      DB_PASSWORD: b00kst4ck  
      DB_DATABASE: bookstack  
      QUEUE_CONNECTION: database  
    volumes:
      - /path/to/bookstack/config:/config  
      - app_data:/var/www/html/uploads  
    networks:
      - bookstack-network

volumes:
  db_data:
  app_data:

networks:
  bookstack-network:

Expected Behavior

No response

Steps To Reproduce

I create the docker-compose file with the description above:

I access the folder via terminal, and type docker-compose up -d

Environment

- OS: Windows 10 Home and also Ubuntu Server 24.04
- How docker service was installed: using docker desktop

CPU architecture

x86-64

Docker creation

docker-compose up -d

Container logs

2024-10-17 12:31:29 [migrations] started
2024-10-17 12:31:29 [migrations] 01-nginx-site-confs-default: skipped
2024-10-17 12:31:29 [migrations] 02-default-location: skipped
2024-10-17 12:31:29 [migrations] done
2024-10-17 12:31:29 ───────────────────────────────────────
2024-10-17 12:31:29 
2024-10-17 12:31:29       ██╗     ███████╗██╗ ██████╗
2024-10-17 12:31:29       ██║     ██╔════╝██║██╔═══██╗
2024-10-17 12:31:29       ██║     ███████╗██║██║   ██║
2024-10-17 12:31:29       ██║     ╚════██║██║██║   ██║
2024-10-17 12:31:29       ███████╗███████║██║╚██████╔╝
2024-10-17 12:31:29       ╚══════╝╚══════╝╚═╝ ╚═════╝
2024-10-17 12:31:29 
2024-10-17 12:31:29    Brought to you by linuxserver.io
2024-10-17 12:31:29 ───────────────────────────────────────
2024-10-17 12:31:29 
2024-10-17 12:31:29 To support LSIO projects visit:
2024-10-17 12:31:29 https://www.linuxserver.io/donate/
2024-10-17 12:31:29 
2024-10-17 12:31:29 ───────────────────────────────────────
2024-10-17 12:31:29 GID/UID
2024-10-17 12:31:29 ───────────────────────────────────────
2024-10-17 12:31:29 
2024-10-17 12:31:29 User UID:    1000
2024-10-17 12:31:29 User GID:    1000
2024-10-17 12:31:29 ───────────────────────────────────────
2024-10-17 12:31:29 Linuxserver.io version: v24.10-ls169
2024-10-17 12:31:29 Build-date: 2024-10-14T15:22:13+00:00
2024-10-17 12:31:29 ───────────────────────────────────────
2024-10-17 12:31:29     
2024-10-17 12:31:29 using keys found in /config/keys
2024-10-17 12:31:29 Waiting for DB to be available
2024-10-17 12:31:40 
2024-10-17 12:31:40    INFO  Preparing database.  
2024-10-17 12:31:40 
2024-10-17 12:31:40   Creating migration table ......................................... 20ms DONE
2024-10-17 12:31:40 
2024-10-17 12:31:40    INFO  Running migrations.  
2024-10-17 12:31:40 
2024-10-17 12:31:40   2014_10_12_000000_create_users_table ............................ 288ms DONE
2024-10-17 12:31:40   2014_10_12_100000_create_password_resets_table ................... 49ms DONE
2024-10-17 12:31:41   2015_07_12_114933_create_books_table ............................. 11ms DONE
2024-10-17 12:31:41   2015_07_12_190027_create_pages_table ............................. 12ms DONE
2024-10-17 12:31:41   2015_07_13_172121_create_images_table ............................ 10ms DONE
2024-10-17 12:31:41   2015_07_27_172342_create_chapters_table .......................... 12ms DONE
2024-10-17 12:31:41   2015_08_08_200447_add_users_to_entities .......................... 62ms DONE
2024-10-17 12:31:41   2015_08_09_093534_create_page_revisions_table .................... 10ms DONE
2024-10-17 12:31:41   2015_08_16_142133_create_activities_table ........................ 12ms DONE
2024-10-17 12:31:41   2015_08_29_105422_add_roles_and_permissions ..................... 328ms DONE
2024-10-17 12:31:41   2015_08_30_125859_create_settings_table .......................... 11ms DONE
2024-10-17 12:31:41   2015_08_31_175240_add_search_indexes .............................. 0ms DONE
2024-10-17 12:31:41   2015_09_04_165821_create_social_accounts_table ................... 50ms DONE
2024-10-17 12:31:41   2015_09_05_164707_add_email_confirmation_table ................... 65ms DONE
2024-10-17 12:31:41   2015_11_21_145609_create_views_table ............................. 10ms DONE
2024-10-17 12:31:42   2015_11_26_221857_add_entity_indexes ............................ 511ms DONE
2024-10-17 12:31:42   2015_12_05_145049_fulltext_weighting .............................. 0ms DONE
2024-10-17 12:31:42   2015_12_07_195238_add_image_upload_types ......................... 55ms DONE
2024-10-17 12:31:42   2015_12_09_195748_add_user_avatars ............................... 24ms DONE
2024-10-17 12:31:42   2016_01_11_210908_add_external_auth_to_users ..................... 48ms DONE
2024-10-17 12:31:42   2016_02_25_184030_add_slug_to_revisions .......................... 59ms DONE
2024-10-17 12:31:42   2016_02_27_120329_update_permissions_and_roles .................. 151ms DONE
2024-10-17 12:31:42   2016_02_28_084200_add_entity_access_controls .................... 226ms DONE
2024-10-17 12:31:42   2016_03_09_203143_add_page_revision_types ........................ 34ms DONE
2024-10-17 12:31:42   2016_03_13_082138_add_page_drafts ................................ 36ms DONE
2024-10-17 12:31:42   2016_03_25_123157_add_markdown_support ........................... 77ms DONE
2024-10-17 12:31:42   2016_04_09_100730_add_view_permissions_to_roles .................. 54ms DONE
2024-10-17 12:31:43   2016_04_20_192649_create_joint_permissions_table ................ 297ms DONE
2024-10-17 12:31:43   2016_05_06_185215_create_tags_table ............................. 101ms DONE
2024-10-17 12:31:43   2016_07_07_181521_add_summary_to_page_revisions .................. 32ms DONE
2024-10-17 12:31:43   2016_09_29_101449_remove_hidden_roles ............................ 62ms DONE
2024-10-17 12:31:43   2016_10_09_142037_create_attachments_table ...................... 130ms DONE
2024-10-17 12:31:43   2017_01_21_163556_create_cache_table ............................. 35ms DONE
2024-10-17 12:31:43   2017_01_21_163602_create_sessions_table .......................... 41ms DONE
2024-10-17 12:31:43   2017_03_19_091553_create_search_index_table ..................... 202ms DONE
2024-10-17 12:31:43   2017_04_20_185112_add_revision_counts ............................ 58ms DONE
2024-10-17 12:31:43   2017_07_02_152834_update_db_encoding_to_ut8mb4 .................... 0ms DONE
2024-10-17 12:31:43   2017_08_01_130541_create_comments_table .......................... 88ms DONE
2024-10-17 12:31:44   2017_08_29_102650_add_cover_image_display ........................ 17ms DONE
2024-10-17 12:31:44   2018_07_15_173514_add_role_external_auth_id ...................... 41ms DONE
2024-10-17 12:31:44   2018_08_04_115700_create_bookshelves_table ...................... 366ms DONE
2024-10-17 12:31:44   2019_07_07_112515_add_template_support ........................... 46ms DONE
2024-10-17 12:31:44   2019_08_17_140214_add_user_invites_table ......................... 55ms DONE
2024-10-17 12:31:44   2019_12_29_120917_add_api_auth ................................... 76ms DONE
2024-10-17 12:31:44   2020_08_04_111754_drop_joint_permissions_id ...................... 89ms DONE
2024-10-17 12:31:44   2020_08_04_131052_remove_role_name_field ......................... 18ms DONE
2024-10-17 12:31:44   2020_09_19_094251_add_activity_indexes ........................... 39ms DONE
2024-10-17 12:31:44   2020_09_27_210059_add_entity_soft_deletes ........................ 56ms DONE
2024-10-17 12:31:44   2020_09_27_210528_create_deletions_table ......................... 73ms DONE
2024-10-17 12:31:45   2020_11_07_232321_simplify_activities_table ..................... 121ms DONE
2024-10-17 12:31:45   2020_12_30_173528_add_owned_by_field_to_entities ................ 162ms DONE
2024-10-17 12:31:45   2021_01_30_225441_add_settings_type_column ....................... 14ms DONE
2024-10-17 12:31:45   2021_03_08_215138_add_user_slug .................................. 39ms DONE
2024-10-17 12:31:45   2021_05_15_173110_create_favourites_table ........................ 53ms DONE
2024-10-17 12:31:45   2021_06_30_173111_create_mfa_values_table ........................ 54ms DONE
2024-10-17 12:31:45   2021_07_03_085038_add_mfa_enforced_to_roles_table ................ 21ms DONE
2024-10-17 12:31:45   2021_08_28_161743_add_export_role_permission ...................... 9ms DONE
2024-10-17 12:31:45   2021_09_26_044614_add_activities_ip_column ....................... 17ms DONE
2024-10-17 12:31:45   2021_11_26_070438_add_index_for_user_ip .......................... 17ms DONE
2024-10-17 12:31:45   2021_12_07_111343_create_webhooks_table .......................... 99ms DONE
2024-10-17 12:31:45   2021_12_13_152024_create_jobs_table .............................. 29ms DONE
2024-10-17 12:31:45   2021_12_13_152120_create_failed_jobs_table ....................... 30ms DONE
2024-10-17 12:31:45   2022_01_03_154041_add_webhooks_timeout_error_columns ............. 14ms DONE
2024-10-17 12:31:45   2022_04_17_101741_add_editor_change_field_and_permission ......... 18ms DONE
2024-10-17 12:31:45   2022_04_25_140741_update_polymorphic_types ....................... 11ms DONE
2024-10-17 12:31:45   2022_07_16_170051_drop_joint_permission_type .................... 121ms DONE
2024-10-17 12:31:45   2022_08_17_092941_create_references_table ....................... 112ms DONE
2024-10-17 12:31:45   2022_09_02_082910_fix_shelf_cover_image_types ..................... 2ms DONE
2024-10-17 12:31:45   2022_10_07_091406_flatten_entity_permissions_table ............... 77ms DONE
2024-10-17 12:31:46   2022_10_08_104202_drop_entity_restricted_field ................... 80ms DONE
2024-10-17 12:31:46   2023_01_24_104625_refactor_joint_permissions_storage ............ 142ms DONE
2024-10-17 12:31:46   2023_01_28_141230_copy_color_settings_for_dark_mode ............... 2ms DONE
2024-10-17 12:31:46   2023_02_20_093655_increase_attachments_path_length ............... 37ms DONE
2024-10-17 12:31:46   2023_02_23_200227_add_updated_at_index_to_pages .................. 20ms DONE
2024-10-17 12:31:46   2023_06_10_071823_remove_guest_user_secondary_roles ............... 3ms DONE
2024-10-17 12:31:46   2023_06_25_181952_remove_bookshelf_create_entity_permissions ...... 0ms DONE
2024-10-17 12:31:46   2023_07_25_124945_add_receive_notifications_role_permissions ...... 4ms DONE
2024-10-17 12:31:46   2023_07_31_104430_create_watches_table .......................... 123ms DONE
2024-10-17 12:31:46   2023_08_21_174248_increase_cache_size ............................ 28ms DONE
2024-10-17 12:31:46   2023_12_02_104541_add_default_template_to_books .................. 17ms DONE
2024-10-17 12:31:46   2023_12_17_140913_add_description_html_to_entities ............... 53ms DONE
2024-10-17 12:31:46   2024_01_01_104542_add_default_template_to_chapters ............... 18ms DONE
2024-10-17 12:31:46   2024_02_04_141358_add_views_updated_index ........................ 22ms DONE
2024-10-17 12:31:46   2024_05_04_154409_rename_activity_relation_columns ............... 55ms DONE
2024-10-17 12:31:46   2024_09_29_140340_ensure_editor_value_set ......................... 3ms DONE
2024-10-17 12:31:46 
2024-10-17 12:31:46 [custom-init] No custom files found, skipping...
2024-10-17 12:31:46 *** Starting Async
github-actions[bot] commented 6 days ago

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

ssddanbrown commented 6 days ago

In regard to your volumes:

    volumes:
      - /path/to/bookstack/config:/config  
      - app_data:/var/www/html/uploads  

You'd probably want that first line set to an actual convenient path on your host. No idea what that second /var/www/html/uploads entry is doing, where did you get that from?

thespad commented 6 days ago

We've seen it a few times now, I think there's some guide somewhere giving bad advice.

I think your issue is the APP_KEY, it should include the base64: prefix

lucasplcorrea commented 6 days ago

I'm sorry, I asked GPT to help me generate a docker-compose since I was already facing many difficulties with this container, and I ended up missing this part. In Windows, how would this path look correctly?

I would like the data to remain persistent because I intend to migrate this container later to an Ubuntu server with Portainer.

I temporarily removed the lines related to the volume, and put bookstack in debu mode, I received the following information:

RuntimeException Unsupported cipher or incorrect key length. Supported ciphers are: aes-128-cbc, aes-256-cbc, aes-128-gcm, aes-256-gcm.

PHP Version: 8.3.12 BookStack Version: v24.10 Theme Configured:

0 /app/www/vendor/laravel/framework/src/Illuminate/Encryption/EncryptionServiceProvider.php(32): Illuminate\Encryption\Encrypter->__construct()

1 /app/www/vendor/laravel/framework/src/Illuminate/Container/Container.php(908): Illuminate\Encryption\EncryptionServiceProvider->Illuminate\Encryption{closure}()

2 /app/www/vendor/laravel/framework/src/Illuminate/Container/Container.php(795): Illuminate\Container\Container->build()

3 /app/www/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(961): Illuminate\Container\Container->resolve()

4 /app/www/vendor/laravel/framework/src/Illuminate/Container/Container.php(731): Illuminate\Foundation\Application->resolve()

5 /app/www/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(946): Illuminate\Container\Container->make()

6 /app/www/vendor/laravel/framework/src/Illuminate/Container/Container.php(1066): Illuminate\Foundation\Application->make()

7 /app/www/vendor/laravel/framework/src/Illuminate/Container/Container.php(982): Illuminate\Container\Container->resolveClass()

8 /app/www/vendor/laravel/framework/src/Illuminate/Container/Container.php(943): Illuminate\Container\Container->resolveDependencies()

9 /app/www/vendor/laravel/framework/src/Illuminate/Container/Container.php(795): Illuminate\Container\Container->build()

10 /app/www/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(961): Illuminate\Container\Container->resolve()

11 /app/www/vendor/laravel/framework/src/Illuminate/Container/Container.php(731): Illuminate\Foundation\Application->resolve()

12 /app/www/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(946): Illuminate\Container\Container->make()

13 /app/www/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(172): Illuminate\Foundation\Application->make()

14 /app/www/app/Http/Middleware/ApplyCspRules.php(33): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()

15 /app/www/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): BookStack\Http\Middleware\ApplyCspRules->handle()

16 /app/www/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()

17 /app/www/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then()

18 /app/www/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack()

19 /app/www/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute()

20 /app/www/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute()

21 /app/www/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch()

22 /app/www/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http{closure}()

23 /app/www/app/Http/Middleware/PreventResponseCaching.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()

24 /app/www/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): BookStack\Http\Middleware\PreventResponseCaching->handle()

25 /app/www/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()

26 /app/www/app/Http/Middleware/TrustProxies.php(41): Illuminate\Http\Middleware\TrustProxies->handle()

27 /app/www/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): BookStack\Http\Middleware\TrustProxies->handle()

28 /app/www/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()

29 /app/www/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle()

30 /app/www/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle()

31 /app/www/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()

32 /app/www/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle()

33 /app/www/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()

34 /app/www/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle()

35 /app/www/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()

36 /app/www/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then()

37 /app/www/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter()

38 /app/www/public/index.php(52): Illuminate\Foundation\Http\Kernel->handle()

39 {main}

aptalca commented 6 days ago

Why use ChatGPT for something that needs to be customized for you? We already provide a sample compose yaml with instructions and details on what everything is

lucasplcorrea commented 6 days ago

We've seen it a few times now, I think there's some guide somewhere giving bad advice.

I think your issue is the APP_KEY, it should include the base64: prefix

Legend!

I was ignoring the prefix, believing that because it is a prefix, it should not be considered.

Why use ChatGPT for something that needs to be customized for you? We already provide a sample compose yaml with instructions and details on what everything is

I used chatgpt because I had never used docker, nor the application, and the week before, it worked the first time, so I decided to try to get help from whoever helped generate the file.

lucasplcorrea commented 6 days ago

Adding the base64 prefix: and then the generated key, works like a charm!

I'm going to close the topic and try to return to the backup I had created before all this problem happened.

thespad commented 6 days ago

We strongly advise against using Chatgpt or similar tools for this sort of thing because all they really do is guess and they frequently get it wrong, even if it technically works.