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


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved Install fails (unauthorized: authentication required)

    Support
    installation docker
    2
    4
    234
    Loading More Posts
    • 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.
    • mmolivier
      mmolivier last edited by girish

      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!

      girish 1 Reply Last reply Reply Quote 0
      • girish
        girish Staff @mmolivier last edited by

        @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 Reply Quote 0
        • girish
          girish Staff last edited by

          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 Reply Quote 0
          • mmolivier
            mmolivier last edited by

            @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 Reply Quote 0
            • First post
              Last post
            Powered by NodeBB