Beiträge von gimli

    Not sure what I have done here. I am using the backup plugin with fsarchiver to back up a USB thumb drive which is the root/OS. It seems like files that don't exist on the filesystem are being backed up. Not all files in /srv are being added to the backup so I am guessing that I have an errant symlink somewhere (???).


    Does anyone have any suggestions/thoughts?


    6.1.3-1 (Shaitan); Linux 5.18.0-0.deb11.4-amd64; openmediavault-backup 6.1


    Code
    -[00][ 64%][DIR     ] /srv/dev-disk-by-uuid-e945e390-6715-4bf3-aed2-c5aac15bf0b1/damselfly
    -[00][ 64%][DIR     ] /srv/dev-disk-by-uuid-e945e390-6715-4bf3-aed2-c5aac15bf0b1/damselfly/db
    -[00][ 64%][REGFILE ] /srv/dev-disk-by-uuid-e945e390-6715-4bf3-aed2-c5aac15bf0b1/damselfly/db/damselfly.db-wal
    -[00][ 64%][REGFILEM] /srv/dev-disk-by-uuid-e945e390-6715-4bf3-aed2-c5aac15bf0b1/damselfly/db/damselfly.db-shm
    -[00][ 65%][REGFILE ] /srv/dev-disk-by-uuid-e945e390-6715-4bf3-aed2-c5aac15bf0b1/damselfly/db/damselfly.db
    -[00][ 65%][DIR     ] /srv/dev-disk-by-uuid-e945e390-6715-4bf3-aed2-c5aac15bf0b1/damselfly/thumbs
    -[00][ 65%][DIR     ] /srv/dev-disk-by-uuid-e945e390-6715-4bf3-aed2-c5aac15bf0b1/damselfly/thumbs/2001
    -[00][ 65%][DIR     ] /srv/dev-disk-by-uuid-e945e390-6715-4bf3-aed2-c5aac15bf0b1/damselfly/thumbs/2001/2001-11-20
    -[00][ 65%][REGFILE ] /srv/dev-disk-by-uuid-e945e390-6715-4bf3-aed2-c5aac15bf0b1/damselfly/thumbs/2001/2001-11-20/2001-11-20-094246_l.jpg


    Code
    # ls -al /srv/dev-disk-by-uuid-e945e390-6715-4bf3-aed2-c5aac15bf0b1/damselfly
    ls: cannot access '/srv/dev-disk-by-uuid-e945e390-6715-4bf3-aed2-c5aac15bf0b1/damselfly': No such file or directory

    Been reading threads and I am sure this is something straightforward but I have not been about the figure it out.


    On reboot, I have one drive that does not mount automatically.


    I can log into the UI and see it in Storage > Drives.

    It shows up in Storage > File Systems and I can mount it there.


    UUID that is causing issues is:

    Code
    e945e390-6715-4bf3-aed2-c5aac15bf0b1


    cat /etc/fstab

    Code
    UUID=f3bc1916-17a0-443b-91d0-d0d39ead7787 /               ext4    noatime,nodiratime,errors=remount-ro 0       1
    # swap was on /dev/sdb5 during installation
    #UUID=9cfe1ad4-d594-4e2f-809d-7157a4d68020 none            swap    sw              0       0
    # >>> [openmediavault]
    /dev/disk/by-label/scratch        /srv/dev-disk-by-label-scratch    ext4    defaults,noatime,nodiratime,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl    0 2
    /dev/disk/by-label/data        /srv/dev-disk-by-label-data    btrfs    defaults,noatime,nodiratime,nofail    0 2
    /dev/disk/by-label/media        /srv/dev-disk-by-label-media    btrfs    defaults,noatime,nodiratime,nofail    0 2
    /dev/disk/by-uuid/e945e390-6715-4bf3-aed2-c5aac15bf0b1        /srv/dev-disk-by-uuid-e945e390-6715-4bf3-aed2-c5aac15bf0b1    ext4    defaults,nofail,user_xattr,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl    0 2
    # <<< [openmediavault]

    blkid

    Code
    /dev/sda1: LABEL="appdata" UUID="e945e390-6715-4bf3-aed2-c5aac15bf0b1" TYPE="ext4" PARTUUID="141ab68a-dbe4-43aa-867c-5fe59f376f31"
    /dev/sdb1: LABEL="data" UUID="91175e1e-ca2e-42c9-a0e9-6d17584874b1" UUID_SUB="e97fdd19-6181-49a0-80cf-0a9356cba67f" TYPE="btrfs" PARTUUID="fe52b2d8-5d0e-4679-99ba-be2f08e66da7"
    /dev/sdd1: LABEL="scratch" UUID="01f3e249-b032-49fc-b516-962cd0004571" TYPE="ext4" PARTUUID="a839abb5-f26e-40dd-a18c-27042ced5d39"
    /dev/sdc: LABEL="media" UUID="c5bcb7e4-f236-4eb5-b7a9-119a2eb5a532" UUID_SUB="597366d0-4543-4dea-8a35-88b2cd3e6420" TYPE="btrfs"
    /dev/sde1: LABEL="root" UUID="f3bc1916-17a0-443b-91d0-d0d39ead7787" TYPE="ext4" PARTUUID="ee35d2e9-01"
    /dev/sde5: PARTUUID="ee35d2e9-05"


    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.

    I seem to be missing a drive on the Disk Usage tab on the System Information tab. I only get root and data.


    Linux bessie 4.19.0-0.bpo.4-amd64 #1 SMP Debian 4.19.28-2~bpo9+1 (2019-03-27) x86_64 GNU/Linux
    4.1.22-1 (Arrakis)



    File System shows all three.



    Thanks.