Docker - UrBackup Server Configuration

  • Trying to transition to running UrBackup in Docker and am hitting some issues I hope someone can help with.


    Running on Odroid HC2 with OpenMediaVault 4.1.22-1 and BTRFS file system. I can install UrBackup as a plug-in from the OMV Plug-ins and UrBackup works.


    I have tried the uroni/urbackup-server image but it is not multi-platform.


    I have also tried whatang/docker_urbackup:armhf-latest. That one gets a bit further but once the container starts I get the following errors in the logs:

    Code
    2019-06-23 13:59:05: Starting HTTP-Server on port 55414
    2019-06-23 13:59:05: HTTP: Server started up successfully!
    2019-06-23 13:59:05: Generating Server identity...
    2019-06-23 13:59:05: Generating Server private/public ECDSA key...
    2019-06-23 13:59:05: Calculating public key...
    terminate called after throwing an instance of 'CryptoPP::FileSink::OpenErr'
      what():  FileSink: error opening file for writing: urbackup/server_ident_ecdsa409k1.priv


    It does not seems like Docker can’t write to the configured directories.


    I created a new image that combines the uroni/urbackup-server and whatang/docker_urbackup images.
    Dockerfile


    start

    Bash
    #!/bin/bash
    
    
    echo "/backups" > /var/urbackup/backupfolder
    chown urbackup:urbackup /backups
    chown urbackup:urbackup /var/urbackup
    
    
    exec urbackupsrv "$@"


    This builds and runs. I can open a web browser and navigate to http:[server_ip]:55414 and get:

    Code
    Sorry. File not found.


    And the log fills with the following:

    Code
    /usr/bin/start: line 3: /var/urbackup/backupfolder: Read-only file system
    chown: changing ownership of '/backups': Read-only file system
    chown: changing ownership of '/var/urbackup': Read-only file system
    2019-06-24 19:22:42: Starting HTTP-Server on port 55414
    2019-06-24 19:22:42: HTTP: Server started up successfully!
    2019-06-24 19:22:42: WARNING: SQLite: cannot open file at line 34198 of [0ee482a1e0] errorcode: 14
    2019-06-24 19:22:42: WARNING: SQLite: os_unix.c:34198: (13) open(/var/urbackup/backup_server.db-shm) -  errorcode: 14
    2019-06-24 19:22:42: WARNING: SQLite: unable to open database file errorcode: 14
    2019-06-24 19:22:42: ERROR: Error preparing Query [PRAGMA synchronous=NORMAL]: unable to open database file. Retrying in 1s...


    I am assuming permissions is also why the web site does not get created.


    I am not clear on what user it is expecting and where to set the user.


    Thanks.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!