Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust update of log driver configuration #40

Open
markdumay opened this issue Nov 30, 2020 · 8 comments
Open

Adjust update of log driver configuration #40

markdumay opened this issue Nov 30, 2020 · 8 comments
Assignees
Labels
enhancement New feature or request

Comments

@markdumay
Copy link
Owner

The syno_docker_update.sh script updates the file /var/packages/Docker/etc/dockerd.json to fix an issue with Synology's db log driver. However, the script replaces the entire configuration file, instead of fixing the offending log driver only. This might introduce unwanted side effects.

@markdumay markdumay added the enhancement New feature or request label Nov 30, 2020
@markdumay markdumay self-assigned this Nov 30, 2020
@merlin-zaraza
Copy link

merlin-zaraza commented Nov 30, 2020

Getting Error response from daemon: failed to initialize logging driver: failed to get logging factory: logger: no log driver named 'db' is registered: error looking up logging plugin db: plugin "db" not found after docker update and trying to start container

@markdumay
Copy link
Owner Author

Can you share the full log of the syno_docker_update.sh command you ran? And what is the current content of your /var/packages/Docker/etc/dockerd.json file?

@merlin-zaraza
Copy link

merlin-zaraza commented Nov 30, 2020

Update Docker Engine and Docker Compose on Synology to target version

Current DSM version: 6.2.3
Current Docker version: 18.09.8
Current Docker Compose version: 1.24.0
Target Docker version: 19.03.13
Target Docker Compose version: 1.27.4

WARNING! This will replace:
  - Docker Engine
  - Docker Compose
  - Docker daemon log driver

Are you sure you want to continue? [y/N] y
Step 1 from 10: Downloading target Docker binary (https://download.docker.com/linux/static/stable/x86_64/docker-19.03.13.tgz)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 59.3M  100 59.3M    0     0  10.3M      0  0:00:05  0:00:05 --:--:-- 10.9M
Step 2 from 10: Downloading target Docker Compose binary (https://github.com/docker/compose/releases/download/1.27.4/docker-compose-Linux-x86_64)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   651  100   651    0     0   4691      0 --:--:-- --:--:-- --:--:--  4717
100 11.6M  100 11.6M    0     0  2430k      0  0:00:04  0:00:04 --:--:-- 2615k
Step 3 from 10: Stopping Docker service
pkgctl-Docker stoped.
Step 4 from 10: Backing up current Docker binaries (/volume1/homes/vitalii/github/synology-docker/docker_backup_20201130_140242.tgz)
bin/
bin/docker
bin/docker-proxy
bin/containerd
bin/docker-compose
bin/auplink
bin/docker-init
bin/dockerd
bin/containerd-shim
bin/ctr
bin/runc
dockerd.json
start-stop-status
Step 5 from 10: Extracting target Docker binary (/tmp/docker_update/docker-19.03.13.tgz)
docker/
docker/ctr
docker/runc
docker/containerd-shim
docker/docker-init
docker/docker-proxy
docker/docker
docker/dockerd
docker/containerd
Step 6 from 10: Installing binaries
Step 7 from 10: Configuring log driver
Step 8 from 10: Enabling IP forwarding
Step 9 from 10: Starting Docker service
pkgctl-Docker started.
Step 10 from 10: Cleaning the temp folder
Done.
{
    "data-root" : "/var/packages/Docker/target/docker",
    "log-driver" : "json-file",
    "registry-mirrors" : [],
    "group": "administrators"
}

@markdumay
Copy link
Owner Author

Both the script and daemon configuration appear to be fine. Can you try stopping and restarting the container(s)? It seems to refer to the now obsolete db log driver.

@merlin-zaraza
Copy link

yep, remove old container and add it again helps
thank you

@markdumay
Copy link
Owner Author

Great! I'll add an instruction to the README too ;-)

@exotsk
Copy link

exotsk commented Dec 4, 2020

Start container portainer failed: {"message":"failed to initialize logging driver: failed to get logging factory: logger: no log driver named 'db' is registered: error looking up logging plugin db: plugin "db" not found"}.

Any variants of /var/packages/Docker/etc/dockerd.json from Updated binaries are incompatible with btrfs #22 was not help.
Recreating containers have the same error, i cant run, pull any container and can`t delete images by GUI and by console

Current DSM version: 6.2.3
Current Docker version: 19.03.14
Current Docker Compose version: 1.27.4

restore is ok.

@markdumay
Copy link
Owner Author

hi @exotsk, to help me identify potential causes of your issue, would you mind submitting a new issue using the bug report template?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants