User Tools

Site Tools


wiki:samba_troubleshooting

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
wiki:samba_troubleshooting [2023/05/09 15:11] – created antisawiki:samba_troubleshooting [2024/05/09 10:12] (current) – add Hetzner storage suddenly stops working antisa
Line 18: Line 18:
  
   mount -a   mount -a
 +
 +Another solution is to prefer [[wiki:ipv4_over_ipv6|ipv4 over ipv6]] and the dns name should work again.
 +
 +===== CIFS: Status code returned 0xc000006d STATUS_LOGON_FAILURE =====
 +Error from ''journalctl -xe'':
 +
 +  ...kernel: CIFS: VFS: \\uxxxxxx.your-storagebox.de Send error in SessSetup = -13
 +  ...kernel: CIFS: Status code returned 0xc000006d STATUS_LOGON_FAILURE
 +
 +When trying to ''ls'' the directory the error is:
 +
 +  ls: /mnt/backup-storage: Host is down
 +
 +The above happened when using the Hetzner storage box. When using the IP address the mounting works. Another workaround is to leave the DNS name and lazy unmount and remount the cifs share e.g.
 +
 +  umount -l /mnt/backup-storage
 +  mount -a
 +
 +Try a couple of times above and then check with ''df -h'' and it should work again.
 +
 +===== Hetzner storage suddenly stops working =====
 +Example:
 +
 +<code>
 +root@host:~# ls -l /mnt/
 +ls: cannot access '/mnt/backup-storage': Host is down
 +total 0
 +d????????? ? ? ? ?             ? backup-storage
 +
 +
 +root@host:~# findmnt
 +...
 +└─/mnt/backup-storage          //u287957.your-storagebox.de/backup
 +                                           cifs        rw,relatime,vers=3.1.1,cache=strict,username=xxxx,uid=0,noforceuid,gid=0,noforcegid,addr=159.69.63.181,file_mode=0660,dir_mode=0660,
 +
 +</code>
 +
 +It might be that the IP address changed and in ///etc/fstab// you have domain set up like so
 +
 +  //u287957.your-storagebox.de/backup /mnt/backup-storage cifs iocharset=utf8,rw,credentials=login.txt,file_mode=0660,dir_mode=0660 0 0
 +
 +Try pinging the dns name:
 +  ~# ping -4 u287957.your-storagebox.de
 +  ~# ping u287957.your-storagebox.de
 +
 +You should see that the IP changed. Now unmount and remount everything and it should fix it.
 +
 +  umount /mnt/backup-storage
 +  umount //u287957.your-storagebox.de/backup
 +
 +  mount -a
 +
 +
  
 ====== Tested on ====== ====== Tested on ======
Line 26: Line 79:
  
 ====== References ====== ====== References ======
 +  * https://serverfault.com/questions/414074/mount-cifs-host-is-down
  
wiki/samba_troubleshooting.1683637904.txt.gz · Last modified: 2023/05/09 15:11 by antisa

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki