Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. Install fails (unauthorized: authentication required)

Install fails (unauthorized: authentication required)

Scheduled Pinned Locked Moved Solved Support
installationdocker
4 Posts 2 Posters 798 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • mmolivierM Offline
    mmolivierM Offline
    mmolivier
    wrote on last edited by girish
    #1

    Hi,
    I'm running into an authentication error while installing Cloudron:

    molivier@ubuntu:~/Downloads$ sudo ./cloudron-setup
    
    ##############################################
             Cloudron Setup (latest)
    ##############################################
    
     Follow setup logs in a second terminal with:
     $ tail -f /var/log/cloudron-setup.log
    
     Join us at https://forum.cloudron.io for any questions.
    
    => Updating apt and installing script dependencies
    => Checking version
    => Downloading version 6.1.2 ...
    => Installing base dependencies and downloading docker images (this takes some time) ...Init script failed. See /var/log/cloudron-setup.log for details
    

    Log:

    echo -e "\tPulling docker images: ${images}"
            Pulling docker images: cloudron/base:2.0.0@sha256:f9fea80513aa7c92fe2e7bf3978b54c8ac5222f47a9a32a7f8833edf0eb5a4f4 cloudron/turn:1.2.0@sha256:4359aae80050a92bae3be30600fb93ef4dbaec6dc9254bda353c0>
    for image in ${images}; do
        docker pull "${image}"
        docker pull "${image%@sha256:*}" # this will tag the image for readability
    done
    Error response from daemon: unauthorized: authentication required
    

    Seems like the init script runs into an authentication error here, but I can't seem to find out which docker image is throwing authentication errors https://git.cloudron.io/cloudron/box/blob/5a7e636f2d5fee2c3c5bec166e61ab4bcaa41531/baseimage/initializeBaseUbuntuImage.sh#L89

    Am I doing something wrong?

    Thanks!

    girishG 1 Reply Last reply
    0
    • mmolivierM mmolivier

      Hi,
      I'm running into an authentication error while installing Cloudron:

      molivier@ubuntu:~/Downloads$ sudo ./cloudron-setup
      
      ##############################################
               Cloudron Setup (latest)
      ##############################################
      
       Follow setup logs in a second terminal with:
       $ tail -f /var/log/cloudron-setup.log
      
       Join us at https://forum.cloudron.io for any questions.
      
      => Updating apt and installing script dependencies
      => Checking version
      => Downloading version 6.1.2 ...
      => Installing base dependencies and downloading docker images (this takes some time) ...Init script failed. See /var/log/cloudron-setup.log for details
      

      Log:

      echo -e "\tPulling docker images: ${images}"
              Pulling docker images: cloudron/base:2.0.0@sha256:f9fea80513aa7c92fe2e7bf3978b54c8ac5222f47a9a32a7f8833edf0eb5a4f4 cloudron/turn:1.2.0@sha256:4359aae80050a92bae3be30600fb93ef4dbaec6dc9254bda353c0>
      for image in ${images}; do
          docker pull "${image}"
          docker pull "${image%@sha256:*}" # this will tag the image for readability
      done
      Error response from daemon: unauthorized: authentication required
      

      Seems like the init script runs into an authentication error here, but I can't seem to find out which docker image is throwing authentication errors https://git.cloudron.io/cloudron/box/blob/5a7e636f2d5fee2c3c5bec166e61ab4bcaa41531/baseimage/initializeBaseUbuntuImage.sh#L89

      Am I doing something wrong?

      Thanks!

      girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by
      #2

      @mmolivier Were you logged into docker by any chance before you ran the installation script? Can you do sudo docker logout and then just rerun the script again? Another thing to quickly try is to run the script as root user instead of via sudo.

      (I just ran the install script here as root user and it did work just fine now. I am trying via sudo in the meantime).

      1 Reply Last reply
      0
      • girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by
        #3

        It seems to work fine with sudo as well.

        girish@ubuntu-s-1vcpu-2gb-nyc1-01:~$ sudo ./cloudron-setup 
        
        ##############################################
                 Cloudron Setup (latest)
        ##############################################
        
         Follow setup logs in a second terminal with:
         $ tail -f /var/log/cloudron-setup.log
        
         Join us at https://forum.cloudron.io for any questions.
        
        => Updating apt and installing script dependencies
        => Checking version
        => Downloading version 6.1.2 ...
        => Installing base dependencies and downloading docker images (this takes some time) ...
        => Installing version 6.1.2 (this takes some time) ...
        => Waiting for cloudron to be ready (this takes some time) ....
        
        After reboot, visit https://68.183.97.196 and accept the self-signed certificate to finish setup.
        
        1 Reply Last reply
        0
        • mmolivierM Offline
          mmolivierM Offline
          mmolivier
          wrote on last edited by
          #4

          @girish it's been solved. I did a docker logout and tried again. Got the error again but this time the error was a bit more detailed. Tried it again and it worked.

          Thanks!

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Bookmarks
          • Search