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

"docker cp" tries to copy sockets #1761

Open
prudloff-insite opened this issue Mar 6, 2023 · 0 comments
Open

"docker cp" tries to copy sockets #1761

prudloff-insite opened this issue Mar 6, 2023 · 0 comments

Comments

@prudloff-insite
Copy link

Description

I have this in my SSH config:

Host *.insite.coop *.insite.nnx.com
 ControlMaster auto
 ControlPath ~/.ssh/sockets/%r@%h-%p
 ControlPersist 3600

Docksal tries to run docker cp on the entire ~/.ssh/ folder and it complains that it contains sockets.
It does not prevent it from working but can be quite verbose if there is a lot of sockets open.
It also breaks the progress output:

Successfully copied 136.7kB to docksal-ssh-agent:/.ssh
Starting services... file /home/pierre/.ssh/sockets/git@gitlab.insite.coop-22 to tar: archive/tar: sockets not supported 
[+] Running 8/8t add file /home/pierre/.ssh/sockets/insite@d9.insite.nnx.com-22 to tar: archive/tar: sockets not supported 

I guess an easy workaround is to have these sockets outside the .ssh/ folder but it feels clean to have everything related to SSH in this folder.

Steps to reproduce the issue:

  1. Have sockets in ~/.ssh/sockets/
  2. fin ssh-key add

Describe the results you received:

ERRO[0000] Can't add file /home/pierre/.ssh/sockets/git@gitlab.insite.coop-22 to tar: archive/tar: sockets not supported 
ERRO[0000] Can't add file /home/pierre/.ssh/sockets/insite@d9.insite.coop-22 to tar: archive/tar: sockets not supported 
ERRO[0000] Can't add file /home/pierre/.ssh/sockets/insite@d9.insite.nnx.com-22 to tar: archive/tar: sockets not supported 
ERRO[0000] Can't add file /home/pierre/.ssh/sockets/insite@gitlab.insite.coop-22 to tar: archive/tar: sockets not supported 

Describe the results you expected:

No error.

Output of fin config:

fin config output
---------------------
COMPOSE_PROJECT_NAME_SAFE: drupal
COMPOSE_FILE:
/home/pierre/.docksal/stacks/volumes-bind.yml
/home/pierre/.docksal/stacks/stack-default.yml
/home/pierre/projets/workspace/drupal/.docksal/docksal.yml
ENV_FILE:
/home/pierre/projets/workspace/drupal/.docksal/docksal.env

PROJECT_ROOT: /home/pierre/projets/workspace/drupal
DOCROOT: web
VIRTUAL_HOST: drupal.docksal.site
VIRTUAL_HOST_ALIASES: *.drupal.docksal.site
IP: 192.168.64.100

MySQL endpoint:
Public URL:

