René's URL Explorer Experiment


Title: CIFS NAS Backups failing "randomly" · Issue #12122 · apache/cloudstack · GitHub

Open Graph Title: CIFS NAS Backups failing "randomly" · Issue #12122 · apache/cloudstack

X Title: CIFS NAS Backups failing "randomly" · Issue #12122 · apache/cloudstack

Description: problem It seems that in my current conditions, the backups are failing because of a CIFS warning that is failing the Backup even if the backup was indeed successful 2025-11-24 11:05:32,938 ERROR [o.a.c.b.NASBackupProvider] (API-Job-Exec...

Open Graph Description: problem It seems that in my current conditions, the backups are failing because of a CIFS warning that is failing the Backup even if the backup was indeed successful 2025-11-24 11:05:32,938 ERROR [...

X Description: problem It seems that in my current conditions, the backups are failing because of a CIFS warning that is failing the Backup even if the backup was indeed successful 2025-11-24 11:05:32,938 ERROR [...

Opengraph URL: https://github.com/apache/cloudstack/issues/12122

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"CIFS NAS Backups failing \"randomly\"","articleBody":"### problem\n\nIt seems that in my current conditions, the backups are failing because of a CIFS warning that is failing the Backup even if the backup was indeed successful\n\n```\n2025-11-24 11:05:32,938 ERROR [o.a.c.b.NASBackupProvider] (API-Job-Executor-11:[ctx-673f730c, job-3216, ctx-2492b04d]) (logid:2a7df0d3) Failed to take backup for VM i-12-606-VM: Job type:         Completed   \nOperation:        Backup      \nTime elapsed:     29235        ms\nFile processed:   23.000 GiB\nFile remaining:   0.000 B\nFile total:       23.000 GiB\n\n2769033951\n2025-11-24 11:05:32,946 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-11:[ctx-673f730c, job-3216]) (logid:2a7df0d3) Complete async job-3216, jobStatus: FAILED, resultCode: 530, result: org.apache.cloudstack.api.response.ExceptionResponse/null/{\"uuidList\":[],\"errorcode\":\"530\",\"errortext\":\"Failed to create VM backup\"}\n```\n\nI tried downgrading from smb 3.1.1 to 3.0, but it didn't fixed the issue, here is my full mount options :\n`//XXXX.XXXX/xxxxxx on /tmp/csbackup.YDH0M type cifs (rw,relatime,vers=3.0,cache=strict,upcall_target=app,username=xxxxxxx,uid=0,noforceuid,gid=0,noforcegid,addr=78.46.12.119,file_mode=0755,dir_mode=0755,soft,nounix,serverino,mapposix,nobrl,reparse=nfs,nativesocket,symlink=native,rsize=4194304,wsize=4194304,bsize=1048576,retrans=1,echo_interval=60,actimeo=1,closetimeo=1)`\n\n\n### versions\n\n- CloudStack 4.22.0.0\n```\n[root@compute01 ~]# uname -a\nLinux compute01 5.14.0-570.17.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Fri May 23 22:47:01 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux\n```\n```\n[root@compute01 ~]# cat /etc/os-release \nNAME=\"Rocky Linux\"\nVERSION=\"9.6 (Blue Onyx)\"\n```\n```\n[root@compute01 ~]# ls -lah /tmp/csbackup.YDH0M/i-12-606-VM/2025.11.24.11.04.56/\ntotal 1.4G\ndrwxr-xr-x. 2 root root    0 Nov 24 11:04 .\ndrwxr-xr-x. 2 root root    0 Nov 24 11:03 ..\n-rwxr-xr-x. 1 root root 2.8M Nov 24 11:03 datadisk.96c4484b-2b51-46bd-9476-c7c9e0cedb87.qcow2\n-rwxr-xr-x. 1 root root 5.7K Nov 24 11:04 domain-config.xml\n-rwxr-xr-x. 1 root root  299 Nov 24 11:05 domblklist.xml\n-rwxr-xr-x. 1 root root  166 Nov 24 11:04 domiflist.xml\n-rwxr-xr-x. 1 root root  620 Nov 24 11:04 dominfo.xml\n-rwxr-xr-x. 1 root root 2.6G Nov 24 11:04 root.98ee2a4e-8c87-4a2e-8b61-aac596fffebd.qcow2\n```\n\n### The steps to reproduce the bug\n\n1. Configure the NAS Backup plugin\n2. Add a CIFS (SMB) backup repository\n3. Try to do multiple backups (Sometimes it fails, sometimes it doesnt)\n\n\n### What to do about it?\n\nhttps://github.com/apache/cloudstack/blob/8171d9568c941877e0290f77051ed45f31a73544/scripts/vm/hypervisor/kvm/nasbackup.sh#L151\n\nIt seems that the CIFS mount doesn't really treat `sync` as it should in my current setup, and stays busy even after syncing :\n```\n[root@compute01 ~]# /usr/bin/bash /usr/share/cloudstack-common/scripts/vm/hypervisor/kvm/nasbackup.sh -o backup -v i-12-606-VM -t cifs -s '//XXXXXXXX.xxxxxxxx/xxxxxxxx' -m 'vers=3.0,username=xxxxxxx,password=xxxxxxxx' -p 'i-12-606-VM/2025.11.24.12.02.09' -q false -d ''\nJob type:         Completed   \nOperation:        Backup      \nTime elapsed:     27079        ms\nFile processed:   23.000 GiB\nFile remaining:   0.000 B\nFile total:       23.000 GiB\n\n2769033951\numount: /tmp/csbackup.rnf14: target is busy.\n\n```\n\nWe could avoid this issue by checking if the mountpoint is still busy, for example with fuser (more available than lsof) :\n```bash\n  # Print statistics\n  virsh -c qemu:///system domjobinfo $VM --completed\n  du -sb $dest | cut -f1\n\n  elapsed=0\n  while fuser -m \"$mount_point\" \u003e/dev/null 2\u003e\u00261; do\n    if (( elapsed \u003e= 10 )); then\n      echo \"Timeout for unmounting reached: still busy\"\n      exit 1\n    fi\n    sleep 1\n    elapsed=$((elapsed + 1))\n  done\n\n  umount $mount_point\n  rmdir $mount_point\n```\n\nAlso when i checked the code for the script, it seems that the backup_stopped_vm is not umounting and removing the mount point, i don't know if that's on purpose.","author":{"url":"https://github.com/Hanarion","@type":"Person","name":"Hanarion"},"datePublished":"2025-11-24T11:23:05.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/12122/cloudstack/issues/12122"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:66a1d97c-33b2-6c7b-8c1c-bffee6dd5a1e
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9DF2:19A6A8:23C661:33A584:6A4E68AF
html-safe-nonceceb798c1b779967b54fa9d48150946ce005d867f2a6d6b7facb10f8433a11f02
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5REYyOjE5QTZBODoyM0M2NjE6MzNBNTg0OjZBNEU2OEFGIiwidmlzaXRvcl9pZCI6IjQyMTg0NzYzNDQwMTMzODM4NTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac5b31414fab32fe8628b9aeb566fe2a5767a90a0111148702a237273f7375722c
hovercard-subject-tagissue:3658422667
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/apache/cloudstack/12122/issue_layout
twitter:imagehttps://opengraph.githubassets.com/0bf6ce61f9d0c403d7718e6e256007e5ae236a1d3d3ebfc29dfd3c68778165c1/apache/cloudstack/issues/12122
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0bf6ce61f9d0c403d7718e6e256007e5ae236a1d3d3ebfc29dfd3c68778165c1/apache/cloudstack/issues/12122
og:image:altproblem It seems that in my current conditions, the backups are failing because of a CIFS warning that is failing the Backup even if the backup was indeed successful 2025-11-24 11:05:32,938 ERROR [...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameHanarion
hostnamegithub.com
expected-hostnamegithub.com
None41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c
turbo-cache-controlno-preview
go-importgithub.com/apache/cloudstack git https://github.com/apache/cloudstack.git
octolytics-dimension-user_id47359
octolytics-dimension-user_loginapache
octolytics-dimension-repository_id9759448
octolytics-dimension-repository_nwoapache/cloudstack
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id9759448
octolytics-dimension-repository_network_root_nwoapache/cloudstack
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasee6a744804e8e70f97b4d5a18a94dcc63db22f97a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/apache/cloudstack/issues/12122#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fapache%2Fcloudstack%2Fissues%2F12122
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fapache%2Fcloudstack%2Fissues%2F12122
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=apache%2Fcloudstack
Reloadhttps://github.com/apache/cloudstack/issues/12122
Reloadhttps://github.com/apache/cloudstack/issues/12122
Reloadhttps://github.com/apache/cloudstack/issues/12122
Please reload this pagehttps://github.com/apache/cloudstack/issues/12122
apache https://github.com/apache
cloudstackhttps://github.com/apache/cloudstack
Notifications https://github.com/login?return_to=%2Fapache%2Fcloudstack
Fork 1.3k https://github.com/login?return_to=%2Fapache%2Fcloudstack
Star 3k https://github.com/login?return_to=%2Fapache%2Fcloudstack
Code https://github.com/apache/cloudstack
Issues 536 https://github.com/apache/cloudstack/issues
Pull requests 265 https://github.com/apache/cloudstack/pulls
Discussions https://github.com/apache/cloudstack/discussions
Actions https://github.com/apache/cloudstack/actions
Projects https://github.com/apache/cloudstack/projects
Wiki https://github.com/apache/cloudstack/wiki
Security and quality 0 https://github.com/apache/cloudstack/security
Insights https://github.com/apache/cloudstack/pulse
Code https://github.com/apache/cloudstack
Issues https://github.com/apache/cloudstack/issues
Pull requests https://github.com/apache/cloudstack/pulls
Discussions https://github.com/apache/cloudstack/discussions
Actions https://github.com/apache/cloudstack/actions
Projects https://github.com/apache/cloudstack/projects
Wiki https://github.com/apache/cloudstack/wiki
Security and quality https://github.com/apache/cloudstack/security
Insights https://github.com/apache/cloudstack/pulse
Bughttps://github.com/apache/cloudstack/issues?q=type:"Bug"
#12133https://github.com/apache/cloudstack/pull/12133
CIFS NAS Backups failing "randomly"https://github.com/apache/cloudstack/issues/12122#top
#12133https://github.com/apache/cloudstack/pull/12133
Severity:Majorhttps://github.com/apache/cloudstack/issues?q=state%3Aopen%20label%3A%22Severity%3AMajor%22
component:kvmhttps://github.com/apache/cloudstack/issues?q=state%3Aopen%20label%3A%22component%3Akvm%22
type:bughttps://github.com/apache/cloudstack/issues?q=state%3Aopen%20label%3A%22type%3Abug%22
4.22.2https://github.com/apache/cloudstack/milestone/46
https://github.com/Hanarion
Hanarionhttps://github.com/Hanarion
on Nov 24, 2025https://github.com/apache/cloudstack/issues/12122#issue-3658422667
cloudstack/scripts/vm/hypervisor/kvm/nasbackup.shhttps://github.com/apache/cloudstack/blob/8171d9568c941877e0290f77051ed45f31a73544/scripts/vm/hypervisor/kvm/nasbackup.sh#L151
8171d95https://github.com/apache/cloudstack/commit/8171d9568c941877e0290f77051ed45f31a73544
Severity:Majorhttps://github.com/apache/cloudstack/issues?q=state%3Aopen%20label%3A%22Severity%3AMajor%22
component:kvmhttps://github.com/apache/cloudstack/issues?q=state%3Aopen%20label%3A%22component%3Akvm%22
type:bughttps://github.com/apache/cloudstack/issues?q=state%3Aopen%20label%3A%22type%3Abug%22
Bughttps://github.com/apache/cloudstack/issues?q=type:"Bug"
Apache CloudStack BugFest - Issueshttps://github.com/orgs/apache/projects/362
4.22.2No due datehttps://github.com/apache/cloudstack/milestone/46
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.