Bug report #18477
QGIS 3 "unable to save auxiliary storage"
|Affected QGIS version:||3.4.1||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||26365|
Using QGIS 3, upon attempting to save the loaded project, I'll get the message "unable to save auxiliary storage" and the saving will be unsuccessful.
It doesn't have happen every time I use the program, but I can't isolate anything different about the times it does.
#5 Updated by Calvin Thompson over 1 year ago
I've experienced this issue on 2.18.16 and now 3.0.2. I often leave qgis running as I add new client properties for my lawn care company. If I forget to save this can be a nuisance since I'll have to reload all the shape files.
Just now it happened again in 3.02, however I ended task in task manager hoping an automatic backup would save me. When I reopened it was up to date. Don't know if it has no effect in 3.02 or not, but there definitely was a small panic thinking I was going to have to recreate my project file again.
#6 Updated by Adam Stewart over 1 year ago
Also encountered this on macOS 10.13.5 with QGIS 3.2.0. Unfortunately, I have no additional info on how to reproduce it. It affects both Save and Save As. Before I tried to save, I tried to quit and it asked me if I wanted to save my changes. After seeing the error message, it no longer complained when I tried to quit, so I assume this means it actually saved and the error message is a red herring.
#10 Updated by Kim Frankcombe over 1 year ago
Same issue on Ubuntu 16.04 with QGIS 3.2.1. Tried save, save as, tried saving to /tmp where I know write permissions would not be an issue all no good. Change the files type to .qgs and it all worked fine. Curious that the file I originally opened was a qgs file so not sure why it wanted to change to .qgz on plain save. I just tried to repeat my steps but it now saves just fine so I can't reliably reproduce this sorry.
#18 Updated by Tom Grundy over 1 year ago
Same issue in 3.2.1 on Windows 10. Simple project (nevada_county_roads) and base data (Road_Centerlines) attached. Maybe a possible clue: it had been saving fine as qgz for quite a while, and after I added some rule-based symbology to Road_Centerlines, it started giving the same message. Changed from .qgz to .qgs and it saves fine. I have not tried to track it down any farther, since I need to move forward on this project with the valid .qgs workaround in place. Thanks
#19 Updated by Nick Hatch about 1 year ago
Paul Blottiere wrote:
I opened a PR in order to add a more explicit message. It's not a bugfix of course, but it will help us to determine the origin of the problem.
Thanks Paul - I think that was really helpful. Just hit this with QGIS 3.4.1-Madeira on macOS 10.12.6, the error message was: "Unable to save auxiliary storage ('Cannot open /var/folders/2l/.../T/QGIS3-duDXtB/ProjectName.qgd for input')"
I first hit this issue with QGIS 3.2.x(1?) on OS X with a long-running open project, and lost a lot of work. Upgraded to 3.4.1-Madeira - and was really cautious with saving frequently. Was away from the computer for two-weeks, when I came back the computer was in a deep hibernate state with QGIS open. Tried to save and quit, received the error.
Is it possible that the root cause here is the underlying OS cleaning up temporary files out from under QGIS?
#21 Updated by belg4mit - about 1 year ago
I've run into this as well. It definitely does not save the data (the file timestamp remains unmodified), yet the asterisk indicating unsaved data in the window title disappears.
Bug #20828 seems to be a duplicate of this, but it does include a work-around for those encountering it, which might also be included in a revised error dialog: Try saving as QGS instead of QGZ.
#24 Updated by Andreas Olsson 11 months ago
Same problem on Windows 10.
Error message: "Unable to save project C:\*****" -> "Unable to save auxiliary storage ('Cannot open C:/Users/****/AppData/Local/Temp/QGIS3-pbvmYI/*****.qgd for input')"
The folder isnt there, so does it fail to create it??
It seems to be a difference using .qgs instead of qgz.