Docker Compose configuration
---------------------
services:
  cli:
    dns:
    - 8.8.8.8
    - 9.9.9.9
    environment:
      BLACKFIRE_CLIENT_ID: null
      BLACKFIRE_CLIENT_TOKEN: null
      COMPOSER_ALLOW_XDEBUG: "0"
      COMPOSER_AUTH: '{ "github-oauth": { "github.com": "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"
        } }'
      COMPOSER_DEFAULT_VERSION: null
      COMPOSER_DISABLE_XDEBUG_WARN: "0"
      DOCROOT: web
      DRUSH_ALLOW_XDEBUG: "0"
      DRUSH_OPTIONS_URI: drupal.docksal.site
      GIT_USER_EMAIL: prudloff@insite.coop
      GIT_USER_NAME: Pierre Rudloff
      HOST_GID: "1000"
      HOST_UID: "1000"
      MYSQL_DATABASE: default
      MYSQL_HOST: db
      MYSQL_PASSWORD: user
      MYSQL_ROOT_PASSWORD: root
      MYSQL_USER: user
      PHP_IDE_CONFIG: serverName=drupal.docksal.site
      SECRET_ACQUIA_CLI_KEY: null
      SECRET_ACQUIA_CLI_SECRET: null
      SECRET_PLATFORMSH_CLI_TOKEN: null
      SECRET_SSH_PRIVATE_KEY: null
      SECRET_TERMINUS_TOKEN: null
      SECRET_VIRTUAL_HOST: drupal.docksal.site
      SECRET_WEB_KEEPALIVE: "0"
      SSH_AUTH_SOCK: /.ssh-agent/proxy-socket
      VIRTUAL_HOST: drupal.docksal.site
      XDEBUG_CONFIG: client_host=192.168.64.1 remote_host=192.168.64.1
      XDEBUG_ENABLED: "0"
    extends:
      file: /home/pierre/.docksal/stacks/services.yml
      service: cli
    hostname: cli
    healthcheck:
      interval: 10s
    image: docksal/cli:php8.0-3.2
    labels:
      io.docksal.shell: bash
      io.docksal.user: docker
    logging:
      options:
        max-file: "10"
        max-size: 1m
    mem_limit: "536870912"
    networks:
      default: null
    platform: linux/amd64
    volumes:
    - type: volume
      source: docksal_ssh_agent
      target: /.ssh-agent
      read_only: true
      volume: {}
    - type: volume
      source: cli_home
      target: /home/docker
      volume: {}
    - type: volume
      source: yarn_cache
      target: /home/docker/.cache/yarn
      volume: {}
    - type: volume
      source: composer_cache
      target: /home/docker/.composer/cache
      volume: {}
    - type: bind
      source: /tmp/.docksal/drupal
      target: /tmp/.docksal/drupal
      read_only: true
      bind:
        create_host_path: true
    - type: volume
      source: project_root
      target: /var/www
      volume:
        nocopy: true
  db:
    dns:
    - 8.8.8.8
    - 9.9.9.9
    environment:
      MYSQL_ALLOW_EMPTY_PASSWORD: null
      MYSQL_DATABASE: default
      MYSQL_INITDB_SKIP_TZINFO: null
      MYSQL_ONETIME_PASSWORD: null
      MYSQL_PASSWORD: user
      MYSQL_RANDOM_ROOT_PASSWORD: null
      MYSQL_ROOT_PASSWORD: root
      MYSQL_USER: user
    extends:
      file: /home/pierre/.docksal/stacks/services.yml
      service: mariadb
    hostname: db
    healthcheck:
      interval: 10s
    image: docksal/mariadb:10.3
    logging:
      options:
        max-file: "10"
        max-size: 1m
    mem_limit: "536870912"
    networks:
      default: null
    ports:
    - mode: ingress
      target: 3306
      protocol: tcp
    volumes:
    - type: volume
      source: db_data
      target: /var/lib/mysql
      volume: {}
    - type: volume
      source: project_root
      target: /var/www
      read_only: true
      volume:
        nocopy: true
  mail:
    dns:
    - 8.8.8.8
    - 9.9.9.9
    - 8.8.8.8
    - 9.9.9.9
    extends:
      file: /home/pierre/.docksal/stacks/services.yml
      service: mail
    hostname: mail
    healthcheck:
      interval: 10s
    image: mailhog/mailhog:v1.0.1
    labels:
      io.docksal.cert-name: none
      io.docksal.virtual-host: mail.drupal.docksal.site,mail.drupal.docksal.site.*
      io.docksal.virtual-port: "8025"
    logging:
      options:
        max-file: "10"
        max-size: 1m
    mem_limit: "12582912"
    networks:
      default: null
    volumes:
    - type: volume
      source: project_root
      target: /var/www
      read_only: true
      volume:
        nocopy: true
  pma:
    environment:
      PMA_HOST: db
      PMA_PASSWORD: root
      PMA_USER: root
    hostname: pma
    image: phpmyadmin/phpmyadmin
    labels:
      io.docksal.virtual-host: pma.drupal.docksal.site
    mem_limit: "67108864"
    networks:
      default: null
  redis:
    dns:
    - 8.8.8.8
    - 9.9.9.9
    - 8.8.8.8
    - 9.9.9.9
    environment:
      REDIS_DATABASES: "1"
      REDIS_MAXMEMORY: 256m
      REDIS_MAXMEMORY_POLICY: volatile-lru
      REDIS_SAVE_TO_DISK: "1"
      REDIS_SAVES: '"0:0"'
    extends:
      file: /home/pierre/.docksal/stacks/services.yml
      service: redis
    hostname: redis
    healthcheck:
      interval: 10s
    image: wodby/redis:6.2
    logging:
      options:
        max-file: "10"
        max-size: 1m
    mem_limit: "134217728"
    networks:
      default: null
  solr:
    dns:
    - 8.8.8.8
    - 9.9.9.9
    - 8.8.8.8
    - 9.9.9.9
    extends:
      file: /home/pierre/.docksal/stacks/services.yml
      service: solr
    hostname: solr
    healthcheck:
      interval: 10s
    image: docksal/solr:6.6
    labels:
      io.docksal.cert-name: none
      io.docksal.virtual-host: solr.drupal.docksal.site,solr.drupal.docksal.site.*
      io.docksal.virtual-port: "8983"
    logging:
      options:
        max-file: "10"
        max-size: 1m
    mem_limit: "536870912"
    networks:
      default: null
    volumes:
    - type: volume
      source: project_root
      target: /var/www
      read_only: true
      volume:
        nocopy: true
  varnish:
    depends_on:
      web:
        condition: service_started
    dns:
    - 8.8.8.8
    - 9.9.9.9
    - 8.8.8.8
    - 9.9.9.9
    environment:
      VARNISH_BACKEND_HOST: web
    extends:
      file: /home/pierre/.docksal/stacks/services.yml
      service: varnish
    hostname: varnish
    healthcheck:
      interval: 10s
    image: docksal/varnish:7.0-3.1
    labels:
      io.docksal.cert-name: none
      io.docksal.virtual-host: varnish.drupal.docksal.site,varnish.drupal.docksal.site.*
    logging:
      options:
        max-file: "10"
        max-size: 1m
    networks:
      default: null
    volumes:
    - type: volume
      source: project_root
      target: /var/www
      read_only: true
      volume:
        nocopy: true
  web:
    depends_on:
      cli:
        condition: service_started
    dns:
    - 8.8.8.8
    - 9.9.9.9
    environment:
      APACHE_BASIC_AUTH_PASS: null
      APACHE_BASIC_AUTH_USER: null
      APACHE_DOCUMENTROOT: /var/www/web
      APACHE_FCGI_HOST_PORT: cli:9000
    extends:
      file: /home/pierre/.docksal/stacks/services.yml
      service: apache
    hostname: web
    healthcheck:
      interval: 10s
    image: docksal/apache:2.4-2.5
    labels:
      io.docksal.cert-name: none
      io.docksal.permanent: "false"
      io.docksal.project-root: /home/pierre/projets/workspace/drupal
      io.docksal.virtual-host: drupal.docksal.site,*.drupal.docksal.site,drupal.docksal.site.*
    logging:
      options:
        max-file: "10"
        max-size: 1m
    mem_limit: "33554432"
    networks:
      default: null
    volumes:
    - type: volume
      source: project_root
      target: /var/www
      read_only: true
      volume:
        nocopy: true
networks:
  default:
    name: drupal_default
volumes:
  cli_home:
    name: drupal_cli_home
  composer_cache:
    name: composer_cache
    external: true
  db_data:
    name: drupal_db_data
  docksal_ssh_agent:
    name: docksal_ssh_agent
    external: true
  project_root:
    name: drupal_project_root
    driver: local
    driver_opts:
      device: /home/pierre/projets/workspace/drupal
      o: bind
      type: none
  yarn_cache:
    name: yarn_cache
    external: true
---------------------

Output of fin sysinfo:

fin sysinfo output
███  DOCKSAL
Docksal version: v1.17.0
fin version:     1.110.1

███  OS
Linux Linux Mint 21
Linux pierre-X510UAR 5.15.0-67-generic #74-Ubuntu SMP Wed Feb 22 14:14:39 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

███  ENVIRONMENT
MODE : Linux Kernel
DOCKER_HOST : 

███  DOCKER
Expected client version: 20.10.12
Expected server version: 20.10.12

Installed versions:

Client: Docker Engine - Community
Version:           23.0.1
API version:       1.42
Go version:        go1.19.5
Git commit:        a5ee5b1
Built:             Thu Feb  9 19:46:49 2023
OS/Arch:           linux/amd64
Context:           default

Server: Docker Engine - Community
Engine:
Version:          23.0.1
API version:      1.42 (minimum version 1.12)
Go version:       go1.19.5
Git commit:       bc3805a
Built:            Thu Feb  9 19:46:49 2023
OS/Arch:          linux/amd64
Experimental:     false
containerd:
Version:          1.6.18
GitCommit:        2456e983eb9e37e47538f59ea18f2043c9a73640
runc:
Version:          1.1.4
GitCommit:        v1.1.4-0-g5fd4c4d
docker-init:
Version:          0.19.0
GitCommit:        de40ad0

███  DOCKER COMPOSE
Expected version:  2.1.0
Installed version: v2.1.0

███  DOCKSAL: PROJECTS
project             STATUS                      virtual host                                                                                       project root
insite_d9           Exited (0) 17 minutes ago   insite-d9.docksal.site,*.insite-d9.docksal.site,insite-d9.docksal.site.*                           /home/pierre/projets/workspace/insite_d9
drupal              Exited (0) 29 minutes ago   drupal.docksal.site,*.drupal.docksal.site,drupal.docksal.site.*                                    /home/pierre/projets/workspace/drupal
folio               Exited (0) 6 hours ago      folio.docksal.site,*.folio.docksal.site,folio.docksal.site.*                                       /home/pierre/projets/workspace/folio
enactus_etudiants   Exited (0) 4 weeks ago      enactus-etudiants.docksal.site,*.enactus-etudiants.docksal.site,enactus-etudiants.docksal.site.*   /home/pierre/projets/workspace/enactus_etudiants
cafca               Exited (0) 5 weeks ago      cafca.docksal.site,*.cafca.docksal.site,cafca.docksal.site.*                                       /home/pierre/projets/workspace/cafca
oni                 Exited (0) 12 days ago      oni.docksal.site,*.oni.docksal.site,oni.docksal.site.*                                             /home/pierre/projets/workspace/oni
drupal9_mnhn        Exited (137) 3 days ago     drupal9-mnhn.docksal.site,*.drupal9-mnhn.docksal.site,drupal9-mnhn.docksal.site.*                  /home/pierre/projets/workspace/drupal9_mnhn
ob44                Exited (0) 12 minutes ago   ob44.docksal.site,*.ob44.docksal.site,ob44.docksal.site.*                                          /home/pierre/projets/workspace/ob44
mois_ess            Exited (0) 2 months ago     mois-ess.docksal.site,*.mois-ess.docksal.site,mois-ess.docksal.site.*                              /home/pierre/projets/workspace/mois_ess
coopfr              Exited (0) 2 months ago     coopfr.docksal.site,*.coopfr.docksal.site,coopfr.docksal.site.*                                    /home/pierre/projets/workspace/coopfr
inspe_bretagne      Exited (0) 2 weeks ago      inspe-bretagne.docksal.site,*.inspe-bretagne.docksal.site,inspe-bretagne.docksal.site.*            /home/pierre/projets/workspace/inspe_bretagne
labo-ess            Exited (0) 3 months ago     labo-ess.docksal.site,*.labo-ess.docksal.site,labo-ess.docksal.site.*                              /home/pierre/workspace/labo-ess
epec                Exited (0) 3 months ago     epec.docksal.site,*.epec.docksal.site,epec.docksal.site.*                                          /home/pierre/workspace/epec
fne_d9              Exited (0) 7 days ago       fne-d9.docksal.site,*.fne-d9.docksal.site,fne-d9.docksal.site.*                                    /home/pierre/projets/workspace/fne_d9
neurodev            Exited (0) 3 days ago       neurodev.docksal.site,*.neurodev.docksal.site,neurodev.docksal.site.*                              /home/pierre/projets/workspace/neurodev
losange             Exited (0) 3 months ago     losange.docksal.site,*.losange.docksal.site,losange.docksal.site.*                                 /home/pierre/projets/workspace/losange
em_normandie        Exited (0) 3 months ago     em-normandie.docksal.site,*.em-normandie.docksal.site,em-normandie.docksal.site.*                  /home/pierre/projets/workspace/em_normandie

