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

Fin start or reset throws SSH key error: "Tar: Can't stat file" " open /home/jonpugh/.ssh/.: permission denied " #1797

Open
jonpugh opened this issue Oct 17, 2023 · 1 comment

Comments

@jonpugh
Copy link

jonpugh commented Oct 17, 2023

Description

Problem/feature description...

Steps to reproduce the issue:

  1. Install Ubuntu 23.04
  2. Install docksal
  3. clone project.
  4. fin start

Describe the results you received:

$ fin start
 WARNING:  '.docksal' base domain and local DNS resolver are deprecated
           Please update your Docksal and project configuration
           See https://docs.docksal.io/stack/configuration-variables/#docksal-dns-disabled
 NOTICE:  Some Docksal services were not running
         Restarting Docksal system services...
Configuring network settings...
Resetting Docksal system services...
 * proxy
 * dns
   upstream 8.8.8.8
Enabling automatic *.docksal DNS resolver...
 * ssh-agent
ERRO[0000] Tar: Can't stat file /home/jonpugh/.ssh to tar: open /home/jonpugh/.ssh/.: permission denied 
SSH key file does not exist in '/.ssh/id_rsa'
SSH key file does not exist in '/.ssh/id_rsa'
ERRO[0000] Tar: Can't stat file /home/jonpugh/.ssh to tar: open /home/jonpugh/.ssh/.: permission denied 
SSH key file does not exist in '/.ssh/id_rsa'
(Re)creating resources...
[+] Running 5/0
...

Describe the results you expected:

No error message about SSH.

Output of fin config:

fin config output
fin config
 WARNING:  '.docksal' base domain and local DNS resolver are deprecated
           Please update your Docksal and project configuration
           See https://docs.docksal.io/stack/configuration-variables/#docksal-dns-disabled
---------------------
COMPOSE_PROJECT_NAME_SAFE: brookfield-platform
COMPOSE_FILE:
/home/jonpugh/.docksal/stacks/volumes-bind.yml
/home/jonpugh/.docksal/stacks/stack-default.yml
/home/jonpugh/Work/Investis/brookfield-platform/.docksal/docksal.yml
ENV_FILE:
/home/jonpugh/Work/Investis/brookfield-platform/.docksal/docksal.env

PROJECT_ROOT: /home/jonpugh/Work/Investis/brookfield-platform
DOCROOT: docroot
VIRTUAL_HOST: brookfield-platform.docksal
VIRTUAL_HOST_ALIASES: *.brookfield-platform.docksal
IP: 192.168.64.100

MySQL endpoint: 192.168.64.100:32772
Public URL:

Docker Compose configuration
---------------------
name: brookfield-platform
services:
  cli:
    dns:
    - 192.168.64.100
    - 8.8.8.8
    - 192.168.64.100
    - 8.8.8.8
    - 192.168.64.100
    - 8.8.8.8
    environment:
      BLACKFIRE_CLIENT_ID: null
      BLACKFIRE_CLIENT_TOKEN: null
      COMPOSER_ALLOW_XDEBUG: "0"
      COMPOSER_DEFAULT_VERSION: "1"
      COMPOSER_DISABLE_XDEBUG_WARN: "0"
      DOCROOT: docroot
      DRUSH_ALLOW_XDEBUG: "0"
      DRUSH_OPTIONS_URI: brookfield-platform.docksal
      GIT_USER_EMAIL: jon@thinkdrop.net
      GIT_USER_NAME: Jon Pugh
      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=brookfield-platform.docksal
      SECRET_ACQUIA_CLI_KEY: null
      SECRET_ACQUIA_CLI_SECRET: null
      SECRET_PLATFORMSH_CLI_TOKEN: null
      SECRET_SSH_PRIVATE_KEY: null
      SECRET_TERMINUS_TOKEN: null
      SSH_AUTH_SOCK: /.ssh-agent/proxy-socket
      VIRTUAL_HOST: brookfield-platform.docksal
      XDEBUG_CONFIG: client_host=192.168.64.1
      XDEBUG_ENABLED: "0"
      XDEBUG_MODE: debug
    extends:
      file: /home/jonpugh/.docksal/stacks/services.yml
      service: cli
    hostname: cli
    healthcheck:
      interval: 10s
    image: docksal/cli:php7.4-3.0
    labels:
      io.docksal.shell: bash
      io.docksal.user: docker
    logging:
      options:
        max-file: "10"
        max-size: 1m
    networks:
      default: null
    volumes:
    - type: volume
      source: docksal_ssh_agent
      target: /.ssh-agent
      read_only: true
      volume: {}
    - type: volume
      source: cli_home
      target: /home/docker
      volume: {}
    - type: bind
      source: /tmp/.docksal/brookfield-platform
      target: /tmp/.docksal/brookfield-platform
      read_only: true
      bind:
        create_host_path: true
    - type: volume
      source: project_root
      target: /var/www
      volume:
        nocopy: true
  db:
    dns:
    - 192.168.64.100
    - 8.8.8.8
    - 192.168.64.100
    - 8.8.8.8
    - 192.168.64.100
    - 8.8.8.8
    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/jonpugh/.docksal/stacks/services.yml
      service: mysql
    hostname: db
    healthcheck:
      interval: 10s
    image: docksal/mysql:8.0
    logging:
      options:
        max-file: "10"
        max-size: 1m
    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
  memcached:
    command:
    - -m
    - "256"
    dns:
    - 192.168.64.100
    - 8.8.8.8
    - 192.168.64.100
    - 8.8.8.8
    extends:
      file: /home/jonpugh/.docksal/stacks/services.yml
      service: memcached
    hostname: memcached
    healthcheck:
      interval: 10s
    image: memcached:1.6-alpine
    logging:
      options:
        max-file: "10"
        max-size: 1m
    networks:
      default: null
  varnish:
    build:
      context: /home/jonpugh/Work/Investis/brookfield-platform/.docksal/services/varnish
      dockerfile: Dockerfile
    depends_on:
      web:
        condition: service_started
    dns:
    - 192.168.64.100
    - 8.8.8.8
    - 192.168.64.100
    - 8.8.8.8
    environment:
      VARNISH_BACKEND_HOST: web
      VARNISH_VARNISHD_PARAMS: -T :6082
    expose:
    - "6082"
    extends:
      file: /home/jonpugh/.docksal/stacks/services.yml
      service: varnish
    hostname: varnish
    healthcheck:
      interval: 10s
    image: docksal/varnish:4.1-2.0
    labels:
      io.docksal.cert-name: none
      io.docksal.virtual-host: varnish.brookfield-platform.docksal
    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:
    - 192.168.64.100
    - 8.8.8.8
    - 192.168.64.100
    - 8.8.8.8
    - 192.168.64.100
    - 8.8.8.8
    environment:
      APACHE_BASIC_AUTH_PASS: null
      APACHE_BASIC_AUTH_USER: null
      APACHE_DOCUMENTROOT: /var/www/docroot
      APACHE_FCGI_HOST_PORT: cli:9000
    extends:
      file: /home/jonpugh/.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/jonpugh/Work/Investis/brookfield-platform
      io.docksal.virtual-host: brookfield-platform.docksal,*.brookfield-platform.docksal,brookfield-platform.docksal.*
    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
networks:
  default:
    name: brookfield-platform_default
volumes:
  cli_home:
    name: brookfield-platform_cli_home
  db_data:
    name: brookfield-platform_db_data
  docksal_ssh_agent:
    name: docksal_ssh_agent
    external: true
  project_root:
    name: brookfield-platform_project_root
    driver: local
    driver_opts:
      device: /home/jonpugh/Work/Investis/brookfield-platform
      o: bind
      type: none
---------------------

Output of fin sysinfo:

fin sysinfo output
fin sysinfo

███  DOCKSAL
Docksal version: v1.18.2
fin version:     v1.113.2

███  OS
Linux Ubuntu 23.04
Linux edison 6.2.0-34-generic #34-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep  4 13:06:55 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

███  ENVIRONMENT
MODE : Linux Kernel
DOCKER_HOST : 

███  DOCKER
Expected client version: 20.10.23
Expected server version: 20.10.23

Installed versions:

Client:
Version:           20.10.24
API version:       1.41
Go version:        go1.20.4
Git commit:        297e128
Built:             Wed May 24 23:30:52 2023
OS/Arch:           linux/amd64
Context:           default
Experimental:      true

Server:
Engine:
Version:          20.10.24
API version:      1.41 (minimum version 1.12)
Go version:       go1.20.4
Git commit:       5d6db84
Built:            Wed May 24 23:31:22 2023
OS/Arch:          linux/amd64
Experimental:     false
containerd:
Version:          v1.6.20
GitCommit:        2806fc1057397dbaeefbea0e4e17bddfbd388f38
runc:
Version:          1.1.5
GitCommit:        
docker-init:
Version:          0.19.0
GitCommit:        de40ad0

███  DOCKER COMPOSE
Expected version:  2.15.1
Installed version: 2.15.1

███  DOCKSAL: PROJECTS
project                 STATUS                      virtual host                                                                                    project root
brookfield-platform     Up 9 minutes (healthy)      brookfield-platform.docksal,*.brookfield-platform.docksal,brookfield-platform.docksal.*         /home/jonpugh/Work/Investis/brookfield-platform
brookfieldintranetcom   Exited (255) 17 hours ago   brookfieldintranetcom.docksal,*.brookfieldintranetcom.docksal,brookfieldintranetcom.docksal.*   /home/jonpugh/Work/Investis/brookfieldintranet.com

███  DOCKSAL: VIRTUAL HOSTS
*.brookfield-platform.docksal
brookfield-platform.docksal.*
brookfield-platform.docksal
varnish.brookfield-platform.docksal

