-
Notifications
You must be signed in to change notification settings - Fork 590
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Longhorn cifs backups cannot find credentials #8630
Comments
Hi @ZanderPittari, The backup target URL had been modified to The last error log in the 2024-05-24T12:38:41.273798359+10:00 E0524 02:38:41.270519 1545448 mount_linux.go:230] Mount failed: exit status 1
2024-05-24T12:38:41.273801804+10:00 Mounting command: mount
2024-05-24T12:38:41.273804717+10:00 Mounting arguments: -t cifs -o soft,<masked>,<masked> //192.168.10.2/longhorn-backups /var/lib/longhorn-backupstore-mounts/192_168_10_2/longhorn-backups
2024-05-24T12:38:41.273807308+10:00 Output: username specified with no parameter
2024-05-24T12:38:41.273809302+10:00 Could you provide the secret You could empty the |
I think I accidentally uploaded the wrong support bundle. Let me attach a new one: |
Still the same error, Could you provide the secret smbcreds or check if CIFS_USERNAME and CIFS_PASSWORD are set correctly? (ref: Set up SMB/CIFS Backupstore) 2024-05-24T14:06:11.397990263+10:00 time="2024-05-24T04:06:11Z" level=info msg="Mounting CIFS share cifs://192.168.10.2/longhorn-backups on mount point /var/lib/longhorn-backupstore-mounts/192_168_10_2/longhorn-backups with optio
ns [soft]" func="cifs.(*BackupStoreDriver).mount" file="cifs.go:115" pkg=cifs
2024-05-24T14:06:11.397994138+10:00 E0524 04:06:11.395709 1571963 mount_linux.go:230] Mount failed: exit status 1
2024-05-24T14:06:11.397997593+10:00 Mounting command: mount
2024-05-24T14:06:11.397999919+10:00 Mounting arguments: -t cifs -o soft,<masked>,<masked> //192.168.10.2/longhorn-backups /var/lib/longhorn-backupstore-mounts/192_168_10_2/longhorn-backups
2024-05-24T14:06:11.398002006+10:00 Output: username specified with no parameter
2024-05-24T14:06:11.398003433+10:00
2024-05-24T14:06:11.398005500+10:00 time="2024-05-24T04:06:11Z" level=fatal msg="Failed to run list system backup command" func=cmd.SystemBackupCmd.SystemBackupListCmd.func4 file="system_backup.go:72" error="cannot mount CIFS share 192.168.10.2/longhorn-backups, options [soft]: mount failed: exit status 1\nMounting command: mount\nMounting arguments: -t cifs -o soft,<masked>,<masked> //192.168.10.2/longhorn-backups /var/lib/longhorn-backupstore-mounts/192_168_10_2/longhorn-backups\nOutput: username specified with no parameter\n"
2024-05-24T14:06:11.398007061+10:00 : exit status 1 Not sure it is about kernel issue of CIFS (#8611) |
I know the creds work because I am using the same ones for other shares. The details are below: |
The error occurred at Could you upgrade to v1.6.2 to check if it will occur again because we have modified the flow to get the synchronizing information? |
Could you show the secret information by the command |
Hi @ZanderPittari, Please replace the like: #!/bin/bash
USERNAME=${Username of SMB/CIFS Server}
PASSWORD=${Password of SMB/CIFS Server}
CIFS_USERNAME=`echo -n ${USERNAME} | base64`
CIFS_PASSWORD=`echo -n ${PASSWORD} | base64`
cat <<EOF >>cifs_secret.yml
apiVersion: v1
kind: Secret
metadata:
name: cifs-secret
namespace: longhorn-system
type: Opaque
data:
CIFS_USERNAME: ${CIFS_USERNAME}
CIFS_PASSWORD: ${CIFS_PASSWORD}
EOF
kubectl apply -f cifs_secret.yml |
You are a legend, it's backing up now. Didn't realise it had to use a specific naming convention |
Describe the bug
Longhorn won't find my credentials for cifs backups. Have also tried changing to nfs but it kept complaining about cifs credentials even though I had the correct credentials passed through.
To Reproduce
Hard to reproduce. Enter the cifs backup target in the gui also with the credentials.
Expected behavior
Should allow me to backup my volumes to my unraid server.
Support bundle for troubleshooting
supportbundle_913f7d1d-6412-427c-87ee-1fe64c171768_2024-05-24T02-39-44Z.zip
Environment
Additional context
The text was updated successfully, but these errors were encountered: