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. Failed to mount (inactive): mount error(13) when mounting CIFS from Synology

Failed to mount (inactive): mount error(13) when mounting CIFS from Synology

Scheduled Pinned Locked Moved Solved Support
cifssambasynology
17 Posts 4 Posters 12.1k Views 4 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.
  • girishG girish

    @3246 ok, https://www.freedesktop.org/software/systemd/man/systemd.syntax.html has some more.

    Can you please try systemd-escape <your-password> and use that instead of quoting in the mount file? If that works, I can fix up our code accordingly.

    32463 Offline
    32463 Offline
    3246
    wrote on last edited by
    #7

    @girish @nebulon thanks both. The previous password contained: @ & ^

    It works OK on the command line, where I can escape it using double quotes or just pasting it in the prompt when running interactively.

    I will have a go with a test user and suitably complex password and report back, after trying the 'system-escape' option.

    ๐Ÿ‘‰ Find our more www.bebraver.online

    1 Reply Last reply
    0
    • girishG girish

      @3246 ok, https://www.freedesktop.org/software/systemd/man/systemd.syntax.html has some more.

      Can you please try systemd-escape <your-password> and use that instead of quoting in the mount file? If that works, I can fix up our code accordingly.

      32463 Offline
      32463 Offline
      3246
      wrote on last edited by
      #8

      @girish said in Failed to mount (inactive): mount error(13) when mounting CIFS from Synology:

      @3246 ok, https://www.freedesktop.org/software/systemd/man/systemd.syntax.html has some more.

      Can you please try systemd-escape <your-password> and use that instead of quoting in the mount file? If that works, I can fix up our code accordingly.

      Sadly, this did not work. I also tried MD5 hashing but the only reliable way is to use a password without special characters so far ๐Ÿ˜•

      ๐Ÿ‘‰ Find our more www.bebraver.online

      girishG 1 Reply Last reply
      0
      • 32463 3246

        @girish said in Failed to mount (inactive): mount error(13) when mounting CIFS from Synology:

        @3246 ok, https://www.freedesktop.org/software/systemd/man/systemd.syntax.html has some more.

        Can you please try systemd-escape <your-password> and use that instead of quoting in the mount file? If that works, I can fix up our code accordingly.

        Sadly, this did not work. I also tried MD5 hashing but the only reliable way is to use a password without special characters so far ๐Ÿ˜•

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

        @3246 ๐Ÿ˜ž thanks for trying! If you don't mind trying one more approach:

        • Create a credentials file like:
        username=username
        password=password
        
        • Then in the systemd mount file, do Options=credentials=/path/to/credentialsfile,..other options...

        See articles like https://askubuntu.com/questions/1119819/how-do-i-use-a-credential-file-for-cifs-in-etc-fstab

        I think we should do one of these:

        • When complex passwords are entered in UI, we can inform the user about this limitation, so they don't end up with your situation.

        • If credential file works, we will fix the code to use that approach.

        32463 1 Reply Last reply
        1
        • girishG girish

          @3246 ๐Ÿ˜ž thanks for trying! If you don't mind trying one more approach:

          • Create a credentials file like:
          username=username
          password=password
          
          • Then in the systemd mount file, do Options=credentials=/path/to/credentialsfile,..other options...

          See articles like https://askubuntu.com/questions/1119819/how-do-i-use-a-credential-file-for-cifs-in-etc-fstab

          I think we should do one of these:

          • When complex passwords are entered in UI, we can inform the user about this limitation, so they don't end up with your situation.

          • If credential file works, we will fix the code to use that approach.

          32463 Offline
          32463 Offline
          3246
          wrote on last edited by
          #10

          @girish OK, slowly for those of us who don't read too well ;D

          Do you mean /etc/fstab or some other way to put the options line in? I am familiar with the former but even after DuckDuckGoing for 2min not that much more clued in about the latter.

          What do I do in the GUI?

          ๐Ÿ‘‰ Find our more www.bebraver.online

          girishG 1 Reply Last reply
          0
          • 32463 3246

            @girish OK, slowly for those of us who don't read too well ;D

            Do you mean /etc/fstab or some other way to put the options line in? I am familiar with the former but even after DuckDuckGoing for 2min not that much more clued in about the latter.

            What do I do in the GUI?

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

            @3246 ha ha, sorry about that. Let me see if I can make a patch instead and test locally with special characters, might be easier.

            32463 1 Reply Last reply
            1
            • girishG girish

              @3246 ha ha, sorry about that. Let me see if I can make a patch instead and test locally with special characters, might be easier.

              32463 Offline
              32463 Offline
              3246
              wrote on last edited by
              #12

              @girish thank you ๐Ÿ™‚

              ๐Ÿ‘‰ Find our more www.bebraver.online

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

                I have tried to fix this with https://git.cloudron.io/cloudron/box/-/commit/dbb803ff5e3e837a7c8f49c4890bccc5329946d5 . Let's see if the situation is better in the next release.

                1 Reply Last reply
                1
                • girishG girish has marked this topic as solved on
                • J Offline
                  J Offline
                  jayonrails
                  translator
                  wrote on last edited by
                  #14

                  I have a similar issue when connecting to a Hetzner StorageBox system:

                  Failed to mount (inactive): mount error(128): Key has been revoked Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
                  

                  My settings are the following:

                  Bildschirmยญfoto 2023-02-04 um 13.40.00.png

                  Any tips on how to get this fixed? The git commit is some months old so I thought this might be already included in the latest Cloudron release?

                  Best
                  Jay

                  girishG 1 Reply Last reply
                  0
                  • J jayonrails

                    I have a similar issue when connecting to a Hetzner StorageBox system:

                    Failed to mount (inactive): mount error(128): Key has been revoked Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
                    

                    My settings are the following:

                    Bildschirmยญfoto 2023-02-04 um 13.40.00.png

                    Any tips on how to get this fixed? The git commit is some months old so I thought this might be already included in the latest Cloudron release?

                    Best
                    Jay

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

                    @jayonrails said in Failed to mount (inactive): mount error(13) when mounting CIFS from Synology:

                    Key has been revoked

                    I think the error is coming from Hetzner . Did you possible revoke your existing key? Maybe you can generate new keys and try?

                    J 1 Reply Last reply
                    0
                    • girishG girish

                      @jayonrails said in Failed to mount (inactive): mount error(13) when mounting CIFS from Synology:

                      Key has been revoked

                      I think the error is coming from Hetzner . Did you possible revoke your existing key? Maybe you can generate new keys and try?

                      J Offline
                      J Offline
                      jayonrails
                      translator
                      wrote on last edited by
                      #16

                      @girish does key mean the password I received for the login? Or does it mean the authentication with an SSH Private / public key pair?

                      This would also be possible on Hetzner Storage Box, but is not what I have configured. I am curious because in my understanding a password cannot be revoked, while a private key could be revoked, but is nothing I am using right now.

                      I will check the credentials again and will let you know the results.

                      Best
                      Jay

                      J 1 Reply Last reply
                      0
                      • J jayonrails

                        @girish does key mean the password I received for the login? Or does it mean the authentication with an SSH Private / public key pair?

                        This would also be possible on Hetzner Storage Box, but is not what I have configured. I am curious because in my understanding a password cannot be revoked, while a private key could be revoked, but is nothing I am using right now.

                        I will check the credentials again and will let you know the results.

                        Best
                        Jay

                        J Offline
                        J Offline
                        jayonrails
                        translator
                        wrote on last edited by
                        #17

                        @jayonrails SSH and SAMBA access havenโ€™t been enabled yet, therefore it didnโ€™t worked. After enabling it, everything works perfectly.

                        1 Reply Last reply
                        1

                        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