███  DOCKSAL: VIRTUAL HOSTS

███  DOCKSAL: NETWORKING

DOCKSAL_IP: 192.168.64.100
DOCKSAL_HOST_IP: 192.168.64.1
DOCKSAL_VHOST_PROXY_IP: 
DOCKSAL_DNS_IP: 
DOCKSAL_DNS_DISABLED: 1
DOCKSAL_NO_DNS_RESOLVER: 1
DOCKSAL_DNS_UPSTREAM: 
DOCKSAL_DNS_DOMAIN: docksal.site

███  DOCKSAL: CONNECTIVITY

Host to 192.168.64.100: 	PASS
Container to 192.168.64.100: 	PASS
Container to 192.168.64.1: 	PASS

Checking connectivity to http://dns-test.docksal.site...
Host: PASS
Containers: PASS

███  DOCKER: RUNNING CONTAINERS
CONTAINER ID   IMAGE                     COMMAND                  CREATED       STATUS                 PORTS                                                    NAMES
501b0ae5e0c8   docksal/ssh-agent:1.4     "docker-entrypoint.s…"   6 hours ago   Up 6 hours (healthy)                                                            docksal-ssh-agent
c745ba8ee5d9   docksal/vhost-proxy:1.8   "docker-entrypoint.s…"   6 hours ago   Up 6 hours (healthy)   192.168.64.100:80->80/tcp, 192.168.64.100:443->443/tcp   docksal-vhost-proxy

███  DOCKER: NETWORKS
NETWORK ID     NAME                   DRIVER    SCOPE
691b45b846c2   _default               bridge    local
6860896cfb49   alterecoblog_default   bridge    local
24a8ad2e4af1   art_together_default   bridge    local
d4806274549e   bridge                 bridge    local
3a7ce581e398   cbnbl_default          bridge    local
13f60ec04bf6   citin_default          bridge    local
9832fb3437e0   dicopart_default       bridge    local
d5007da66a43   edwood_default         bridge    local
58191bfc0f05   fica_default           bridge    local
b7dffe15fb4a   gis_default            bridge    local
35aeca5e53bb   host                   host      local
4da46ae7f51f   illico_default         bridge    local
704138f79635   marronniers_default    bridge    local
2837f94b6c56   mois_ess_default       bridge    local
1f8617d953e3   none                   null      local
34837389288d   rtes_default           bridge    local
c7634b422971   scalab_default         bridge    local
0ebd96c1d185   siaved_default         bridge    local
05c65ac2a7ea   suivi_default          bridge    local

███  HDD Usage
Sys. de fichiers Taille Utilisé Dispo Uti% Monté sur
tmpfs              784M    2,5M  781M   1% /run
/dev/sdb2          117G     84G   27G  76% /
tmpfs              3,9G     35M  3,8G   1% /dev/shm
tmpfs              5,0M    4,0K  5,0M   1% /run/lock
/dev/sdb1          511M    6,1M  505M   2% /boot/efi
/dev/sda1          916G    104G  771G  12% /mnt/data
tmpfs              784M    5,7M  778M   1% /run/user/1000
/dev/sdc1          458G     37G  399G   9% /media/pierre/Projets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant