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

Can't pull image #9

Closed
alexdelprete opened this issue Sep 14, 2022 · 16 comments
Closed

Can't pull image #9

alexdelprete opened this issue Sep 14, 2022 · 16 comments
Assignees
Labels
🐛 bug Something isn't working

Comments

@alexdelprete
Copy link
Contributor

Hi Alex, thanks for the invitation.

I created a simple docker-compose.yml file, pointing to the ghcr.io package, but I'm unable to pull the image, I have access denied errors. I am logged in to ghcr.io and also docker repo.

version: '3.3'
services:
  speedtest-tracker:
    image: ghcr.io/alexjustesen/speedtest-tracker:v0.1.0-alpha.2
    container_name: speedtest-tracker

Error spinning it up:

❯ docker compose up -d --force-recreate --remove-orphans
[+] Running 0/1
 ⠿ speedtest-tracker Error                                                                                                                                                                                                              1.8s
Error response from daemon: pull access denied for speedtest-tracker, repository does not exist or may require 'docker login': denied: requested access to the resource is denied

Also tried pulling the image first, from ghcr.io and withous specifying the repo, like in the provided instructions:

❯ docker pull ghcr.io/alexjustesen/speedtest-tracker:v0.1.0-alpha.2
Error response from daemon: denied

❯ docker pull speedtest-tracker:v0.1.0-alpha.2
Error response from daemon: pull access denied for speedtest-tracker, repository does not exist or may require 'docker login': denied: requested access to the resource is denied

Any suggestion is more than welcome. :)

@alexjustesen
Copy link
Owner

Ya know I think this private repo is going to be more of a headache than it's worth... I'm going to make it public after I get some coffee in my system and that'll fix this issue.

@alexdelprete
Copy link
Contributor Author

alexdelprete commented Sep 14, 2022

The strange thing is that I am authenticated with gh/ghcr.io.

If you need a strong italian coffee, let me know. :)

@alexjustesen
Copy link
Owner

@alexdelprete if you can bag that up into an IV that'd be great. I got a newborn so sleep is touch 'n go

@alexjustesen
Copy link
Owner

@alexdelprete made the repo public, let me know if you can pull now. I'd also use the :latest tag as I added defining a server yesterday.

@alexjustesen alexjustesen self-assigned this Sep 14, 2022
@alexjustesen alexjustesen added the 🐛 bug Something isn't working label Sep 14, 2022
@alexdelprete
Copy link
Contributor Author

alexdelprete commented Sep 14, 2022

@alexdelprete if you can bag that up into an IV that'd be great. I got a newborn so sleep is touch 'n go

I have 4 kids, I know what you're going through mate. Be strong, it's not easy, but it'll get better after a couple of years. :)

@alexdelprete made the repo public, let me know if you can pull now. I'd also use the :latest tag as I added defining a server yesterday.

Switched to latest tag. Still denied.

> docker compose up -d --force-recreate --remove-orphans
[+] Running 0/1
 â ¿ speedtest-tracker Error                                                                                                                                                                                                              1.7s
Error response from daemon: pull access denied for speedtest-tracker, repository does not exist or may require 'docker login': denied: requested access to the resource is denied

@alexjustesen
Copy link
Owner

Well that's interesting... I just pulled the image on a machine that wasn't authenticated so maybe try removing auth to ghcr?

@alexdelprete
Copy link
Contributor Author

alexdelprete commented Sep 14, 2022

I don't see the package on ghcr.io, pulling it from docker hub:

 services:
   speedtest-tracker:
     image: speedtest-tracker:latest
❯ docker pull speedtest-tracker:latest
Error response from daemon: pull access denied for speedtest-tracker, repository does not exist or may require 'docker login': denied: requested access to the resource is denied

I'll reboot the docker vm, and retry...

@alexjustesen
Copy link
Owner

Yeah it's not published on docker hub yet you'll need to use ghcr to pull the image. Although maybe because the last image was private it stayed that way 🤷‍♂️

@alexdelprete
Copy link
Contributor Author

alexdelprete commented Sep 14, 2022

On the GH repo it says there's no ghcr.io package published.

image

@alexjustesen
Copy link
Owner

That's interesting... It's definitely because of the switch from a private to public repo. I'll deploy a new version shortly

@alexdelprete
Copy link
Contributor Author

Let me know when it's available so I can test the pull...

@alexjustesen
Copy link
Owner

@alexdelprete new image published

@alexdelprete
Copy link
Contributor Author

alexdelprete commented Sep 15, 2022

can you give me the ghcr.io url? I can't find it. On the homepage of the repo it still says that there's no package available.

Tried on another docker instance:

version: '3.3'
services:
  speedtest-tracker:
    image: ghcr.io/alexjustesen/speedtest-tracker:latest
❯ docker compose up -d --force-recreate --remove-orphans
[+] Running 0/1
 ⠿ speedtest-tracker Error                                                                                                                                                                                                              1.1s
Error response from daemon: denied

There's something not right in the repo settings. I have no issues with any other repos. I keep reading "no packages published" on the repo homepage.

image

@alexjustesen
Copy link
Owner

@alexdelprete I fucked up, try again. I thought I changed the package to public and didnt.

@alexdelprete
Copy link
Contributor Author

Pulled it, finally! :)

Errors on startup:

[2022-09-15 14:00:04] production.ERROR: The command "'speedtest' '--accept-license' '--format=json'" failed.
Exit Code: 1(General error)
Working directory: /run/s6/services/queue-worker
Output:
================
Error Output:
================
==============================================================================
Ookla collects certain data through Speedtest that may be considered
personally identifiable, such as your IP address, unique device
identifiers or location. Ookla believes it has a legitimate interest
to share this data with internet providers, hardware manufacturers and
industry regulators to help them understand and create a better and
faster internet. For further information including how the data may be
shared, where the data may be transferred and Ookla's contact details,
please see our Privacy Policy at:
       http://www.speedtest.net/privacy
==============================================================================
To accept the message please run speedtest interactively or use the following: 
    speedtest --accept-gdpr
 {"exception":"[object] (Symfony\\Component\\Process\\Exception\\ProcessFailedException(code: 0): The command \"'speedtest' '--accept-license' '--format=json'\" failed.
Exit Code: 1(General error)
Working directory: /run/s6/services/queue-worker
Output:
================
Error Output:
================
==============================================================================
Ookla collects certain data through Speedtest that may be considered
personally identifiable, such as your IP address, unique device
identifiers or location. Ookla believes it has a legitimate interest
to share this data with internet providers, hardware manufacturers and
industry regulators to help them understand and create a better and
faster internet. For further information including how the data may be
shared, where the data may be transferred and Ookla's contact details,
please see our Privacy Policy at:
       http://www.speedtest.net/privacy
==============================================================================
To accept the message please run speedtest interactively or use the following: 
    speedtest --accept-gdpr
 at /var/www/html/app/Jobs/ExecSpeedtest.php:54)
�
[stacktrace]
#0 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): App\\Jobs\\ExecSpeedtest->handle()
#1 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
#2 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure()
#3 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod()
#4 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php(651): Illuminate\\Container\\BoundMethod::call()
#5 /var/www/html/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(128): Illuminate\\Container\\Container->call()
#6 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\\Bus\\Dispatcher->Illuminate\\Bus\\{closure}()
#7 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#8 /var/www/html/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(132): Illuminate\\Pipeline\\Pipeline->then()
#9 /var/www/html/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(124): Illuminate\\Bus\\Dispatcher->dispatchNow()
#10 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\\Queue\\CallQueuedHandler->Illuminate\\Queue\\{closure}()
#11 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#12 /var/www/html/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(126): Illuminate\\Pipeline\\Pipeline->then()
#13 /var/www/html/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(70): Illuminate\\Queue\\CallQueuedHandler->dispatchThroughMiddleware()
#14 /var/www/html/vendor/laravel/framework/src/Illuminate/Queue/Jobs/Job.php(98): Illuminate\\Queue\\CallQueuedHandler->call()
#15 /var/www/html/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(425): Illuminate\\Queue\\Jobs\\Job->fire()
#16 /var/www/html/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(375): Illuminate\\Queue\\Worker->process()
#17 /var/www/html/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(173): Illuminate\\Queue\\Worker->runJob()
#18 /var/www/html/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(150): Illuminate\\Queue\\Worker->daemon()
#19 /var/www/html/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(134): Illuminate\\Queue\\Console\\WorkCommand->runWorker()
#20 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Illuminate\\Queue\\Console\\WorkCommand->handle()
#21 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
#22 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure()
#23 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod()
#24 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php(651): Illuminate\\Container\\BoundMethod::call()
#25 /var/www/html/vendor/laravel/framework/src/Illuminate/Console/Command.php(144): Illuminate\\Container\\Container->call()
#26 /var/www/html/vendor/symfony/console/Command/Command.php(308): Illuminate\\Console\\Command->execute()
#27 /var/www/html/vendor/laravel/framework/src/Illuminate/Console/Command.php(126): Symfony\\Component\\Console\\Command\\Command->run()
#28 /var/www/html/vendor/symfony/console/Application.php(1002): Illuminate\\Console\\Command->run()
#29 /var/www/html/vendor/symfony/console/Application.php(299): Symfony\\Component\\Console\\Application->doRunCommand()
#30 /var/www/html/vendor/symfony/console/Application.php(171): Symfony\\Component\\Console\\Application->doRun()
#31 /var/www/html/vendor/laravel/framework/src/Illuminate/Console/Application.php(102): Symfony\\Component\\Console\\Application->run()
#32 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(129): Illuminate\\Console\\Application->run()
#33 /var/www/html/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle()
#34 {main}
"} 
sendmail: account default from /etc/msmtprc: envelope-from address is missing

@alexjustesen
Copy link
Owner

@alexdelprete closing this issue for now as pulling has been resolved, but don't worry I opened a separate issue to address ☝️ that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants