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
  • Brite
  • 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 - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. sudo: unable to resolve host Cloudron: Name or service not known

sudo: unable to resolve host Cloudron: Name or service not known

Scheduled Pinned Locked Moved Solved Support
sshbackups
3 Posts 2 Posters 1.1k 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.
  • R Offline
    R Offline
    Ritesh
    wrote on last edited by Ritesh
    #1

    Hi,

    I wanted to remove the manual backups. I logged into the server using SSH using my server's login details and tried to remove the backup files following this: https://docs.cloudron.io/backups/#cleanup-backups

    rm -rf showed Permission denied, then I used sudo and then it said this:

    sudo: unable to resolve host Cloudron: Name or service not known

    I ran sudo nano /etc/hosts which showed this:

    127.0.0.1 localhost
    
    # The following lines are desirable for IPv6 capable hosts
    ::1 ip6-localhost ip6-loopback
    fe00::0 ip6-localnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters
    ff02::3 ip6-allhosts
    

    Should I make changes to this file? Or does Cloudron create separate SSH credentials?

    Please guide me.

    Thanks

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

      This is because the hostname Cloudron is not in /etc/hosts . You can change the hostname to something meaningful (to you) and add an entry in /etc/hosts as well. That way the warning will go away.

      For example, add something like below :

      127.0.1.1	myservername
      
      R 1 Reply Last reply
      0
      • girishG girish

        This is because the hostname Cloudron is not in /etc/hosts . You can change the hostname to something meaningful (to you) and add an entry in /etc/hosts as well. That way the warning will go away.

        For example, add something like below :

        127.0.1.1	myservername
        
        R Offline
        R Offline
        Ritesh
        wrote on last edited by
        #3

        @girish got it, thanks 🙂

        1 Reply Last reply
        0
        • girishG girish marked this topic as a question on
        • girishG girish has marked this topic as solved on

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        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