srgl / backer

Backer volume plugin
MIT License
13 stars 0 forks source link

where can i get logs? #2

Closed seertenedos closed 4 years ago

seertenedos commented 4 years ago

I created a volume using docker compose but the container played up like it had an issue with it ans when i tried to go to the mount point it does not exist. Is there a log or something i can use the find the issue?

docker volume inspect temp_muximux_config 
[
    {
        "CreatedAt": "0001-01-01T00:00:00Z",
        "Driver": "srgl/backer:latest",
        "Labels": {
            "com.docker.compose.project": "temp",
            "com.docker.compose.volume": "muximux_config"
        },
        "Mountpoint": "/mnt/volumes/temp_muximux_config/_data",
        "Name": "temp_muximux_config",
        "Options": {
            "backup_schedule": "0 1 * * *",
            "env_B2_ACCOUNT_ID": "xxxxxx",
            "env_B2_ACCOUNT_KEY": "xxxxxxx",
            "env_restic_password": "xxxxxxx",
            "env_restic_repository": "b2:xxxxxxx:/muximux_config",
            "forget_policy": "l7 w30",
            "forget_schedule": "0 1 * * 0",
            "restore": "y",
            "size": "25M"
        },
        "Scope": "local",
        "Status": {
            "mounted": true
        }
    }
seertenedos commented 4 years ago

found it in syslogs but i am not sure what is wrong. I thought it may have been that i had restore turned on for a new volume but even with it off it still errored. logs below.

sensitive info replaced with xxx

Nov 17 20:59:56 portable dockerd[1836]: time="2019-11-17T20:59:56+11:00" level=info msg="Action VolumeDriver.Create, {\"Name\":\"temp_muximux_config\",\"Opts\":{\"backup_schedule\":\"0 1 * * *\",\"env_B2_ACCOUNT_ID\":\"xxx\",\"env_B2_ACCOUNT_KEY\":\"xxx\",\"env_restic_password\":\"xxx\",\"env_restic_repository\":\"b2:xxx:/muximux_config\",\"forget_policy\":\"l7 w30\",\"forget_schedule\":\"0 1 * * 0\",\"restore\":\"n\",\"size\":\"25M\"}}" plugin=acbc33eba7ead383228238fcdfdf88456a07b3de07f2fce92bc8592128d70823
Nov 17 20:59:57 portable dockerd[1836]: time="2019-11-17T20:59:57+11:00" level=info msg="Action VolumeDriver.Capabilities, {}" plugin=acbc33eba7ead383228238fcdfdf88456a07b3de07f2fce92bc8592128d70823
Nov 17 20:59:57 portable dockerd[1836]: time="2019-11-17T20:59:57+11:00" level=info msg="Action VolumeDriver.Get, {\"Name\":\"temp_muximux_config\"}" plugin=acbc33eba7ead383228238fcdfdf88456a07b3de07f2fce92bc8592128d70823
Nov 17 20:59:57 portable dockerd[1836]: time="2019-11-17T20:59:57+11:00" level=info msg="Action VolumeDriver.Capabilities, {}" plugin=acbc33eba7ead383228238fcdfdf88456a07b3de07f2fce92bc8592128d70823
Nov 17 20:59:57 portable dockerd[1836]: time="2019-11-17T20:59:57+11:00" level=info msg="Action VolumeDriver.Get, {\"Name\":\"temp_muximux_config\"}" plugin=acbc33eba7ead383228238fcdfdf88456a07b3de07f2fce92bc8592128d70823
Nov 17 20:59:57 portable dockerd[1836]: time="2019-11-17T20:59:57+11:00" level=info msg="Action VolumeDriver.Capabilities, {}" plugin=acbc33eba7ead383228238fcdfdf88456a07b3de07f2fce92bc8592128d70823
Nov 17 20:59:57 portable dockerd[1836]: time="2019-11-17T20:59:57+11:00" level=info msg="Action VolumeDriver.Mount, {\"Name\":\"temp_muximux_config\",\"ID\":\"1b74eb58c56bcb7329edd06a3f937499a9238d5146e3a7833e284a35fd70bf18\"}" plugin=acbc33eba7ead383228238fcdfdf88456a07b3de07f2fce92bc8592128d70823
Nov 17 20:59:57 portable dockerd[1836]: time="2019-11-17T20:59:57+11:00" level=info msg="Action VolumeDriver.Capabilities, {}" plugin=acbc33eba7ead383228238fcdfdf88456a07b3de07f2fce92bc8592128d70823
Nov 17 20:59:57 portable dockerd[1836]: time="2019-11-17T20:59:57+11:00" level=info msg="Action VolumeDriver.Get, {\"Name\":\"temp_muximux_config\"}" plugin=acbc33eba7ead383228238fcdfdf88456a07b3de07f2fce92bc8592128d70823
Nov 17 20:59:57 portable dockerd[1836]: time="2019-11-17T20:59:57+11:00" level=info msg="Action VolumeDriver.Capabilities, {}" plugin=acbc33eba7ead383228238fcdfdf88456a07b3de07f2fce92bc8592128d70823
Nov 17 20:59:57 portable dockerd[1836]: time="2019-11-17T20:59:57+11:00" level=info msg="Action VolumeDriver.Unmount, {\"Name\":\"temp_muximux_config\",\"ID\":\"1b74eb58c56bcb7329edd06a3f937499a9238d5146e3a7833e284a35fd70bf18\"}" plugin=acbc33eba7ead383228238fcdfdf88456a07b3de07f2fce92bc8592128d70823
Nov 17 20:59:57 portable dockerd[1836]: time="2019-11-17T20:59:57+11:00" level=info msg="Action VolumeDriver.Capabilities, {}" plugin=acbc33eba7ead383228238fcdfdf88456a07b3de07f2fce92bc8592128d70823
Nov 17 20:59:57 portable dockerd[1836]: time="2019-11-17T20:59:57+11:00" level=info msg="Action VolumeDriver.Get, {\"Name\":\"temp_muximux_config\"}" plugin=acbc33eba7ead383228238fcdfdf88456a07b3de07f2fce92bc8592128d70823
Nov 17 20:59:58 portable dockerd[1836]: time="2019-11-17T20:59:58+11:00" level=info msg="Action VolumeDriver.Capabilities, {}" plugin=acbc33eba7ead383228238fcdfdf88456a07b3de07f2fce92bc8592128d70823
Nov 17 20:59:58 portable dockerd[1836]: time="2019-11-17T20:59:58+11:00" level=info msg="Action VolumeDriver.Mount, {\"Name\":\"temp_muximux_config\",\"ID\":\"07f19d595d148b92722ed42c39c6f26dc0f7dd87fde743bfa0ca16eb28727ef4\"}" plugin=acbc33eba7ead383228238fcdfdf88456a07b3de07f2fce92bc8592128d70823
Nov 17 21:00:03 portable dockerd[1836]: time="2019-11-17T21:00:03+11:00" level=info msg="Action VolumeDriver.Get, {\"Name\":\"6abd93d29c4ae90db272d7e61b4c035672e6ae97d2b619e85b63a963257ec5f9\"}" plugin=acbc33eba7ead383228238fcdfdf88456a07b3de07f2fce92bc8592128d70823
Nov 17 21:00:03 portable dockerd[1836]: time="2019-11-17T21:00:03+11:00" level=error msg="Error processing action VolumeDriver.Get: Error: Volume 6abd93d29c4ae90db272d7e61b4c035672e6ae97d2b619e85b63a963257ec5f9 doesn't exist" plugin=acbc33eba7ead383228238fcdfdf88456a07b3de07f2fce92bc8592128d70823
Nov 17 21:00:03 portable dockerd[1836]: time="2019-11-17T21:00:03+11:00" level=error msg="    at /app/src/plugin.js:166:26" plugin=acbc33eba7ead383228238fcdfdf88456a07b3de07f2fce92bc8592128d70823
Nov 17 21:00:03 portable dockerd[1836]: time="2019-11-17T21:00:03+11:00" level=error msg="    at /app/node_modules/async-lock/lib/index.js:125:12" plugin=acbc33eba7ead383228238fcdfdf88456a07b3de07f2fce92bc8592128d70823
Nov 17 21:00:03 portable dockerd[1836]: time="2019-11-17T21:00:03+11:00" level=error msg="    at AsyncLock._promiseTry (/app/node_modules/async-lock/lib/index.js:249:31)" plugin=acbc33eba7ead383228238fcdfdf88456a07b3de07f2fce92bc8592128d70823
Nov 17 21:00:03 portable dockerd[1836]: time="2019-11-17T21:00:03+11:00" level=error msg="    at exec (/app/node_modules/async-lock/lib/index.js:124:9)" plugin=acbc33eba7ead383228238fcdfdf88456a07b3de07f2fce92bc8592128d70823
Nov 17 21:00:03 portable dockerd[1836]: time="2019-11-17T21:00:03+11:00" level=error msg="    at AsyncLock.acquire (/app/node_modules/async-lock/lib/index.js:140:3)" plugin=acbc33eba7ead383228238fcdfdf88456a07b3de07f2fce92bc8592128d70823
Nov 17 21:00:03 portable dockerd[1836]: time="2019-11-17T21:00:03+11:00" level=error msg="    at Plugin.get (/app/src/plugin.js:164:22)" plugin=acbc33eba7ead383228238fcdfdf88456a07b3de07f2fce92bc8592128d70823
Nov 17 21:00:03 portable dockerd[1836]: time="2019-11-17T21:00:03+11:00" level=error msg="    at Plugin.handler (/app/src/plugin.js:44:38)" plugin=acbc33eba7ead383228238fcdfdf88456a07b3de07f2fce92bc8592128d70823
Nov 17 21:00:03 portable dockerd[1836]: time="2019-11-17T21:00:03+11:00" level=error msg="    at processTicksAndRejections (internal/process/task_queues.js:89:5)" plugin=acbc33eba7ead383228238fcdfdf88456a07b3de07f2fce92bc8592128d70823
seertenedos commented 4 years ago

i will create a new issue instead with a better topic and better logs