Closed ghost closed 8 months ago
Looks like you are unable to write to the filesystem.
Anyway, what GNU/Linux are you using? — version included. And what are the steps to replicate this.
I am using default settings in both DataGrip and Flatseal. After doing several checks, I can confirm that the filesystem=host
permission is enabled by default. To confirm:
Despite reinstalling it multiple times, including deleting all files, and not just reinstalling while keeping the data, I consistently encounter the same issue.
I am using Fedora Silverblue 39. The problem can be replicated by installing the software through GNOME Software via Flathub, opening an SQL file, and attempting to run it. These notices will show up:
Click on "Configure data source" and add anything. It'll pop up after a few seconds:
Is there a way to share logs?
Double checked, and I'm able to work just fine with DataGrip in Arch Linux.
I've also tested the latest version in an Ubuntu VM to verify if there was something odd, but it looks like this is something with your system or Silverblue.
Drivers are stored in
${HOME}/.var/app/com.jetbrains.DataGrip/config/JetBrains/{DATAGRIP_VERSION}/jdbc-drivers/
— you should be able to see something there.
I would verify if there are any issues with other Flatpak applications — other JetBrains' products (just testing the trial versions) and a random Flatpak application.
I use https://8n1.org/ to share logs. This is a service where you can't modify anything, so make sure you want to share those and that there is nothing particularly sensitive.
It might be a Silverblue-related problem due to its immutability, although I personally don't think so because Flatpaks are sandboxed and don't interfere with system files, they only affect user files, if I'm not mistaken. Other JetBrains products work fine for me. I frequently use IntelliJ IDEA Community and haven't encountered any issues. Other Flatpak applications also work perfectly, I've never had any problems with them.
Here is the XML log from ${HOME}/.var/app/com.jetbrains.DataGrip/config/JetBrains/{DATAGRIP_VERSION}/jdbc-drivers/
:
I would be pleased to provide any additional logs if needed. Just let me know the path, and I'll share them.
I meant that, regardless of the error message, you might see the drivers downloaded at that location — ${HOME}/.var/app/com.jetbrains.DataGrip/config/JetBrains/{DATAGRIP_VERSION}/jdbc-drivers/
. The XML file are the JDBC drivers you could download, but once any of those is actually downloaded, it will create a sub-directory in that path with the type, version, etc.
For the errors, DataGrip should store them in ${HOME}/.var/app/com.jetbrains.DataGrip/cache/JetBrains/{DATAGRIP_VERSION}/log/idea.log
— this file should give you the exact reason why DataGrip is unable to save anything.
Thank you for the clarification. My apologies for the misunderstanding. Here is the error message that is displayed in the log:
2024-01-11 13:29:10,227 [ 52913] WARN - #c.i.o.c.i.s.StoreUtil - Save settings failed
java.nio.file.FileSystemException: /app/share/jetbrains-flatpak-wrapper/.idea: Read-only file system
Where is your project located at? Are you trying to save your project to /app/share/jetbrains-flatpak-wrapper/
? If that's the case, it is not going to work for the reasons you mentioned before.
Try to use some other namespace within your home directory, for instance.
Wow, I can't believe this was the issue all along! I feel like an idiot now. Thank you so much for your help and I apologize deeply for any inconveniences/troubles I caused. It was my mistake. Thanks again!
I keep receiving a spamming notification that DataGrip is unable to save any changes. I'm also unable to execute any code, rendering the entire application useless. I've checked Flatseal to ensure there are no permissions blocking storage access, but everything appears to be fine.![Screenshot from 2024-01-10 17-56-30](https://github.com/flathub/com.jetbrains.DataGrip/assets/123986260/d50a227c-1aee-4f7f-9fe2-3d57c13c2f4c)