How to debug automount+sshfs?












0















I am trying to use autofs with an sshfs filesystem. The public key is in place and sshfs brick@domain.com:/data /data works correctly as root. Even with logging = debug, I don't see an error message, but the supposedly mounted filesystem doesn't work.



Here's the autofs map file:



data -fstype=fuse,rw,noauto,nodev,nonempty,noatime,allow_other,idmap=brick :sshfs#brick@domain.com:/data


Here's what mount(1) thinks has happened:



/etc/auto.data on /data type autofs (rw,relatime,fd=7,pgrp=11954,timeout=300,minproto=5,maxproto=5,indirect,pipe_ino=453944)


Here are syslog entries corresponding to /etc/init.d/autofs start and ls /data/bin (a path which should exist).



Jan 27 21:22:24 ego systemd[1]: Starting Automounts filesystems on demand...
Jan 27 21:22:24 ego automount[11634]: Starting automounter version 5.1.2, master map /etc/auto.master
Jan 27 21:22:24 ego automount[11634]: using kernel protocol version 5.02
Jan 27 21:22:24 ego automount[11634]: lookup_nss_read_master: reading master file /etc/auto.master
Jan 27 21:22:24 ego automount[11634]: do_init: parse(sun): init gathered global options: (null)
Jan 27 21:22:24 ego automount[11634]: lookup_read_master: lookup(file): read entry /data
Jan 27 21:22:24 ego automount[11634]: master_do_mount: mounting /data
Jan 27 21:22:24 ego automount[11634]: automount_path_to_fifo: fifo name /var/run/autofs.fifo-data
Jan 27 21:22:24 ego automount[11634]: lookup_nss_read_map: reading map file /etc/auto.data
Jan 27 21:22:24 ego automount[11634]: do_init: parse(sun): init gathered global options: (null)
Jan 27 21:22:24 ego automount[11634]: mounted indirect on /data with timeout 300, freq 75 seconds
Jan 27 21:22:24 ego automount[11634]: st_ready: st_ready(): state = 0 path /data
Jan 27 21:22:24 ego systemd[1]: Started Automounts filesystems on demand.
Jan 27 21:22:26 ego automount[11634]: handle_packet: type = 3
Jan 27 21:22:26 ego automount[11634]: handle_packet_missing_indirect: token 11, name bin, request pid 11659
Jan 27 21:22:26 ego automount[11634]: attempting to mount entry /data/bin
Jan 27 21:22:26 ego automount[11634]: lookup_mount: lookup(file): looking up bin
Jan 27 21:22:26 ego automount[11634]: key "bin" not found in map source(s).
Jan 27 21:22:26 ego automount[11634]: dev_ioctl_send_fail: token = 11
Jan 27 21:22:26 ego automount[11634]: failed to mount /data/bin
Jan 27 21:22:26 ego automount[11634]: st_readmap: state 1 path /data
Jan 27 21:22:26 ego automount[11634]: handle_packet: type = 3
Jan 27 21:22:26 ego automount[11634]: handle_packet_missing_indirect: token 12, name bin, request pid 11659
Jan 27 21:22:26 ego automount[11634]: dev_ioctl_send_fail: token = 12
Jan 27 21:22:26 ego automount[11634]: re-reading map for /data
Jan 27 21:22:26 ego automount[11634]: lookup_nss_read_map: reading map file /etc/auto.data
Jan 27 21:22:26 ego automount[11634]: do_init: parse(sun): init gathered global options: (null)
Jan 27 21:22:26 ego automount[11634]: st_ready: st_ready(): state = 4 path /data


Does any of this represent an error or misconfiguration? Am I missing another useful source of information?










share|improve this question





























    0















    I am trying to use autofs with an sshfs filesystem. The public key is in place and sshfs brick@domain.com:/data /data works correctly as root. Even with logging = debug, I don't see an error message, but the supposedly mounted filesystem doesn't work.



    Here's the autofs map file:



    data -fstype=fuse,rw,noauto,nodev,nonempty,noatime,allow_other,idmap=brick :sshfs#brick@domain.com:/data


    Here's what mount(1) thinks has happened:



    /etc/auto.data on /data type autofs (rw,relatime,fd=7,pgrp=11954,timeout=300,minproto=5,maxproto=5,indirect,pipe_ino=453944)


    Here are syslog entries corresponding to /etc/init.d/autofs start and ls /data/bin (a path which should exist).



    Jan 27 21:22:24 ego systemd[1]: Starting Automounts filesystems on demand...
    Jan 27 21:22:24 ego automount[11634]: Starting automounter version 5.1.2, master map /etc/auto.master
    Jan 27 21:22:24 ego automount[11634]: using kernel protocol version 5.02
    Jan 27 21:22:24 ego automount[11634]: lookup_nss_read_master: reading master file /etc/auto.master
    Jan 27 21:22:24 ego automount[11634]: do_init: parse(sun): init gathered global options: (null)
    Jan 27 21:22:24 ego automount[11634]: lookup_read_master: lookup(file): read entry /data
    Jan 27 21:22:24 ego automount[11634]: master_do_mount: mounting /data
    Jan 27 21:22:24 ego automount[11634]: automount_path_to_fifo: fifo name /var/run/autofs.fifo-data
    Jan 27 21:22:24 ego automount[11634]: lookup_nss_read_map: reading map file /etc/auto.data
    Jan 27 21:22:24 ego automount[11634]: do_init: parse(sun): init gathered global options: (null)
    Jan 27 21:22:24 ego automount[11634]: mounted indirect on /data with timeout 300, freq 75 seconds
    Jan 27 21:22:24 ego automount[11634]: st_ready: st_ready(): state = 0 path /data
    Jan 27 21:22:24 ego systemd[1]: Started Automounts filesystems on demand.
    Jan 27 21:22:26 ego automount[11634]: handle_packet: type = 3
    Jan 27 21:22:26 ego automount[11634]: handle_packet_missing_indirect: token 11, name bin, request pid 11659
    Jan 27 21:22:26 ego automount[11634]: attempting to mount entry /data/bin
    Jan 27 21:22:26 ego automount[11634]: lookup_mount: lookup(file): looking up bin
    Jan 27 21:22:26 ego automount[11634]: key "bin" not found in map source(s).
    Jan 27 21:22:26 ego automount[11634]: dev_ioctl_send_fail: token = 11
    Jan 27 21:22:26 ego automount[11634]: failed to mount /data/bin
    Jan 27 21:22:26 ego automount[11634]: st_readmap: state 1 path /data
    Jan 27 21:22:26 ego automount[11634]: handle_packet: type = 3
    Jan 27 21:22:26 ego automount[11634]: handle_packet_missing_indirect: token 12, name bin, request pid 11659
    Jan 27 21:22:26 ego automount[11634]: dev_ioctl_send_fail: token = 12
    Jan 27 21:22:26 ego automount[11634]: re-reading map for /data
    Jan 27 21:22:26 ego automount[11634]: lookup_nss_read_map: reading map file /etc/auto.data
    Jan 27 21:22:26 ego automount[11634]: do_init: parse(sun): init gathered global options: (null)
    Jan 27 21:22:26 ego automount[11634]: st_ready: st_ready(): state = 4 path /data


    Does any of this represent an error or misconfiguration? Am I missing another useful source of information?










    share|improve this question



























      0












      0








      0








      I am trying to use autofs with an sshfs filesystem. The public key is in place and sshfs brick@domain.com:/data /data works correctly as root. Even with logging = debug, I don't see an error message, but the supposedly mounted filesystem doesn't work.



      Here's the autofs map file:



      data -fstype=fuse,rw,noauto,nodev,nonempty,noatime,allow_other,idmap=brick :sshfs#brick@domain.com:/data


      Here's what mount(1) thinks has happened:



      /etc/auto.data on /data type autofs (rw,relatime,fd=7,pgrp=11954,timeout=300,minproto=5,maxproto=5,indirect,pipe_ino=453944)


      Here are syslog entries corresponding to /etc/init.d/autofs start and ls /data/bin (a path which should exist).



      Jan 27 21:22:24 ego systemd[1]: Starting Automounts filesystems on demand...
      Jan 27 21:22:24 ego automount[11634]: Starting automounter version 5.1.2, master map /etc/auto.master
      Jan 27 21:22:24 ego automount[11634]: using kernel protocol version 5.02
      Jan 27 21:22:24 ego automount[11634]: lookup_nss_read_master: reading master file /etc/auto.master
      Jan 27 21:22:24 ego automount[11634]: do_init: parse(sun): init gathered global options: (null)
      Jan 27 21:22:24 ego automount[11634]: lookup_read_master: lookup(file): read entry /data
      Jan 27 21:22:24 ego automount[11634]: master_do_mount: mounting /data
      Jan 27 21:22:24 ego automount[11634]: automount_path_to_fifo: fifo name /var/run/autofs.fifo-data
      Jan 27 21:22:24 ego automount[11634]: lookup_nss_read_map: reading map file /etc/auto.data
      Jan 27 21:22:24 ego automount[11634]: do_init: parse(sun): init gathered global options: (null)
      Jan 27 21:22:24 ego automount[11634]: mounted indirect on /data with timeout 300, freq 75 seconds
      Jan 27 21:22:24 ego automount[11634]: st_ready: st_ready(): state = 0 path /data
      Jan 27 21:22:24 ego systemd[1]: Started Automounts filesystems on demand.
      Jan 27 21:22:26 ego automount[11634]: handle_packet: type = 3
      Jan 27 21:22:26 ego automount[11634]: handle_packet_missing_indirect: token 11, name bin, request pid 11659
      Jan 27 21:22:26 ego automount[11634]: attempting to mount entry /data/bin
      Jan 27 21:22:26 ego automount[11634]: lookup_mount: lookup(file): looking up bin
      Jan 27 21:22:26 ego automount[11634]: key "bin" not found in map source(s).
      Jan 27 21:22:26 ego automount[11634]: dev_ioctl_send_fail: token = 11
      Jan 27 21:22:26 ego automount[11634]: failed to mount /data/bin
      Jan 27 21:22:26 ego automount[11634]: st_readmap: state 1 path /data
      Jan 27 21:22:26 ego automount[11634]: handle_packet: type = 3
      Jan 27 21:22:26 ego automount[11634]: handle_packet_missing_indirect: token 12, name bin, request pid 11659
      Jan 27 21:22:26 ego automount[11634]: dev_ioctl_send_fail: token = 12
      Jan 27 21:22:26 ego automount[11634]: re-reading map for /data
      Jan 27 21:22:26 ego automount[11634]: lookup_nss_read_map: reading map file /etc/auto.data
      Jan 27 21:22:26 ego automount[11634]: do_init: parse(sun): init gathered global options: (null)
      Jan 27 21:22:26 ego automount[11634]: st_ready: st_ready(): state = 4 path /data


      Does any of this represent an error or misconfiguration? Am I missing another useful source of information?










      share|improve this question
















      I am trying to use autofs with an sshfs filesystem. The public key is in place and sshfs brick@domain.com:/data /data works correctly as root. Even with logging = debug, I don't see an error message, but the supposedly mounted filesystem doesn't work.



      Here's the autofs map file:



      data -fstype=fuse,rw,noauto,nodev,nonempty,noatime,allow_other,idmap=brick :sshfs#brick@domain.com:/data


      Here's what mount(1) thinks has happened:



      /etc/auto.data on /data type autofs (rw,relatime,fd=7,pgrp=11954,timeout=300,minproto=5,maxproto=5,indirect,pipe_ino=453944)


      Here are syslog entries corresponding to /etc/init.d/autofs start and ls /data/bin (a path which should exist).



      Jan 27 21:22:24 ego systemd[1]: Starting Automounts filesystems on demand...
      Jan 27 21:22:24 ego automount[11634]: Starting automounter version 5.1.2, master map /etc/auto.master
      Jan 27 21:22:24 ego automount[11634]: using kernel protocol version 5.02
      Jan 27 21:22:24 ego automount[11634]: lookup_nss_read_master: reading master file /etc/auto.master
      Jan 27 21:22:24 ego automount[11634]: do_init: parse(sun): init gathered global options: (null)
      Jan 27 21:22:24 ego automount[11634]: lookup_read_master: lookup(file): read entry /data
      Jan 27 21:22:24 ego automount[11634]: master_do_mount: mounting /data
      Jan 27 21:22:24 ego automount[11634]: automount_path_to_fifo: fifo name /var/run/autofs.fifo-data
      Jan 27 21:22:24 ego automount[11634]: lookup_nss_read_map: reading map file /etc/auto.data
      Jan 27 21:22:24 ego automount[11634]: do_init: parse(sun): init gathered global options: (null)
      Jan 27 21:22:24 ego automount[11634]: mounted indirect on /data with timeout 300, freq 75 seconds
      Jan 27 21:22:24 ego automount[11634]: st_ready: st_ready(): state = 0 path /data
      Jan 27 21:22:24 ego systemd[1]: Started Automounts filesystems on demand.
      Jan 27 21:22:26 ego automount[11634]: handle_packet: type = 3
      Jan 27 21:22:26 ego automount[11634]: handle_packet_missing_indirect: token 11, name bin, request pid 11659
      Jan 27 21:22:26 ego automount[11634]: attempting to mount entry /data/bin
      Jan 27 21:22:26 ego automount[11634]: lookup_mount: lookup(file): looking up bin
      Jan 27 21:22:26 ego automount[11634]: key "bin" not found in map source(s).
      Jan 27 21:22:26 ego automount[11634]: dev_ioctl_send_fail: token = 11
      Jan 27 21:22:26 ego automount[11634]: failed to mount /data/bin
      Jan 27 21:22:26 ego automount[11634]: st_readmap: state 1 path /data
      Jan 27 21:22:26 ego automount[11634]: handle_packet: type = 3
      Jan 27 21:22:26 ego automount[11634]: handle_packet_missing_indirect: token 12, name bin, request pid 11659
      Jan 27 21:22:26 ego automount[11634]: dev_ioctl_send_fail: token = 12
      Jan 27 21:22:26 ego automount[11634]: re-reading map for /data
      Jan 27 21:22:26 ego automount[11634]: lookup_nss_read_map: reading map file /etc/auto.data
      Jan 27 21:22:26 ego automount[11634]: do_init: parse(sun): init gathered global options: (null)
      Jan 27 21:22:26 ego automount[11634]: st_ready: st_ready(): state = 4 path /data


      Does any of this represent an error or misconfiguration? Am I missing another useful source of information?







      linux debug sshfs autofs






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 28 at 18:46







      Aaron Brick

















      asked Jan 28 at 5:43









      Aaron BrickAaron Brick

      1627




      1627






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1399122%2fhow-to-debug-automountsshfs%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Super User!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1399122%2fhow-to-debug-automountsshfs%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          How to make a Squid Proxy server?

          Is this a new Fibonacci Identity?

          19世紀