███  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: 0
DOCKSAL_NO_DNS_RESOLVER: 0
DOCKSAL_DNS_UPSTREAM: 
DOCKSAL_DNS_DOMAIN: docksal

███  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...
Host: PASS
Containers: PASS

███  DOCKER: RUNNING CONTAINERS
CONTAINER ID   IMAGE                                COMMAND                  CREATED         STATUS                   PORTS                                                                     NAMES
b23ad4d1231f   docksal/ssh-agent:1.4                "docker-entrypoint.s…"   6 minutes ago   Up 6 minutes (healthy)                                                                             docksal-ssh-agent
40889885174b   docksal/dns:1.2                      "docker-entrypoint.s…"   6 minutes ago   Up 6 minutes (healthy)   192.168.64.100:53->53/udp                                                 docksal-dns
cc13bc01b552   docksal/vhost-proxy:1.8              "docker-entrypoint.s…"   6 minutes ago   Up 6 minutes (healthy)   192.168.64.100:80->80/tcp, 192.168.64.100:443->443/tcp                    docksal-vhost-proxy
576dcde318a6   docksal/varnish:4.1-2.0              "docker-entrypoint.s…"   9 minutes ago   Up 9 minutes (healthy)   80/tcp, 6082/tcp                                                          brookfield-platform_varnish_1
1c464bf06253   docksal/apache:2.4-2.5               "httpd-foreground"       9 minutes ago   Up 9 minutes (healthy)   80/tcp, 443/tcp                                                           brookfield-platform_web_1
24bbd9cdc4ee   docksal/cli:php7.4-3.0               "/opt/startup.sh sup…"   9 minutes ago   Up 9 minutes (healthy)   22/tcp, 3000/tcp, 9000/tcp                                                brookfield-platform_cli_1
94f9722ae95a   docksal/mysql:8.0                    "docker-entrypoint.s…"   9 minutes ago   Up 9 minutes (healthy)   33060/tcp, 0.0.0.0:32772->3306/tcp, :::32768->3306/tcp                    brookfield-platform_db_1
55615d712fe9   memcached:1.6-alpine                 "docker-entrypoint.s…"   9 minutes ago   Up 9 minutes             11211/tcp                                                                 brookfield-platform_memcached_1
46d1b627c1d2   traefik:2.2.0                        "/lando-entrypoint.s…"   3 days ago      Up 17 hours              127.0.0.1:80->80/tcp, 127.0.0.1:443->443/tcp, 127.0.0.1:32768->8080/tcp   landoproxyhyperion5000gandalfedition_proxy_1
38aa2ff7ae05   bitnami/mysql:8.0.19-debian-10-r57   "/lando-entrypoint.s…"   2 weeks ago     Up 17 hours              127.0.0.1:32769->3306/tcp                                                 siteswatch_database_1
6715181e5ee8   devwithlando/php:8.1-apache-4        "/lando-entrypoint.s…"   2 weeks ago     Up 17 hours              127.0.0.1:32771->80/tcp, 127.0.0.1:32770->443/tcp                         siteswatch_appserver_1

███  DOCKER: NETWORKS
NETWORK ID     NAME                                                                         DRIVER    SCOPE
4abb51c03b08   _default                                                                     bridge    local
79a35428056a   bridge                                                                       bridge    local
c44b4dd91105   brookfield-platform_default                                                  bridge    local
2cd89f3fc96f   brookfield-platformcloud-mid4investiscom_default                             bridge    local
1f21cb2e52c2   brookfieldintranetcom_default                                                bridge    local
f3ee8fe81805   ddev-brookfield_default                                                      bridge    local
afd681539b18   ddev_default                                                                 bridge    local
d0c4bced8068   docker_default                                                               bridge    local
0099827079a5   host                                                                         host      local
7468218cc86c   lando_bridge_network                                                         bridge    local
ec518ff4825d   landocasetupkenobi38ahsoka5659eaf211a8ad3b2c2e1cc5ab49e586115f5225_default   bridge    local
dfbb341ef098   landoproxyhyperion5000gandalfedition_edge                                    bridge    local
8e7ddde78342   none                                                                         null      local
065a27a1d3fd   operations_default                                                           bridge    local
3240d779bd0a   siteswatch_default                                                           bridge    local

███  HDD Usage
Filesystem       Size  Used Avail Use% Mounted on
tmpfs            3.2G  3.6M  3.2G   1% /run
/dev/nvme0n1p10  197G   80G  107G  43% /
tmpfs             16G   50M   16G   1% /dev/shm
tmpfs            5.0M   16K  5.0M   1% /run/lock
/dev/nvme0n1p1   500M  129M  372M  26% /boot/efi
tmpfs            3.2G  108K  3.2G   1% /run/user/1000  ```

</details>
@jonpugh
Copy link
Author

jonpugh commented Oct 17, 2023

The only other thing on the internet I found was this issue: #180

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