Pycharm - Unable to save settings Error
When I was installing PyCharm 2024.1.6, everything went smoothly. Afterward, I started using PyCharm, and for the first few minutes, there were no errors/warnings. However, after a few minutes, the warning "Unable to save settings: Failed to save settings. Please restart PyCharm" started popping up frequently in the bottom right corner of the window.
I have already tried the following methods to resolve this issue:
- Restarting PyCharm.
- Reinstalling PyCharm.
- Modifying the permissions of the .idea folder in the project directory.
- Modifying the permissions of the PyCharm folder.
- Deleting the .idea folder in the project directory and then restarting PyCharm, let PyCharm to build a new one.
None of these measures have solved the problem. Below is the content of the idea.log file in the PyCharm installation folder:
2024-08-31 01:13:12,130 [ 294483] INFO - #c.i.a.o.PathMacrosImpl - Saved path macros: {}
2024-08-31 01:13:14,067 [ 296420] INFO - #c.i.w.i.i.j.s.JpsGlobalModelSynchronizerImpl - Saving global entities com.intellij.platform.workspace.jps.entities.SdkEntity to files
2024-08-31 01:13:14,068 [ 296421] INFO - #c.i.w.i.i.j.s.JpsGlobalModelSynchronizerImpl - Saving global entities com.intellij.platform.workspace.jps.entities.LibraryEntity to files
2024-08-31 01:13:24,359 [ 306712] INFO - #git4idea.commands.GitHandler - [.] git version
2024-08-31 01:13:24,452 [ 306805] INFO - #git4idea.commands.GitHandler - git version 2.45.1.windows.1
2024-08-31 01:13:24,482 [ 306835] INFO - #git4idea.config.GitExecutableManager - Git version for C:\Program Files\Git\cmd\git.exe: 2.45.1.0 (MSYS)
2024-08-31 01:14:05,056 [ 347409] INFO - #c.i.w.i.i.j.s.JpsGlobalModelSynchronizerImpl - Saving global entities com.intellij.platform.workspace.jps.entities.SdkEntity to files
2024-08-31 01:14:05,056 [ 347409] INFO - #c.i.w.i.i.j.s.JpsGlobalModelSynchronizerImpl - Saving global entities com.intellij.platform.workspace.jps.entities.LibraryEntity to files
2024-08-31 01:14:05,116 [ 347469] INFO - #c.i.a.o.PathMacrosImpl - Saved path macros: {}
2024-08-31 01:14:05,154 [ 347507] WARN - #c.i.o.c.i.s.StoreUtil - Save settings failed
org.h2.mvstore.MVStoreException: This store is read-only [2.2.224/2]
at org.h2.mvstore.DataUtils.newMVStoreException(DataUtils.java:996)
at org.h2.mvstore.MVStore.store(MVStore.java:804)
at org.h2.mvstore.MVStore.tryCommit(MVStore.java:744)
at org.h2.mvstore.MVStore.tryCommit(MVStore.java:737)
at com.intellij.platform.settings.local.MvStoreManager$save$2.invokeSuspend(MvMapManager.kt:53)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:115)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:103)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)
2024-08-31 01:14:05,393 [ 347746] INFO - #c.i.w.i.i.j.s.JpsGlobalModelSynchronizerImpl - Saving global entities com.intellij.platform.workspace.jps.entities.SdkEntity to files
2024-08-31 01:14:05,394 [ 347747] INFO - #c.i.w.i.i.j.s.JpsGlobalModelSynchronizerImpl - Saving global entities com.intellij.platform.workspace.jps.entities.LibraryEntity to files
2024-08-31 01:14:05,453 [ 347806] INFO - #c.i.a.o.PathMacrosImpl - Saved path macros: {}
2024-08-31 01:14:07,057 [ 349410] INFO - #c.i.w.i.i.j.s.JpsGlobalModelSynchronizerImpl - Saving global entities com.intellij.platform.workspace.jps.entities.SdkEntity to files
2024-08-31 01:14:07,058 [ 349411] INFO - #c.i.w.i.i.j.s.JpsGlobalModelSynchronizerImpl - Saving global entities com.intellij.platform.workspace.jps.entities.LibraryEntity to files
2024-08-31 01:14:07,117 [ 349470] INFO - #c.i.a.o.PathMacrosImpl - Saved path macros: {}
2024-08-31 01:14:07,471 [ 349824] INFO - #c.i.w.i.i.j.s.JpsGlobalModelSynchronizerImpl - Saving global entities com.intellij.platform.workspace.jps.entities.SdkEntity to files
2024-08-31 01:14:07,472 [ 349825] INFO - #c.i.w.i.i.j.s.JpsGlobalModelSynchronizerImpl - Saving global entities com.intellij.platform.workspace.jps.entities.LibraryEntity to files
2024-08-31 01:14:07,540 [ 349893] INFO - #c.i.a.o.PathMacrosImpl - Saved path macros: {}
2024-08-31 01:14:07,791 [ 350144] INFO - #c.i.w.i.i.j.s.JpsGlobalModelSynchronizerImpl - Saving global entities com.intellij.platform.workspace.jps.entities.SdkEntity to files
2024-08-31 01:14:07,792 [ 350145] INFO - #c.i.w.i.i.j.s.JpsGlobalModelSynchronizerImpl - Saving global entities com.intellij.platform.workspace.jps.entities.LibraryEntity to files
2024-08-31 01:14:07,852 [ 350205] INFO - #c.i.a.o.PathMacrosImpl - Saved path macros: {}
2024-08-31 01:14:08,065 [ 350418] INFO - #c.i.w.i.i.j.s.JpsGlobalModelSynchronizerImpl - Saving global entities com.intellij.platform.workspace.jps.entities.SdkEntity to files
2024-08-31 01:14:08,066 [ 350419] INFO - #c.i.w.i.i.j.s.JpsGlobalModelSynchronizerImpl - Saving global entities com.intellij.platform.workspace.jps.entities.LibraryEntity to files
2024-08-31 01:14:08,124 [ 350477] INFO - #c.i.a.o.PathMacrosImpl - Saved path macros: {}
2024-08-31 01:14:08,359 [ 350712] INFO - #c.i.w.i.i.j.s.JpsGlobalModelSynchronizerImpl - Saving global entities com.intellij.platform.workspace.jps.entities.SdkEntity to files
2024-08-31 01:14:08,360 [ 350713] INFO - #c.i.w.i.i.j.s.JpsGlobalModelSynchronizerImpl - Saving global entities com.intellij.platform.workspace.jps.entities.LibraryEntity to files
2024-08-31 01:14:08,419 [ 350772] INFO - #c.i.a.o.PathMacrosImpl - Saved path macros: {}
2024-08-31 01:14:08,599 [ 350952] INFO - #c.i.w.i.i.j.s.JpsGlobalModelSynchronizerImpl - Saving global entities com.intellij.platform.workspace.jps.entities.SdkEntity to files
2024-08-31 01:14:08,601 [ 350954] INFO - #c.i.w.i.i.j.s.JpsGlobalModelSynchronizerImpl - Saving global entities com.intellij.platform.workspace.jps.entities.LibraryEntity to files
2024-08-31 01:14:08,659 [ 351012] INFO - #c.i.a.o.PathMacrosImpl - Saved path macros: {}
2024-08-31 01:14:08,824 [ 351177] INFO - #c.i.w.i.i.j.s.JpsGlobalModelSynchronizerImpl - Saving global entities com.intellij.platform.workspace.jps.entities.SdkEntity to files
2024-08-31 01:14:08,825 [ 351178] INFO - #c.i.w.i.i.j.s.JpsGlobalModelSynchronizerImpl - Saving global entities com.intellij.platform.workspace.jps.entities.LibraryEntity to files
2024-08-31 01:14:08,884 [ 351237] INFO - #c.i.a.o.PathMacrosImpl - Saved path macros: {}
2024-08-31 01:14:09,055 [ 351408] INFO - #c.i.w.i.i.j.s.JpsGlobalModelSynchronizerImpl - Saving global entities com.intellij.platform.workspace.jps.entities.SdkEntity to files
2024-08-31 01:14:09,056 [ 351409] INFO - #c.i.w.i.i.j.s.JpsGlobalModelSynchronizerImpl - Saving global entities com.intellij.platform.workspace.jps.entities.LibraryEntity to files
2024-08-31 01:14:09,112 [ 351465] INFO - #c.i.a.o.PathMacrosImpl - Saved path macros: {}
2024-08-31 01:14:12,289 [ 354642] INFO - #c.i.w.i.i.j.s.JpsGlobalModelSynchronizerImpl - Saving global entities com.intellij.platform.workspace.jps.entities.SdkEntity to files
2024-08-31 01:14:12,290 [ 354643] INFO - #c.i.w.i.i.j.s.JpsGlobalModelSynchronizerImpl - Saving global entities com.intellij.platform.workspace.jps.entities.LibraryEntity to files
2024-08-31 01:17:21,341 [ 543694] INFO - #c.i.p.i.b.ApplicationLoader - External Windows command received
Can anyone help me with this issue?
Please sign in to leave a comment.
Thanks Leijia and sure, the upload ID is: 2024_09_05_gFcST6TPLDpMmuZCdXfWZn
Is this a network/samba disk?
It seems the IDE fails to save settings on the network disk (this is probably a bug and I will create a bug report for it).
Can you please copy files from `\\xxx\yyy\user.name\AppData\Roaming\JetBrains\PyCharmCE2024.1` to `C:\Users\user.name\AppData\Roaming\JetBrains\PyCharmCE2024.1`, then change the IDE config folder back to this default IDE config path, restart the IDE to see if it fix your issue?
Or you could change it to another non-network disk if you have no space in C disk.