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

Error getting credentials and error saving credentials #515

Closed
C0depark opened this issue May 31, 2023 · 1 comment
Closed

Error getting credentials and error saving credentials #515

C0depark opened this issue May 31, 2023 · 1 comment

Comments

@C0depark
Copy link

C0depark commented May 31, 2023

Behaviour

Something breaks with Docker after deleting and re-building containers multiple times and I can no longer get or store credentials. The only workaround I found was to completely uninstall Docker, restart the computer, and re-install. Clean/purging data and resetting to factory defaults does not fix..

error getting credentials - err: exit status 1, out: ``
Error saving credentials: error storing credentials - err: exit status 1, out: ``

Docker version 23.0.5, build bc4487a.
Running in WSL2 - Ubuntu 22.04.2 LTS, Windows 11 Pro
Diagnositcs ID: 85DE5AC6-CC52-46D6-8150-6DCC0B3759F0/20230524132659

Steps to reproduce this issue

  1. Run docker login command with a github token
  2. Build containers, preferably with an image sourced from docker.pkg.github.com
  3. Run the containers
  4. Delete and rebuild the containers a few times

Expected behaviour

Login should be remembered and containers should rebuild without issue

Actual behaviour

I receive the following error:
error getting credentials - err: exit status 1, out: ``

When attempting to run docker login again, I receive this error:
Error saving credentials: error storing credentials - err: exit status 1, out: ``

Configuration

  • Repository URL (if public): Not public
  • Build URL (if public): Not public
version: '3.1'
services:
  mongodb:
    container_name: 'mongodb'
    image: 'mongo:4.0'
    ports:
      - '27017'
    restart: 'on-failure'
  mariadb:
    container_name: 'mariadb'
    image: 'docker.pkg.github.com/private-source/mariadb:latest'
    environment:
      MYSQL_ROOT_PASSWORD: 'password'
    ports:
      - '3306'
    restart: 'on-failure'
  solr:
    container_name: 'solr'
    image: 'docker.pkg.github.com/private-source/solr:latest'
    ports:
      - '8983'
  app:
    container_name: 'app'
    image: ###built from dockerfile###
    environment:
      MARIADB_HOST: 'mariadb'
      MEDIA_API_BASE_URL: 'http://api'
      MONGODB_HOST: 'mongodb://mongodb'
      SOLR_HOST: 'solr'
      TZ: 'America/New_York'
    volumes:
      - ./application:/app/latest/application
      - ./library:/app/latest/library
      - ./public:/app/latest/public
      - ./tests:/app/latest/tests
      - ./vendor:/app/latest/vendor
    ports:
      - '80'
    restart: 'on-failure'
  api:
    container_name: 'api'
    image: 'docker.pkg.github.com/private-source/api:latest'
    environment:
      MONGODB_HOST: 'mongodb://mongodb'
      TZ: 'America/New_York'
    ports:
      - '80'
    restart: 'on-failure'

Logs

Download the log file of your build
and attach it to this issue.
N/A - Local build

@crazy-max
Copy link
Member

I don't see any workflow but a compose file. Please post logs and your GitHub workflow or even better link to your repo. Closing in the meantime.

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

2 participants