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. [BUG] Automount fail on reboot with Ubuntu 20.04

[BUG] Automount fail on reboot with Ubuntu 20.04

Scheduled Pinned Locked Moved Unsolved Support
20.04cifswebdav
52 Posts 8 Posters 9.1k Views 7 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.
  • nebulonN Offline
    nebulonN Offline
    nebulon
    Staff
    wrote on last edited by
    #2

    Do you see any failing attempt of automounting it during boot? Can you try adding defaults,_netdev to the fstab line? Maybe the network comes up a bit too slowly and thus the automount fails?

    JOduMonTJ 1 Reply Last reply
    0
    • nebulonN nebulon

      Do you see any failing attempt of automounting it during boot? Can you try adding defaults,_netdev to the fstab line? Maybe the network comes up a bit too slowly and thus the automount fails?

      JOduMonTJ Offline
      JOduMonTJ Offline
      JOduMonT
      wrote on last edited by
      #3

      @nebulon said in Why my CIFS automatic mount fail on every reboot ?:

      Do you see any failing attempt of automounting it during boot?

      I did manually look the /var/log/dmesg and saw nothing anormal
      44be5a94-9e53-4af1-971c-d44647b6419b-image.png

      @nebulon said in Why my CIFS automatic mount fail on every reboot ?:

      Can you try adding defaults,_netdev to the fstab line? Maybe the network comes up a bit too slowly and thus the automount fails?

      I did add those line, without success 😞
      I still need to do mount -a after a reboot

      BTW it is on Ubuntu 20.04 LTS

      P JOduMonTJ 2 Replies Last reply
      1
      • nebulonN Offline
        nebulonN Offline
        nebulon
        Staff
        wrote on last edited by
        #4

        Hm the exact same options work for me fine, however on 18.04 so this indeed might have changed in behavior, although I can't really find anything related to that.

        1 Reply Last reply
        0
        • JOduMonTJ JOduMonT

          @nebulon said in Why my CIFS automatic mount fail on every reboot ?:

          Do you see any failing attempt of automounting it during boot?

          I did manually look the /var/log/dmesg and saw nothing anormal
          44be5a94-9e53-4af1-971c-d44647b6419b-image.png

          @nebulon said in Why my CIFS automatic mount fail on every reboot ?:

          Can you try adding defaults,_netdev to the fstab line? Maybe the network comes up a bit too slowly and thus the automount fails?

          I did add those line, without success 😞
          I still need to do mount -a after a reboot

          BTW it is on Ubuntu 20.04 LTS

          P Offline
          P Offline
          p44
          translator
          wrote on last edited by
          #5

          @jodumont Me too I had this behavior on last restart...

          1 Reply Last reply
          0
          • jdaviescoatesJ Offline
            jdaviescoatesJ Offline
            jdaviescoates
            wrote on last edited by jdaviescoates
            #6

            It's working fine for me.

            Here is what I have in fstab:

            //uxxxxx.your-storagebox.de/backup /mnt/storage cifs iocharset=utf8,rw,credentials=/xxx/xxxxx-credentials.txt,uid=yellowtent,gid=yellowtent,file_mode=0660,dir_mode=0770 0 0
            

            It did unmount once during a backup, but that's the only hiccup I've had to date.

            I use Cloudron with Gandi & Hetzner

            JOduMonTJ P 2 Replies Last reply
            1
            • jdaviescoatesJ jdaviescoates

              It's working fine for me.

              Here is what I have in fstab:

              //uxxxxx.your-storagebox.de/backup /mnt/storage cifs iocharset=utf8,rw,credentials=/xxx/xxxxx-credentials.txt,uid=yellowtent,gid=yellowtent,file_mode=0660,dir_mode=0770 0 0
              

              It did unmount once during a backup, but that's the only hiccup I've had to date.

              JOduMonTJ Offline
              JOduMonTJ Offline
              JOduMonT
              wrote on last edited by
              #7

              @jdaviescoates are you with 18.04LTS or 20.04LTS ?

              jdaviescoatesJ 1 Reply Last reply
              0
              • JOduMonTJ JOduMonT

                @jdaviescoates are you with 18.04LTS or 20.04LTS ?

                jdaviescoatesJ Offline
                jdaviescoatesJ Offline
                jdaviescoates
                wrote on last edited by
                #8

                @jodumont 18.04. You?

                I use Cloudron with Gandi & Hetzner

                1 Reply Last reply
                0
                • JOduMonTJ JOduMonT

                  @nebulon said in Why my CIFS automatic mount fail on every reboot ?:

                  Do you see any failing attempt of automounting it during boot?

                  I did manually look the /var/log/dmesg and saw nothing anormal
                  44be5a94-9e53-4af1-971c-d44647b6419b-image.png

                  @nebulon said in Why my CIFS automatic mount fail on every reboot ?:

                  Can you try adding defaults,_netdev to the fstab line? Maybe the network comes up a bit too slowly and thus the automount fails?

                  I did add those line, without success 😞
                  I still need to do mount -a after a reboot

                  BTW it is on Ubuntu 20.04 LTS

                  JOduMonTJ Offline
                  JOduMonTJ Offline
                  JOduMonT
                  wrote on last edited by
                  #9

                  @jdaviescoates said in Why my CIFS automatic mount fail on every reboot ?:

                  @jodumont 18.04. You?

                  jodumont said

                  BTW it is on Ubuntu 20.04 LTS

                  🙂

                  1 Reply Last reply
                  1
                  • jdaviescoatesJ jdaviescoates

                    It's working fine for me.

                    Here is what I have in fstab:

                    //uxxxxx.your-storagebox.de/backup /mnt/storage cifs iocharset=utf8,rw,credentials=/xxx/xxxxx-credentials.txt,uid=yellowtent,gid=yellowtent,file_mode=0660,dir_mode=0770 0 0
                    

                    It did unmount once during a backup, but that's the only hiccup I've had to date.

                    P Offline
                    P Offline
                    p44
                    translator
                    wrote on last edited by
                    #10

                    @jdaviescoates How is working now? Did you experienced problems in last days? I switched to Wasabi meanwhile find a durable solution to this problem...

                    jdaviescoatesJ 1 Reply Last reply
                    0
                    • P p44

                      @jdaviescoates How is working now? Did you experienced problems in last days? I switched to Wasabi meanwhile find a durable solution to this problem...

                      jdaviescoatesJ Offline
                      jdaviescoatesJ Offline
                      jdaviescoates
                      wrote on last edited by jdaviescoates
                      #11

                      @p44 I'm not having any problems. Streaming music off of my Hetzner Storage Box mounted as a Cloudron Volume and connected to my Navidrome app as I type.

                      I use Cloudron with Gandi & Hetzner

                      JOduMonTJ 1 Reply Last reply
                      1
                      • nebulonN Offline
                        nebulonN Offline
                        nebulon
                        Staff
                        wrote on last edited by
                        #12

                        If I am reading those version messages correctly, it does look like the automount on Ubuntu 20 has some kind of regression, while servers on 18 are working reliably?

                        JOduMonTJ 1 Reply Last reply
                        0
                        • nebulonN nebulon

                          If I am reading those version messages correctly, it does look like the automount on Ubuntu 20 has some kind of regression, while servers on 18 are working reliably?

                          JOduMonTJ Offline
                          JOduMonTJ Offline
                          JOduMonT
                          wrote on last edited by
                          #13

                          @nebulon said in Why my CIFS automatic mount fail on every reboot ?:

                          If I am reading those version messages correctly, it does look like the automount on Ubuntu 20 has some kind of regression, while servers on 18 are working reliably?

                          In plain english 🙂 yes the issue seams to be only with Ubuntu 20.04

                          1 Reply Last reply
                          0
                          • jdaviescoatesJ Offline
                            jdaviescoatesJ Offline
                            jdaviescoates
                            wrote on last edited by
                            #14

                            Possible related to this?

                            SMB1 disabled by default: can still be enabled via a /etc/samba/smb.conf config change;

                            https://wiki.ubuntu.com/FocalFossa/ReleaseNotes#Samba_4.11

                            More info here:
                            https://www.samba.org/samba/history/samba-4.11.0.html

                            Found via https://askubuntu.com/questions/1229929/cant-acces-nas-anymore-after-upgrading-to-20-04

                            I use Cloudron with Gandi & Hetzner

                            JOduMonTJ 1 Reply Last reply
                            1
                            • jdaviescoatesJ jdaviescoates

                              Possible related to this?

                              SMB1 disabled by default: can still be enabled via a /etc/samba/smb.conf config change;

                              https://wiki.ubuntu.com/FocalFossa/ReleaseNotes#Samba_4.11

                              More info here:
                              https://www.samba.org/samba/history/samba-4.11.0.html

                              Found via https://askubuntu.com/questions/1229929/cant-acces-nas-anymore-after-upgrading-to-20-04

                              JOduMonTJ Offline
                              JOduMonTJ Offline
                              JOduMonT
                              wrote on last edited by
                              #15

                              @jdaviescoates said in My CIFS automount fail on reboot with Ubuntu 20.04:

                              Possible related to this?

                              thank for your reach, I'll definitely give a try to this and come back soon.

                              1 Reply Last reply
                              2
                              • JOduMonTJ Offline
                                JOduMonTJ Offline
                                JOduMonT
                                wrote on last edited by
                                #16

                                @jdaviescoates I just look at it
                                and on Cloudron Samba server is not installed
                                so nothing to configure in /etc/samba/* which actually don't even exist.

                                WEBDAV

                                I have the same behavior with webdav
                                on reboot I have to login and do mount -a

                                here the option for my davfs in /etc/fstab: rw,_netdev,uid=yellowtent,gid=yellowtent,file_mode=0660,dir_mode=0770 0 0
                                I also tried with auto and defaults

                                few people suggest to use rc.local

                                1 Reply Last reply
                                0
                                • JOduMonTJ Offline
                                  JOduMonTJ Offline
                                  JOduMonT
                                  wrote on last edited by JOduMonT
                                  #17

                                  I just got an idea
                                  @nebulon
                                  it is possible than cloudron mount the volumes before my automount so then the target directory of my automount is not empty ?

                                  Also how could I destroy thoses volumes the GUI don't make it happen ?
                                  3d381110-ff30-443a-87bf-7dd22fc3d4c9-image.png

                                  JOduMonTJ 1 Reply Last reply
                                  0
                                  • JOduMonTJ JOduMonT

                                    I just got an idea
                                    @nebulon
                                    it is possible than cloudron mount the volumes before my automount so then the target directory of my automount is not empty ?

                                    Also how could I destroy thoses volumes the GUI don't make it happen ?
                                    3d381110-ff30-443a-87bf-7dd22fc3d4c9-image.png

                                    JOduMonTJ Offline
                                    JOduMonTJ Offline
                                    JOduMonT
                                    wrote on last edited by
                                    #18

                                    @jodumont said in My CIFS automount fail on reboot with Ubuntu 20.04:

                                    it is possible than cloudron mount the volumes before my automount so then the target directory of my automount is not empty ?

                                    nope, even without any volumes configured in Cloudron
                                    CIFS and WEBDAV won't mount automatically 😞

                                    1 Reply Last reply
                                    0
                                    • JOduMonTJ Offline
                                      JOduMonTJ Offline
                                      JOduMonT
                                      wrote on last edited by JOduMonT
                                      #19

                                      @nebulon and @girish

                                      I just copy the config (/etc/fstab and /etc/davfs2/secret) to my Ubuntu 20.04LTS Desktop
                                      and my webdav mount automatically on the reboot.

                                      So it seams to be a bug on the cloudron side.

                                      1 Reply Last reply
                                      0
                                      • nebulonN Offline
                                        nebulonN Offline
                                        nebulon
                                        Staff
                                        wrote on last edited by
                                        #20

                                        Cloudron itself does not handle any mount points as such. So this looks like this is some issue with 20.04 server then. Note that the desktop flavor has a lot more things installed usually, which may or may not trigger automounting correctly.

                                        JOduMonTJ 1 Reply Last reply
                                        0
                                        • nebulonN nebulon

                                          Cloudron itself does not handle any mount points as such. So this looks like this is some issue with 20.04 server then. Note that the desktop flavor has a lot more things installed usually, which may or may not trigger automounting correctly.

                                          JOduMonTJ Offline
                                          JOduMonTJ Offline
                                          JOduMonT
                                          wrote on last edited by JOduMonT
                                          #21

                                          @nebulon said in [BUG] Automount fail on reboot with Ubuntu 20.04:

                                          Cloudron itself does not handle any mount points as such. So this looks like this is some issue with 20.04 server then. Note that the desktop flavor has a lot more things installed usually, which may or may not trigger automounting correctly.

                                          I have no doubt of the quality of coding from the Cloudron Team
                                          but I just boot an ubuntu 20.04 LTS at Hetzner
                                          did

                                          apt update
                                          apt install -y davfs2
                                          mkdir /mnt/storagebox
                                          

                                          than cut and past my 2 lines
                                          1 from /etc/fstab
                                          1 for /etc/davfs2/secret

                                          reboot and it work

                                          so yes Ubuntu Desktop have probably more fuse than server but now the only difference is Cloudron.

                                          nebulonN 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