linuxserver / docker-bookstack

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

Cannot Navigate to Bookstack URL for the First Time #138

Closed Aehri closed 1 year ago

Aehri commented 1 year ago

I have been trying to get bookstack installed for the better half of a week now. I have tried multiple guides, including the official ones on the bookstack website and video guides on the official YouTube channel. Everything appears to install correctly, but when I go to open the bookstack application by navigating to the URL from a WAN or LAN device or the IP from a LAN device, I receive an error that the host is down. Something makes me think it is an issue with port 80 already being used by Nginx Proxy Manager, but others seem to have been able to make it work no issue, and I also tried installing it in a digital ocean droplet with a similar failed result. Here are the steps I've taken so far...

I followed this guide: https://www.youtube.com/watch?v=dbDzPIv8Cf8&t=293s&ab_channel=BookStack

System is Ubuntu 22.04.1 LTS

  1. Create a CNAME record in Cloudflare: docs.mydomain.com

1

  1. sudo apt update sudo apt install docker.io docker-compose -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  bridge-utils containerd dns-root-data dnsmasq-base pigz python3-docker python3-dockerpty python3-docopt python3-dotenv python3-texttable python3-websocket runc
  ubuntu-fan
Suggested packages:
  ifupdown aufs-tools cgroupfs-mount | cgroup-lite debootstrap docker-doc rinse zfs-fuse | zfsutils
The following NEW packages will be installed:
  bridge-utils containerd dns-root-data dnsmasq-base docker-compose docker.io pigz python3-docker python3-dockerpty python3-docopt python3-dotenv
  python3-texttable python3-websocket runc ubuntu-fan
0 upgraded, 15 newly installed, 0 to remove and 0 not upgraded.
Need to get 65.9 MB of archives.
After this operation, 285 MB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu jammy/universe amd64 pigz amd64 2.6-1 [63.6 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu jammy/main amd64 bridge-utils amd64 1.7-1ubuntu3 [34.4 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu jammy/main amd64 runc amd64 1.1.0-0ubuntu1 [4,087 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu jammy/main amd64 containerd amd64 1.5.9-0ubuntu3 [27.0 MB]
Get:5 http://us.archive.ubuntu.com/ubuntu jammy/main amd64 dns-root-data all 2021011101 [5,256 B]
my_username@bookstack:~$
Get:7 http://us.archive.ubuntu.com/ubuntu jammy/universe amd64 python3-websocket all 1.2.3-1 [34.7 kB]
Get:8 http://us.archive.ubuntu.com/ubuntu jammy/universe amd64 python3-docker all 5.0.3-1 [89.3 kB]
Get:9 http://us.archive.ubuntu.com/ubuntu jammy/universe amd64 python3-dockerpty all 0.4.1-2 [11.1 kB]
Get:10 http://us.archive.ubuntu.com/ubuntu jammy/universe amd64 python3-docopt all 0.6.2-4 [26.9 kB]
Get:11 http://us.archive.ubuntu.com/ubuntu jammy/universe amd64 python3-dotenv all 0.19.2-1 [20.5 kB]
Get:12 http://us.archive.ubuntu.com/ubuntu jammy/universe amd64 python3-texttable all 1.6.4-1 [11.4 kB]
Get:13 http://us.archive.ubuntu.com/ubuntu jammy/universe amd64 docker-compose all 1.29.2-1 [95.8 kB]
Get:14 http://us.archive.ubuntu.com/ubuntu jammy/universe amd64 docker.io amd64 20.10.12-0ubuntu4 [34.0 MB]
Get:15 http://us.archive.ubuntu.com/ubuntu jammy/universe amd64 ubuntu-fan all 0.12.16 [35.2 kB]
Fetched 65.9 MB in 3s (24.1 MB/s)
Preconfiguring packages ...
Selecting previously unselected package pigz.
(Reading database ... 73485 files and directories currently installed.)
Preparing to unpack .../00-pigz_2.6-1_amd64.deb ...
Unpacking pigz (2.6-1) ...
Selecting previously unselected package bridge-utils.
Preparing to unpack .../01-bridge-utils_1.7-1ubuntu3_amd64.deb ...
Unpacking bridge-utils (1.7-1ubuntu3) ...
Selecting previously unselected package runc.
Preparing to unpack .../02-runc_1.1.0-0ubuntu1_amd64.deb ...
Unpacking runc (1.1.0-0ubuntu1) ...
Selecting previously unselected package containerd.
Preparing to unpack .../03-containerd_1.5.9-0ubuntu3_amd64.deb ...
Unpacking containerd (1.5.9-0ubuntu3) ...
Selecting previously unselected package dns-root-data.
Preparing to unpack .../04-dns-root-data_2021011101_all.deb ...
Unpacking dns-root-data (2021011101) ...
Selecting previously unselected package dnsmasq-base.
Preparing to unpack .../05-dnsmasq-base_2.86-1.1ubuntu0.1_amd64.deb ...
Unpacking dnsmasq-base (2.86-1.1ubuntu0.1) ...
Selecting previously unselected package python3-websocket.
Preparing to unpack .../06-python3-websocket_1.2.3-1_all.deb ...
Unpacking python3-websocket (1.2.3-1) ...
Selecting previously unselected package python3-docker.
Preparing to unpack .../07-python3-docker_5.0.3-1_all.deb ...
Unpacking python3-docker (5.0.3-1) ...
Selecting previously unselected package python3-dockerpty.
Preparing to unpack .../08-python3-dockerpty_0.4.1-2_all.deb ...
Unpacking python3-dockerpty (0.4.1-2) ...
Selecting previously unselected package python3-docopt.
Preparing to unpack .../09-python3-docopt_0.6.2-4_all.deb ...
Unpacking python3-docopt (0.6.2-4) ...
Selecting previously unselected package python3-dotenv.
Preparing to unpack .../10-python3-dotenv_0.19.2-1_all.deb ...
Unpacking python3-dotenv (0.19.2-1) ...
Selecting previously unselected package python3-texttable.
Preparing to unpack .../11-python3-texttable_1.6.4-1_all.deb ...
Unpacking python3-texttable (1.6.4-1) ...
Selecting previously unselected package docker-compose.
Preparing to unpack .../12-docker-compose_1.29.2-1_all.deb ...
Unpacking docker-compose (1.29.2-1) ...
Selecting previously unselected package docker.io.
Preparing to unpack .../13-docker.io_20.10.12-0ubuntu4_amd64.deb ...
Unpacking docker.io (20.10.12-0ubuntu4) ...
Selecting previously unselected package ubuntu-fan.
Preparing to unpack .../14-ubuntu-fan_0.12.16_all.deb ...
Unpacking ubuntu-fan (0.12.16) ...
Setting up python3-dotenv (0.19.2-1) ...
Setting up python3-texttable (1.6.4-1) ...
Setting up python3-docopt (0.6.2-4) ...
Setting up dnsmasq-base (2.86-1.1ubuntu0.1) ...
Setting up runc (1.1.0-0ubuntu1) ...
Setting up dns-root-data (2021011101) ...
Setting up bridge-utils (1.7-1ubuntu3) ...
Setting up pigz (2.6-1) ...
Setting up containerd (1.5.9-0ubuntu3) ...
Created symlink /etc/systemd/system/multi-user.target.wants/containerd.service → /lib/systemd/system/containerd.service.
Setting up python3-websocket (1.2.3-1) ...
Setting up python3-dockerpty (0.4.1-2) ...
Setting up ubuntu-fan (0.12.16) ...
Created symlink /etc/systemd/system/multi-user.target.wants/ubuntu-fan.service → /lib/systemd/system/ubuntu-fan.service.
Setting up python3-docker (5.0.3-1) ...
Setting up docker.io (20.10.12-0ubuntu4) ...
Adding group `docker' (GID 118) ...
Done.
Created symlink /etc/systemd/system/multi-user.target.wants/docker.service → /lib/systemd/system/docker.service.
Created symlink /etc/systemd/system/sockets.target.wants/docker.socket → /lib/systemd/system/docker.socket.
Setting up docker-compose (1.29.2-1) ...
Processing triggers for dbus (1.12.20-2ubuntu4) ...
Processing triggers for man-db (2.10.2-1) ...
Scanning processes...
Scanning candidates...
Scanning linux images...

Running kernel seems to be up-to-date.

Restarting services...
Service restarts being deferred:
 /etc/needrestart/restart.d/dbus.service
Service restarts being deferred:
 /etc/needrestart/restart.d/dbus.service
 systemctl restart networkd-dispatcher.service
 systemctl restart systemd-logind.service
 systemctl restart unattended-upgrades.service
 systemctl restart user@1000.service

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this host.

sudo usermod -aG docker my_username sudo reboot docker ps mkdir containers cd containers nano docker-compose.yml

Using the linuxserver.io docker compose file

---
version: "2" 
services: 
  bookstack: 
    image: lscr.io/linuxserver/bookstack 
    container_name: bookstack 
    environment: 
      - PUID=1000 
      - PGID=1000 
      - APP_URL=https://docs.mydomain.com 
      - DB_HOST=bookstack_db 
      - DB_USER=my_username
      - DB_PASS=my_password
      - DB_DATABASE=bookstackapp 
    volumes: 
      - ./bookstack:/config 
    restart: unless-stopped 
    depends_on: 
      - bookstack_db 
  bookstack_db: 
    image: lscr.io/linuxserver/mariadb 
    container_name: bookstack_db 
    environment: 
      - PUID=1000 
      - PGID=1000 
      - MYSQL_ROOT_PASSWORD=my_password
      - TZ=America/New_York 
      - MYSQL_DATABASE=bookstackapp 
      - MYSQL_USER=my_username
      - MYSQL_PASSWORD=my_password
    volumes: 
      - ./database:/config 
    restart: unless-stopped

Nginx Proxy Manager already set up to listen on port 80, and verified to work with other sites.

  1. mkdir -p bookstack database docker-compose pull result = Pulling bookstack_db ... done Pulling bookstack ... done

  2. docker-compose up output log

    user@bookstack:~/containers$ docker-compose up
    Creating network "containers_default" with the default driver
    Creating bookstack_db ... done
    Creating bookstack    ... done
    Attaching to bookstack_db, bookstack
    bookstack_db    | [custom-init] No custom services found, skipping...
    bookstack_db    | s6-rc: info: service s6rc-oneshot-runner: starting
    bookstack_db    | s6-rc: info: service s6rc-oneshot-runner successfully started
    bookstack_db    | s6-rc: info: service fix-attrs: starting
    bookstack_db    | s6-rc: info: service 00-legacy: starting
    bookstack_db    | s6-rc: info: service 00-legacy successfully started
    bookstack_db    | s6-rc: info: service fix-attrs successfully started
    bookstack_db    | s6-rc: info: service legacy-cont-init: starting
    bookstack_db    | cont-init: info: running /etc/cont-init.d/01-envfile
    bookstack_db    | cont-init: info: /etc/cont-init.d/01-envfile exited 0
    bookstack_db    | cont-init: info: running /etc/cont-init.d/10-adduser
    bookstack_db    |
    bookstack_db    | -------------------------------------
    bookstack_db    |           _         ()
    bookstack_db    |          | |  ___   _    __
    bookstack_db    |          | | / __| | |  /  \
    bookstack_db    |          | | \__ \ | | | () |
    bookstack_db    |          |_| |___/ |_|  \__/
    bookstack_db    |
    bookstack_db    |
    bookstack_db    | Brought to you by linuxserver.io
    bookstack_db    | -------------------------------------
    bookstack_db    |
    bookstack_db    | To support LSIO projects visit:
    bookstack_db    | https://www.linuxserver.io/donate/
    bookstack_db    | -------------------------------------
    bookstack_db    | GID/UID
    bookstack_db    | -------------------------------------
    bookstack_db    |
    bookstack_db    | User uid:    1000
    bookstack_db    | User gid:    1000
    bookstack_db    | -------------------------------------
    bookstack_db    |
    bookstack_db    | cont-init: info: /etc/cont-init.d/10-adduser exited 0
    bookstack_db    | cont-init: info: running /etc/cont-init.d/30-config
    bookstack_db    | cont-init: info: /etc/cont-init.d/30-config exited 0
    bookstack_db    | cont-init: info: running /etc/cont-init.d/40-initialise-db
    bookstack_db    | Setting Up Initial Databases
    bookstack_db    | Installing MariaDB/MySQL system tables in '/config/databases' ...
    bookstack_db    | 2022-10-04 22:19:02 1 [Warning] Failed to load slave replication state from table mysql.gtid_slave_pos: 1017: Can't find file: './mysql/' (errno: 2 "No such file or directory")
    bookstack       | [custom-init] No custom services found, skipping...
    bookstack       | s6-rc: info: service s6rc-oneshot-runner: starting
    bookstack       | s6-rc: info: service s6rc-oneshot-runner successfully started
    bookstack       | s6-rc: info: service fix-attrs: starting
    bookstack       | s6-rc: info: service 00-legacy: starting
    bookstack       | s6-rc: info: service 00-legacy successfully started
    bookstack       | s6-rc: info: service fix-attrs successfully started
    bookstack       | s6-rc: info: service legacy-cont-init: starting
    bookstack       | cont-init: info: running /etc/cont-init.d/01-envfile
    bookstack       | cont-init: info: /etc/cont-init.d/01-envfile exited 0
    bookstack       | cont-init: info: running /etc/cont-init.d/01-migrations
    bookstack       | [migrations] started
    bookstack       | [migrations] 01-nginx-site-confs-default: executing...
    bookstack       | [migrations] 01-nginx-site-confs-default: succeeded
    bookstack       | [migrations] 02-default-location: executing...
    bookstack       | grep: /config/nginx/site-confs/default.conf: No such file or directory
    bookstack       | [migrations] 02-default-location: succeeded
    bookstack       | [migrations] done
    bookstack       | cont-init: info: /etc/cont-init.d/01-migrations exited 0
    bookstack       | cont-init: info: running /etc/cont-init.d/10-adduser
    bookstack       |
    bookstack       | -------------------------------------
    bookstack       |           _         ()
    bookstack       |          | |  ___   _    __
    bookstack       |          | | / __| | |  /  \
    bookstack       |          | | \__ \ | | | () |
    bookstack       |          |_| |___/ |_|  \__/
    bookstack       |
    bookstack       |
    bookstack       | Brought to you by linuxserver.io
    bookstack       | -------------------------------------
    bookstack       |
    bookstack       | To support LSIO projects visit:
    bookstack       | https://www.linuxserver.io/donate/
    bookstack       | -------------------------------------
    bookstack       | GID/UID
    bookstack       | -------------------------------------
    bookstack       |
    bookstack       | User uid:    1000
    bookstack       | User gid:    1000
    bookstack       | -------------------------------------
    bookstack       |
    bookstack       | cont-init: info: /etc/cont-init.d/10-adduser exited 0
    bookstack       | cont-init: info: running /etc/cont-init.d/11-folders
    bookstack       | cont-init: info: /etc/cont-init.d/11-folders exited 0
    bookstack       | cont-init: info: running /etc/cont-init.d/12-samples
    bookstack       | cont-init: info: /etc/cont-init.d/12-samples exited 0
    bookstack       | cont-init: info: running /etc/cont-init.d/13-nginx
    bookstack       | Setting resolver to  127.0.0.11
    bookstack       | Setting worker_processes to 2
    bookstack       | cont-init: info: /etc/cont-init.d/13-nginx exited 0
    bookstack       | cont-init: info: running /etc/cont-init.d/14-php
    bookstack       | cont-init: info: /etc/cont-init.d/14-php exited 0
    bookstack       | cont-init: info: running /etc/cont-init.d/15-keygen
    bookstack       | generating self-signed keys in /config/keys, you can replace these with your own keys if required
    bookstack       | Generating a RSA private key
    bookstack       | ..+++++
    bookstack       | ...+++++
    bookstack       | writing new private key to '/config/keys/cert.key'
    bookstack       | -----
    bookstack       | cont-init: info: /etc/cont-init.d/15-keygen exited 0
    bookstack       | cont-init: info: running /etc/cont-init.d/20-permissions
    bookstack       | cont-init: info: /etc/cont-init.d/20-permissions exited 0
    bookstack       | cont-init: info: running /etc/cont-init.d/50-config
    bookstack       | New container detected. Setting up app folder and fixing permissions.
    bookstack_db    | OK
    bookstack_db    |
    bookstack_db    | To start mysqld at boot time you have to copy
    bookstack_db    | support-files/mysql.server to the right place for your system
    bookstack_db    |
    bookstack_db    |
    bookstack_db    | PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER !
    bookstack_db    | To do so, start the server, then issue the following command:
    bookstack_db    |
    bookstack_db    | '/usr/bin/mysql_secure_installation'
    bookstack_db    |
    bookstack_db    | which will also give you the option of removing the test
    bookstack_db    | databases and anonymous user created by default.  This is
    bookstack_db    | strongly recommended for production servers.
    bookstack_db    |
    bookstack_db    | See the MariaDB Knowledgebase at https://mariadb.com/kb
    bookstack_db    |
    bookstack_db    | You can start the MariaDB daemon with:
    bookstack_db    | cd '/usr' ; /usr/bin/mysqld_safe --datadir='/config/databases'
    bookstack_db    |
    bookstack_db    | You can test the MariaDB daemon with mysql-test-run.pl
    bookstack_db    | cd '/usr/mysql-test' ; perl mysql-test-run.pl
    bookstack_db    |
    bookstack_db    | Please report any problems at https://mariadb.org/jira
    bookstack_db    |
    bookstack_db    | The latest information about MariaDB is available at https://mariadb.org/.
    bookstack_db    |
    bookstack_db    | Consider joining MariaDB's strong and vibrant community:
    bookstack_db    | https://mariadb.org/get-involved/
    bookstack_db    |
    bookstack_db    | 2022-10-04 22:19:07 0 [Note] mysqld (mysqld 10.5.17-MariaDB-log) starting as process 138 ...
    bookstack_db    | 2022-10-04 22:19:07 0 [Note] InnoDB: Uses event mutexes
    bookstack_db    | 2022-10-04 22:19:07 0 [Note] InnoDB: Compressed tables use zlib 1.2.12
    bookstack_db    | 2022-10-04 22:19:07 0 [Note] InnoDB: Number of pools: 1
    bookstack_db    | 2022-10-04 22:19:07 0 [Note] InnoDB: Using generic crc32 instructions
    bookstack_db    | 2022-10-04 22:19:07 0 [Note] mysqld: O_TMPFILE is not supported on /var/tmp (disabling future attempts)
    bookstack_db    | 2022-10-04 22:19:07 0 [Note] InnoDB: Using Linux native AIO
    bookstack_db    | 2022-10-04 22:19:07 0 [Note] InnoDB: Initializing buffer pool, total size = 268435456, chunk size = 134217728
    bookstack_db    | 2022-10-04 22:19:07 0 [Note] InnoDB: Completed initialization of buffer pool
    bookstack_db    | 2022-10-04 22:19:08 0 [Note] InnoDB: 128 rollback segments are active.
    bookstack_db    | 2022-10-04 22:19:08 0 [Note] InnoDB: Creating shared tablespace for temporary tables
    bookstack_db    | 2022-10-04 22:19:08 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
    bookstack_db    | 2022-10-04 22:19:08 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
    bookstack_db    | 2022-10-04 22:19:08 0 [Note] InnoDB: 10.5.17 started; log sequence number 45106; transaction id 20
    bookstack_db    | 2022-10-04 22:19:08 0 [Note] Plugin 'FEEDBACK' is disabled.
    bookstack_db    | 2022-10-04 22:19:08 0 [Note] InnoDB: Loading buffer pool(s) from /config/databases/ib_buffer_pool
    bookstack_db    | 2022-10-04 22:19:08 0 [Note] InnoDB: Buffer pool(s) load completed at 221004 22:19:08
    bookstack_db    | 2022-10-04 22:19:08 0 [Note] Server socket created on IP: '::'.
    bookstack_db    | 2022-10-04 22:19:08 0 [Note] Reading of all Master_info entries succeeded
    bookstack_db    | 2022-10-04 22:19:08 0 [Note] Added new Master_info '' to hash table
    bookstack_db    | 2022-10-04 22:19:08 0 [Note] mysqld: ready for connections.
    bookstack_db    | Version: '10.5.17-MariaDB-log'  socket: '/run/mysqld/mysqld.sock'  port: 3306  MariaDB Server
    bookstack_db    | 2022-10-04 22:19:09 0 [Note] mysqld (initiated by: root[root] @ localhost []): Normal shutdown
    bookstack_db    | 2022-10-04 22:19:09 0 [Note] Event Scheduler: Purging the queue. 0 events
    bookstack_db    | 2022-10-04 22:19:09 0 [Note] InnoDB: FTS optimize thread exiting.
    bookstack_db    | 2022-10-04 22:19:09 0 [Note] InnoDB: Starting shutdown...
    bookstack_db    | 2022-10-04 22:19:09 0 [Note] InnoDB: Dumping buffer pool(s) to /config/databases/ib_buffer_pool
    bookstack_db    | 2022-10-04 22:19:09 0 [Note] InnoDB: Buffer pool(s) dump completed at 221004 22:19:09
    bookstack_db    | 2022-10-04 22:19:10 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
    bookstack_db    | 2022-10-04 22:19:10 0 [Note] InnoDB: Shutdown completed; log sequence number 45118; transaction id 23
    bookstack_db    | 2022-10-04 22:19:10 0 [Note] mysqld: Shutdown complete
    bookstack_db    |
    bookstack_db    | Database Setup Completed
    bookstack_db    | cont-init: info: /etc/cont-init.d/40-initialise-db exited 0
    bookstack_db    | cont-init: info: running /etc/cont-init.d/99-custom-files
    bookstack_db    | [custom-init] No custom files found, skipping...
    bookstack_db    | cont-init: info: /etc/cont-init.d/99-custom-files exited 0
    bookstack_db    | s6-rc: info: service legacy-cont-init successfully started
    bookstack_db    | s6-rc: info: service init-mods: starting
    bookstack_db    | s6-rc: info: service init-mods successfully started
    bookstack_db    | s6-rc: info: service init-mods-package-install: starting
    bookstack_db    | s6-rc: info: service init-mods-package-install successfully started
    bookstack_db    | s6-rc: info: service init-mods-end: starting
    bookstack_db    | s6-rc: info: service init-mods-end successfully started
    bookstack_db    | s6-rc: info: service init-services: starting
    bookstack_db    | s6-rc: info: service init-services successfully started
    bookstack_db    | s6-rc: info: service legacy-services: starting
    bookstack_db    | services-up: info: copying legacy longrun mariadb (no readiness notification)
    bookstack_db    | s6-rc: info: service legacy-services successfully started
    bookstack_db    | s6-rc: info: service 99-ci-service-check: starting
    bookstack_db    | [ls.io-init] done.
    bookstack_db    | s6-rc: info: service 99-ci-service-check successfully started
    bookstack_db    | 221004 22:19:10 mysqld_safe Logging to '/config/databases/88748e099b08.err'.
    bookstack_db    | 221004 22:19:11 mysqld_safe Starting mariadbd daemon with databases from /config/databases
    bookstack       | Generating BookStack app key for first run
    bookstack       | App Key set to base64:YlESZtuHySRAQhkJQs3vl0x6mj8U/So8q9gYMtxh9yU= you can modify the file to update /config/BOOKSTACK_APP_KEY.txt
    bookstack       | Running config - db_user set
    bookstack       | **** APP_URL in /config/www/.env is being updated from https://example.com to https://docs.mydomain.com ****
    bookstack       | **** If this is an existing install, you should run the following line from your host terminal to update the database URL entries: ****
    bookstack       | ************************************************************************
    bookstack       | docker exec -it bookstack php /app/www/artisan bookstack:update-url https://example.com https://docs.mydomain.com
    bookstack       | ************************************************************************
    bookstack       | /etc/cont-init.d/50-config: line 103: warning: command substitution: ignored null byte in input
    bookstack       | /etc/cont-init.d/50-config: line 103: warning: command substitution: ignored null byte in input
    bookstack       | Migration table created successfully.
    bookstack       | Migrating: 2014_10_12_000000_create_users_table
    bookstack       | Migrated:  2014_10_12_000000_create_users_table (191.70ms)
    bookstack       | Migrating: 2014_10_12_100000_create_password_resets_table
    bookstack       | Migrated:  2014_10_12_100000_create_password_resets_table (149.62ms)
    bookstack       | Migrating: 2015_07_12_114933_create_books_table
    bookstack       | Migrated:  2015_07_12_114933_create_books_table (90.26ms)
    bookstack       | Migrating: 2015_07_12_190027_create_pages_table
    bookstack       | Migrated:  2015_07_12_190027_create_pages_table (77.58ms)
    bookstack       | Migrating: 2015_07_13_172121_create_images_table
    bookstack       | Migrated:  2015_07_13_172121_create_images_table (80.20ms)
    bookstack       | Migrating: 2015_07_27_172342_create_chapters_table
    bookstack       | Migrated:  2015_07_27_172342_create_chapters_table (92.52ms)
    bookstack       | Migrating: 2015_08_08_200447_add_users_to_entities
    bookstack       | Migrated:  2015_08_08_200447_add_users_to_entities (115.85ms)
    bookstack       | Migrating: 2015_08_09_093534_create_page_revisions_table
    bookstack       | Migrated:  2015_08_09_093534_create_page_revisions_table (69.38ms)
    bookstack       | Migrating: 2015_08_16_142133_create_activities_table
    bookstack       | Migrated:  2015_08_16_142133_create_activities_table (60.20ms)
    bookstack       | Migrating: 2015_08_29_105422_add_roles_and_permissions
    bookstack       | Migrated:  2015_08_29_105422_add_roles_and_permissions (1,514.90ms)
    bookstack       | Migrating: 2015_08_30_125859_create_settings_table
    bookstack       | Migrated:  2015_08_30_125859_create_settings_table (188.08ms)
    bookstack       | Migrating: 2015_08_31_175240_add_search_indexes
    bookstack       | Migrated:  2015_08_31_175240_add_search_indexes (0.11ms)
    bookstack       | Migrating: 2015_09_04_165821_create_social_accounts_table
    bookstack       | Migrated:  2015_09_04_165821_create_social_accounts_table (483.97ms)
    bookstack       | Migrating: 2015_09_05_164707_add_email_confirmation_table
    bookstack       | Migrated:  2015_09_05_164707_add_email_confirmation_table (190.67ms)
    bookstack       | Migrating: 2015_11_21_145609_create_views_table
    bookstack       | Migrated:  2015_11_21_145609_create_views_table (64.08ms)
    bookstack       | Migrating: 2015_11_26_221857_add_entity_indexes
    bookstack       | Migrated:  2015_11_26_221857_add_entity_indexes (931.76ms)
    bookstack       | Migrating: 2015_12_05_145049_fulltext_weighting
    bookstack       | Migrated:  2015_12_05_145049_fulltext_weighting (0.11ms)
    bookstack       | Migrating: 2015_12_07_195238_add_image_upload_types
    bookstack       | Migrated:  2015_12_07_195238_add_image_upload_types (95.46ms)
    bookstack       | Migrating: 2015_12_09_195748_add_user_avatars
    bookstack       | Migrated:  2015_12_09_195748_add_user_avatars (35.14ms)
    bookstack       | Migrating: 2016_01_11_210908_add_external_auth_to_users
    bookstack       | Migrated:  2016_01_11_210908_add_external_auth_to_users (72.13ms)
    bookstack       | Migrating: 2016_02_25_184030_add_slug_to_revisions
    bookstack       | Migrated:  2016_02_25_184030_add_slug_to_revisions (121.63ms)
    bookstack       | Migrating: 2016_02_27_120329_update_permissions_and_roles
    bookstack       | Migrated:  2016_02_27_120329_update_permissions_and_roles (461.83ms)
    bookstack       | Migrating: 2016_02_28_084200_add_entity_access_controls
    bookstack       | Migrated:  2016_02_28_084200_add_entity_access_controls (504.63ms)
    bookstack       | Migrating: 2016_03_09_203143_add_page_revision_types
    bookstack       | Migrated:  2016_03_09_203143_add_page_revision_types (79.43ms)
    bookstack       | Migrating: 2016_03_13_082138_add_page_drafts
    bookstack       | Migrated:  2016_03_13_082138_add_page_drafts (74.88ms)
    bookstack       | Migrating: 2016_03_25_123157_add_markdown_support
    bookstack       | Migrated:  2016_03_25_123157_add_markdown_support (41.17ms)
    bookstack       | Migrating: 2016_04_09_100730_add_view_permissions_to_roles
    bookstack       | Migrated:  2016_04_09_100730_add_view_permissions_to_roles (128.92ms)
    bookstack       | Migrating: 2016_04_20_192649_create_joint_permissions_table
    bookstack       | Migrated:  2016_04_20_192649_create_joint_permissions_table (974.67ms)
    bookstack       | Migrating: 2016_05_06_185215_create_tags_table
    bookstack       | Migrated:  2016_05_06_185215_create_tags_table (265.60ms)
    bookstack       | Migrating: 2016_07_07_181521_add_summary_to_page_revisions
    bookstack       | Migrated:  2016_07_07_181521_add_summary_to_page_revisions (28.10ms)
    bookstack       | Migrating: 2016_09_29_101449_remove_hidden_roles
    bookstack       | Migrated:  2016_09_29_101449_remove_hidden_roles (139.28ms)
    bookstack       | Migrating: 2016_10_09_142037_create_attachments_table
    bookstack       | Migrated:  2016_10_09_142037_create_attachments_table (182.86ms)
    bookstack       | Migrating: 2017_01_21_163556_create_cache_table
    bookstack       | Migrated:  2017_01_21_163556_create_cache_table (149.03ms)
    bookstack       | Migrating: 2017_01_21_163602_create_sessions_table
    bookstack       | Migrated:  2017_01_21_163602_create_sessions_table (191.82ms)
    bookstack       | Migrating: 2017_03_19_091553_create_search_index_table
    bookstack       | Migrated:  2017_03_19_091553_create_search_index_table (461.32ms)
    bookstack       | Migrating: 2017_04_20_185112_add_revision_counts
    bookstack       | Migrated:  2017_04_20_185112_add_revision_counts (80.61ms)
    bookstack       | Migrating: 2017_07_02_152834_update_db_encoding_to_ut8mb4
    bookstack       | Migrated:  2017_07_02_152834_update_db_encoding_to_ut8mb4 (0.11ms)
    bookstack       | Migrating: 2017_08_01_130541_create_comments_table
    bookstack       | Migrated:  2017_08_01_130541_create_comments_table (185.52ms)
    bookstack       | Migrating: 2017_08_29_102650_add_cover_image_display
    bookstack       | Migrated:  2017_08_29_102650_add_cover_image_display (13.55ms)
    bookstack       | Migrating: 2018_07_15_173514_add_role_external_auth_id
    bookstack       | Migrated:  2018_07_15_173514_add_role_external_auth_id (59.83ms)
    bookstack       | Migrating: 2018_08_04_115700_create_bookshelves_table
    bookstack       | Migrated:  2018_08_04_115700_create_bookshelves_table (1,103.63ms)
    bookstack       | Migrating: 2019_07_07_112515_add_template_support
    bookstack       | Migrated:  2019_07_07_112515_add_template_support (66.24ms)
    bookstack       | Migrating: 2019_08_17_140214_add_user_invites_table
    bookstack       | Migrated:  2019_08_17_140214_add_user_invites_table (131.06ms)
    bookstack       | Migrating: 2019_12_29_120917_add_api_auth
    bookstack       | Migrated:  2019_12_29_120917_add_api_auth (197.69ms)
    bookstack       | Migrating: 2020_08_04_111754_drop_joint_permissions_id
    bookstack       | Migrated:  2020_08_04_111754_drop_joint_permissions_id (352.73ms)
    bookstack       | Migrating: 2020_08_04_131052_remove_role_name_field
    bookstack       | Migrated:  2020_08_04_131052_remove_role_name_field (38.91ms)
    bookstack       | Migrating: 2020_09_19_094251_add_activity_indexes
    bookstack       | Migrated:  2020_09_19_094251_add_activity_indexes (76.42ms)
    bookstack       | Migrating: 2020_09_27_210059_add_entity_soft_deletes
    bookstack       | Migrated:  2020_09_27_210059_add_entity_soft_deletes (73.93ms)
    bookstack       | Migrating: 2020_09_27_210528_create_deletions_table
    bookstack       | Migrated:  2020_09_27_210528_create_deletions_table (132.29ms)
    bookstack       | Migrating: 2020_11_07_232321_simplify_activities_table
    bookstack       | Migrated:  2020_11_07_232321_simplify_activities_table (536.05ms)
    bookstack       | Migrating: 2020_12_30_173528_add_owned_by_field_to_entities
    bookstack       | Migrated:  2020_12_30_173528_add_owned_by_field_to_entities (358.87ms)
    bookstack       | Migrating: 2021_01_30_225441_add_settings_type_column
    bookstack       | Migrated:  2021_01_30_225441_add_settings_type_column (14.79ms)
    bookstack       | Migrating: 2021_03_08_215138_add_user_slug
    bookstack       | Migrated:  2021_03_08_215138_add_user_slug (2,328.16ms)
    bookstack       | Migrating: 2021_05_15_173110_create_favourites_table
    bookstack       | Migrated:  2021_05_15_173110_create_favourites_table (1,834.84ms)
    bookstack       | Migrating: 2021_06_30_173111_create_mfa_values_table
    bookstack       | Migrated:  2021_06_30_173111_create_mfa_values_table (98.44ms)
    bookstack       | Migrating: 2021_07_03_085038_add_mfa_enforced_to_roles_table
    bookstack       | Migrated:  2021_07_03_085038_add_mfa_enforced_to_roles_table (26.76ms)
    bookstack       | Migrating: 2021_08_28_161743_add_export_role_permission
    bookstack       | Migrated:  2021_08_28_161743_add_export_role_permission (11.50ms)
    bookstack       | Migrating: 2021_09_26_044614_add_activities_ip_column
    bookstack       | Migrated:  2021_09_26_044614_add_activities_ip_column (13.65ms)
    bookstack       | Migrating: 2021_11_26_070438_add_index_for_user_ip
    bookstack       | Migrated:  2021_11_26_070438_add_index_for_user_ip (34.75ms)
    bookstack       | Migrating: 2021_12_07_111343_create_webhooks_table
    bookstack       | Migrated:  2021_12_07_111343_create_webhooks_table (206.16ms)
    bookstack       | Migrating: 2021_12_13_152024_create_jobs_table
    bookstack       | Migrated:  2021_12_13_152024_create_jobs_table (86.76ms)
    bookstack       | Migrating: 2021_12_13_152120_create_failed_jobs_table
    bookstack       | Migrated:  2021_12_13_152120_create_failed_jobs_table (94.25ms)
    bookstack       | Migrating: 2022_01_03_154041_add_webhooks_timeout_error_columns
    bookstack       | Migrated:  2022_01_03_154041_add_webhooks_timeout_error_columns (15.70ms)
    bookstack       | Migrating: 2022_04_17_101741_add_editor_change_field_and_permission
    bookstack       | Migrated:  2022_04_17_101741_add_editor_change_field_and_permission (33.41ms)
    bookstack       | Migrating: 2022_04_25_140741_update_polymorphic_types
    bookstack       | Migrated:  2022_04_25_140741_update_polymorphic_types (65.41ms)
    bookstack       | Migrating: 2022_07_16_170051_drop_joint_permission_type
    bookstack       | Migrated:  2022_07_16_170051_drop_joint_permission_type (351.03ms)
    bookstack       | Migrating: 2022_08_17_092941_create_references_table
    bookstack       | Migrated:  2022_08_17_092941_create_references_table (188.77ms)
    bookstack       | Migrating: 2022_09_02_082910_fix_shelf_cover_image_types
    bookstack       | Migrated:  2022_09_02_082910_fix_shelf_cover_image_types (2.54ms)
    bookstack       | cont-init: info: /etc/cont-init.d/50-config exited 0
    bookstack       | cont-init: info: running /etc/cont-init.d/85-version-checks
    bookstack       | cont-init: info: /etc/cont-init.d/85-version-checks exited 0
    bookstack       | cont-init: info: running /etc/cont-init.d/99-custom-files
    bookstack       | [custom-init] No custom files found, skipping...
    bookstack       | cont-init: info: /etc/cont-init.d/99-custom-files exited 0
    bookstack       | s6-rc: info: service legacy-cont-init successfully started
    bookstack       | s6-rc: info: service init-mods: starting
    bookstack       | s6-rc: info: service init-mods successfully started
    bookstack       | s6-rc: info: service init-mods-package-install: starting
    bookstack       | s6-rc: info: service init-mods-package-install successfully started
    bookstack       | s6-rc: info: service init-mods-end: starting
    bookstack       | s6-rc: info: service init-mods-end successfully started
    bookstack       | s6-rc: info: service init-services: starting
    bookstack       | s6-rc: info: service init-services successfully started
    bookstack       | s6-rc: info: service legacy-services: starting
    bookstack       | services-up: info: copying legacy longrun cron (no readiness notification)
    bookstack       | services-up: info: copying legacy longrun memcached (no readiness notification)
    bookstack       | services-up: info: copying legacy longrun nginx (no readiness notification)
    bookstack       | services-up: info: copying legacy longrun php-fpm (no readiness notification)
    bookstack       | s6-rc: info: service legacy-services successfully started
    bookstack       | s6-rc: info: service 99-ci-service-check: starting
    bookstack       | [ls.io-init] done.
    bookstack       | s6-rc: info: service 99-ci-service-check successfully started
  3. Try to access bookstack via incognito window: host_ip:6875 http://host_ip:6875 https://host_ip:6875 host_ip:80 http://host_ip:80 https://host_ip:80 all from a LAN device. All attempts result in the following error

2

  1. Add proxy host in Nginx Proxy Manager Domain name: docs.mydomain.com Scheme: https Forward Hostname/IP: host_ip Forward Port: 80 Block Common Exploits = enabled SSL: Request new certificate Force SSL = enabled HTTP/2 Support = enabled (ensured Force SSL and HTTP/2 Support remained enabled after certificate was issued and proxy host was successfully added)

  2. Try to access from a new incognito window: docs.mydomain.com http:/docs.mydomain.com https://docs.mydomain.com All attempts result in the following error

3

  1. Make Proxy Status for the CNAME record "DNS only" in Cloudflare, open new incognito window and navigate to https://docs.mydomain.com Takes me to my pfSense firewall/router login page.
  2. Re-enable proxy status in Cloudflare.
  3. Switched Scheme to be http in Nginx Proxy Manager proxy host settings.
  4. Opened new incognito window and tried navigating to https://docs.mydomain.com and http://docs.mydomain.com, all with the same result as step 7.
  5. Changed the Forward Host/IP of the proxy host in Nginx Proxy manager to the bookstack docker container IP. Did not load the web page at all.

I have run out of ideas and would be very appreciative of any assistance.

Roxedus commented 1 year ago

Is the attached compose a snippet from a larger file? Does it work locally if you add the port mapping?

Aehri commented 1 year ago

The compose file is the one I pulled from the LinuxServer.io GitHub repository.

I had a friend of mine try to install Bookstack and he used the Ubuntu 22.04 installation script and it worked. Not sure why I didn't think of/see that, but that worked for me also. Just an FYI to anyone out there that may have the same problem I did. Still not really sure what the issue was with the other method I was using, but at least I'm up and running now!

12