Skip to content

[BUG] bookstack-system-cli backup can't be run #170

Closed
@cdrfun

Description

@cdrfun

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When running bookstack-system-cli backup from command line while in /app/www an error occurs:
The "zip" PHP extension is required to run this command

grafik

Expected Behavior

The command should be able to create a backup file.

Steps To Reproduce

  1. Log into Docker container
  2. cd /app/www
  3. ./bookstack-system-cli backup

Environment

- OS: Ubuntu 22.04
- How docker service was installed: Docker repo

CPU architecture

x86-64

Docker creation

version: "2"
services:
  adminer:
    image: adminer
    container_name: adminer
    restart: always
    ports:
      - 9005:8080
    environment:
      - ADMINER_DEFAULT_SERVER=mariadb
  bookstack_ldap:
    image: lscr.io/linuxserver/bookstack:latest
    container_name: bookstack_ldap
    environment:
      - [...]
    volumes:
      - bookstack:/config
    ports:
      - 80:80
      - 443:443
    restart: unless-stopped
    depends_on:
      - bookstack_db
      - drawio
  drawio:
    image: jgraph/drawio:latest
    restart: unless-stopped
    container_name: drawio
    ports:
      - 8080:8080
      - 8443:8443
  bookstack_db:
    image: lscr.io/linuxserver/mariadb:latest
    container_name: MariaDB
    environment:
      - PUID=1000
      - PGID=1000
      - MYSQL_ROOT_PASSWORD=[...]
      - TZ=Europe/Berlin
      - MYSQL_DATABASE=bookstackapp
      - MYSQL_USER=bookstack
      - MYSQL_PASSWORD=[...]
    volumes:
      - mariadb:/config
    ports:
      - 3306:3306
    restart: unless-stopped
volumes:
  mariadb:
   external: true
   name: mariadb
  bookstack:
   external: true
   name: bookstack

Container logs

[migrations] started
[migrations] 01-nginx-site-confs-default: skipped
[migrations] 02-default-location: skipped
[migrations] done
───────────────────────────────────────
      ██╗     ███████╗██╗ ██████╗ 
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝ 
   Brought to you by linuxserver.io
───────────────────────────────────────
To support LSIO projects visit:
https://www.linuxserver.io/donate/
───────────────────────────────────────
GID/UID
───────────────────────────────────────
User UID:    1000
User GID:    1000
───────────────────────────────────────
using keys found in /config/keys
App Key found - setting variable for seds
Running config - DB_HOST set
Waiting for DB to be available
   INFO  Nothing to migrate.  
**** The following active confs have different version dates than the samples that are shipped. ****
**** This may be due to user customization or an update to the samples. ****
**** You should compare the following files to the samples in the same folder and update them. ****
**** Use the link at the top of the file to view the changelog. ****
┌────────────┬────────────┬────────────────────────────────────────────────────────────────────────┐
│  old date  │  new date  │ path                                                                   │
├────────────┼────────────┼────────────────────────────────────────────────────────────────────────┤
│ 2018-03-06 │ 2023-04-13 │ /config/nginx/site-confs/default.conf                                  │
│            │ 2023-04-13 │ /config/nginx/nginx.conf                                               │
│ 2022-08-05 │ 2022-08-20 │ /config/nginx/ssl.conf                                                 │
└────────────┴────────────┴────────────────────────────────────────────────────────────────────────┘
[custom-init] No custom files found, skipping...
[ls.io-init] done.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions