Jump to content

Configured Docker-Bind/Path is empty, can't backup Files

Go to solution Solved by Noah0302,
On 8/7/2023 at 8:50 PM, MG2R said:

Try 

docker exec <container> /bin/ls /data

Does it show the files you’re looking for ? If no, verify that you’re mounting in the correct path

Sorry for the late reply!

I created the Container like that initially:

docker run -d --name=flamedashboard -e TZ=Europe/Berlin -p 80:5005 -v /vw-data/:/data/ -e PASSWORD=PWHERE --restart unless-stopped pawelmalak/flame

However I realized just now, that I misconfigured the Command. I put

/vw-data/:/data/

instead of

/vw-data/:/app/data

This way it was an invalid Mount and it just stored the Files somewhere else...

 

 

 

Your provided Command did show me the Files I was looking for, just had to remove the "/" before "/data".
Now I knew that the files are present on the Filesystem.

 

 

 

I found them by searching for all Folders named "data" with the following Command:

sudo find / -type d -name "data"

And then navigating to the path that included the correct Container-ID.
There I was able to just ZIP the files and download them via SFTP.

 

 

Thank you for the Input!

Hello everyone,

Ive run into an issue not being able to backup the Config-Files of my pawelmalak/flame Container, since the path I configured a while back seems to be empty:

noah@flamedashboard:~$ ls /vw-data
noah@flamedashboard:~$ ls -a /vw-data
.  ..

I have not noticed this for Months, since I was able to configure the Dashboard via the Webinterface, with the Changes being persistent between Reboots of the Host and stopping of the Container.
Updating the Container resulted in it being reset to the default Config, so I just restored a Snapshot for now, thats also when I noticed that something was wrong.

Here is a Sample of the Output when inspecting the running Container:

[
{
    "Id": "07962ecefb2199e08f4aed8e9c0ee37862a74a715bdabc4fc2401ea25542bd18",
    "Created": "2022-12-19T19:19:23.349867838Z",
    "Path": "docker-entrypoint.sh",
    "Args": [
        "sh",
        "-c",
        "chown -R node /app/data && node server.js"
    ],
...
        "HostConfig": {
        "Binds": [
            "/vw-data/:/data/"
        ],
        "ContainerIDFile": "",
        "LogConfig": {
            "Type": "json-file",
            "Config": {}
        },
        "NetworkMode": "default",
        "PortBindings": {
            "5005/tcp": [
                {
                    "HostIp": "",
                    "HostPort": "80"
                }
            ]
        },
        "RestartPolicy": {
            "Name": "unless-stopped",
            "MaximumRetryCount": 0
        },
...
        "Mounts": [
        {
            "Type": "bind",
            "Source": "/vw-data",
            "Destination": "/data",
            "Mode": "",
            "RW": true,
            "Propagation": "rprivate"
        }
    ],
...

 

Specs of the Host running the Container:

       _,met$$$$$gg.          noah@flamedashboard 
    ,g$$$$$$$$$$$$$$$P.       ------------------- 
  ,g$$P"     """Y$$.".        OS: Debian GNU/Linux 11 (bullseye) x86_64 
 ,$$P'              `$$$.     Host: KVM/QEMU (Standard PC (i440FX + PIIX, 1996) pc-i440fx-8.0) 
',$$P       ,ggs.     `$$b:   Kernel: 5.10.0-23-amd64 
`d$$'     ,$P"'   .    $$$    Uptime: 1 hour, 31 mins 
 $$P      d$'     ,    $$P    Packages: 420 (dpkg) 
 $$:      $$.   -    ,d$$'    Shell: bash 5.1.4 
 $$;      Y$b._   _,d$P'      Resolution: 1280x800 
 Y$$.    `.`"Y$$$$P"'         Terminal: /dev/pts/0 
 `$$b      "-.__              CPU: QEMU Virtual version 2.5+ (2) @ 3.493GHz 
  `Y$$                        GPU: 00:02.0 Vendor 1234 Device 1111 
   `Y$$.                      Memory: 230MiB / 964MiB 
     `$$b.
       `Y$$b.                                         
          `"Y$b._                                     
              `"""

 

 

 

If you need any more Details, please let me know.

 

Thanks for reading!

My Gaming PC:
Inno3D iChill Black - RTX 4080 - +500 Memory, undervolted Core, 2xCorsair QX120 (push) + 2xInno3D 120mm (pull)
AMD Ryzen 7 7800X3D - NZXT x72
G.SKILL Trident Z @6000MHz CL30 - 2x16GB
Asus Strix X670E-E Gaming

1x500GB Samsung 960 Pro (Windows 11)

1x2TB Kingston KC3000 (Games)

1x1TB WD Blue SN550 (Programs)

1x1TB Samsung 870 EVO (Programs)
Corsair RM-850X

Lian Li O11 Vision
ASUS ROG Swift OLED PG27AQDM (240hz OLED), MSI Optix MAG274QRFDE-QD, BenQ ZOWIE XL2720

Logitech G Pro Wireless Superlight
Wooting 60HE

Audeze LCD2-C + FiiO K3

Klipsch RP600-M + Klipsch R-120 SW

 

My Notebook:

MacBook Pro 16 M1 - 16GB

 

Proxmox-Cluster:

  • Ryzen 9 3950X, Asus Strix X570E F-Gaming, 2x32GB3200MHz ECC, 2x 512GB NVMe ZFS-Mirror (Boot + Testing-VMs), 2x14TB ZFS-Mirror + 1x3TB (TrueNAS-VM), 1x 1TB Samsung 980 Pro NVMe (Ceph-OSD), 10G NIC
  • i7 8700k delidded undervolted, Gigabyte Z390 UD, 4x16GB 3200MHz, 1x 512GB SSD (Boot), 1x 1TB Samsung 980 Pro NVMe (Ceph-OSD), 2,5G NIC
  • i5 4670, 3x4GB + 1x8GB 1600MHz, 1x 512GB SSD (Boot), 1x 1TB Samsung 980 Pro NVMe (Ceph-OSD), 2,5G NIC

Proxmox-Backup-Server:

  • i5 4670, 4x4GB 1600MHz, 2x2TB ZFS-Mirror, 2,5G NIC
Link to comment
Share on other sites

Link to post
Share on other sites

On 8/7/2023 at 8:50 PM, MG2R said:

Try 

docker exec <container> /bin/ls /data

Does it show the files you’re looking for ? If no, verify that you’re mounting in the correct path

Sorry for the late reply!

I created the Container like that initially:

docker run -d --name=flamedashboard -e TZ=Europe/Berlin -p 80:5005 -v /vw-data/:/data/ -e PASSWORD=PWHERE --restart unless-stopped pawelmalak/flame

However I realized just now, that I misconfigured the Command. I put

/vw-data/:/data/

instead of

/vw-data/:/app/data

This way it was an invalid Mount and it just stored the Files somewhere else...

 

 

 

Your provided Command did show me the Files I was looking for, just had to remove the "/" before "/data".
Now I knew that the files are present on the Filesystem.

 

 

 

I found them by searching for all Folders named "data" with the following Command:

sudo find / -type d -name "data"

And then navigating to the path that included the correct Container-ID.
There I was able to just ZIP the files and download them via SFTP.

 

 

Thank you for the Input!

My Gaming PC:
Inno3D iChill Black - RTX 4080 - +500 Memory, undervolted Core, 2xCorsair QX120 (push) + 2xInno3D 120mm (pull)
AMD Ryzen 7 7800X3D - NZXT x72
G.SKILL Trident Z @6000MHz CL30 - 2x16GB
Asus Strix X670E-E Gaming

1x500GB Samsung 960 Pro (Windows 11)

1x2TB Kingston KC3000 (Games)

1x1TB WD Blue SN550 (Programs)

1x1TB Samsung 870 EVO (Programs)
Corsair RM-850X

Lian Li O11 Vision
ASUS ROG Swift OLED PG27AQDM (240hz OLED), MSI Optix MAG274QRFDE-QD, BenQ ZOWIE XL2720

Logitech G Pro Wireless Superlight
Wooting 60HE

Audeze LCD2-C + FiiO K3

Klipsch RP600-M + Klipsch R-120 SW

 

My Notebook:

MacBook Pro 16 M1 - 16GB

 

Proxmox-Cluster:

  • Ryzen 9 3950X, Asus Strix X570E F-Gaming, 2x32GB3200MHz ECC, 2x 512GB NVMe ZFS-Mirror (Boot + Testing-VMs), 2x14TB ZFS-Mirror + 1x3TB (TrueNAS-VM), 1x 1TB Samsung 980 Pro NVMe (Ceph-OSD), 10G NIC
  • i7 8700k delidded undervolted, Gigabyte Z390 UD, 4x16GB 3200MHz, 1x 512GB SSD (Boot), 1x 1TB Samsung 980 Pro NVMe (Ceph-OSD), 2,5G NIC
  • i5 4670, 3x4GB + 1x8GB 1600MHz, 1x 512GB SSD (Boot), 1x 1TB Samsung 980 Pro NVMe (Ceph-OSD), 2,5G NIC

Proxmox-Backup-Server:

  • i5 4670, 4x4GB 1600MHz, 2x2TB ZFS-Mirror, 2,5G NIC
Link to comment
Share on other sites

Link to post
Share on other sites

13 hours ago, Noah0302 said:

Your provided Command did show me the Files I was looking for, just had to remove the "/" before "/data"

This is because the container’s Dockerfile will have the statement “Workdir /app”, meaning if you perform `ls data`, that’s equivalent to performing `ls /app/data`

 

edit: the system works https://github.com/pawelmalak/flame/blob/master/.docker/Dockerfile#L3

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×