-
Notifications
You must be signed in to change notification settings - Fork 171
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
Upgrading Dangerzone Leaves Dangling Files, Preventing it from Starting #514
Comments
@sudwhiwdh what platform are you on? We currently support the following:
(taken from https://github.com/freedomofpress/dangerzone/blob/main/INSTALL.md) |
Regarding the availability in the package manager, earlier in the year we changed where our software is hosted and users need to install the repositories again (instructions for Debian / Ubuntu and Fedora). Is this something you've done recently? If not, that could be the issue. We pulled the plug on the old software repositories recently and that could be behind the software not showing on the gnome software application. |
Hi, |
Which command do I use to launch dangerzone from the terminal? |
OK. That's a bit more problematic, because that is supposed to work. Let's follow your suggestion and start it from the terminal to see if something pops up.
If it says that it doesn't exist, can you try installing it via the terminal? ( |
[user@fedora ~]$ dangerzone-cli [user@fedora ~]$ dangerzone |
[user@fedora ~]$ sudo dnf install dangerzone |
That is odd. Does it get resolved if you remove it and install it again?
|
After removing and reinstalling, the same terminal output appears for dangerzone and dangerzone-cli. |
Damn, I have seen similar issues happen when an application is built for one python version but installed on a system with another. And thank you for your patience. If it's not too burdensome, would be able to run the following commands? So we check if Dangerzone was installed properly?
For context I just installed Dangerzone well in a new Fedora 38 virtual machine but failed to replicate this issue. |
[user@fedora ~]$ python3 -c "import dangerzone" |
What exactly does |
Thank you.
Because it ran without any issues, that means that Dangerzone can be successfully loaded by python (the programming language Dangerzone uses). That means that the issue is somehow in the file |
Doesn't the error message already tell in which line(s) the error is caused? |
I see something unexpected there. Theoretically there should be a file called
|
Normally it does, but in this case, no module named Dangerzone
|
init.py is init.py. I guess the underscores got lost during copying. |
|
Ah, then this is not the issue. For some reason this file didn't show in a previous command. Unfortunately I'm heading out for the day so we might need to cut it short today. I'll be back on Wednesday. Thanks again for the help and sorry that there wasn't much progress. |
Is listed as init.py. I did not know yet that I have to represent Thank you for researching together and have a great day! |
Ah! You're right. That was it then.
You too! |
Hi, I had the same issue.
For me, this happens every dangerzone update. IMO the rpm packaging should be fixed so it automatically removes the old files on upgrade / reinstall. |
Thank you both for flagging this issue. We were always installing the latest Dangerzone artifacts in a vacuum (which has its merits), so we never stumbled on this bad behavior. It's good that we have a workaround for now, but let's have a clear way forward as well. Ideally, I'd want us to:
We'll keep this issue updated once we have news on this front. |
oh btw, dangerzone still has the issue where it requires me to temporarily disable SELinux on fedora 38 for the conversion process to work, but now the latest version has a new issue: it says i have run out of space halfway through conversion when i have plenty of space |
Ok, we definitely need two separate GitHub issues for these two things, since they may take some digging. I was under the impression that (1) was fixed, since we now mount directories with Can I ask you to open these two issues for your findings, and maybe share some error messages there? Else I can open them and ping you. |
Fedora-38 (on Qubes OS), I installed on Fedora 38 Dangerzone 0.4.1 and then upgrading to 0.4.2. And I was unable to reproduce this issue, since dangerzone 0.4.2 started up just fine from the terminal. I do see, however, the stale directory:
But somehow it doesn't interfere with the loading. I will try now with a full-blown Fedora 38. |
I think I'm pretty close to the bottom of this. Turns out the issue is a bit wider in scope. In short, doing
My guess is that it's not removed because these Most critically it leaves the |
This is not the case, Debian packages remove the
This is not so straightforward. We'd need to have a post-install script that removes these empty |
This is something we're definitely considering. It will require doing our own RPM packging, but that's in good timing because we have other reasons to do so. We'll should have more news on this by the end of the week. |
In theory you already fix this by following this suggestion:
If that doesn't work, please let us know. |
Tried #514 (comment). After that, when I start using When I start via Error: Missing argument 'FILENAMES...'. |
Right, this operation may take a few minutes, since it loads a ~1GiB container image. Did you see an error while waiting? I bet that it will work without issues. As for the |
But probably now you can launch its graphical version either via the applications menu or by calling |
[user@fedora ~]$ dangerzone |
I think I've seen this before, but I don't think it interferes with Dangerzone. Note you're seeing extra (debug) information because you're starting the graphical version from the terminal. Normally (starting by opening the application) you wouldn't see this. Can you see the |
As before, dangerzone is no longer found in GNOME software. |
Thanks. However, I think this appears to be an unrelated issue. I have opened a new one for it here. So let's continue the conversation there, if you don't mind. |
I not only don't mind, I'm also very grateful that you immediately created a new issue for it! |
If you don't mind, I'd like to focus a bit on this:
Just to make sure I get it straight:
My question here is, what happens if you wait 5-10 minutes for the installation to finish? |
This only works again after #514 (comment) |
Ok, that's a relief. Then we have the issue of dangling files that we need to tackle, as well as the fact that Dangerzone cannot be found in the Gnome software center. We are actively working on these, and we will give updates soon. |
Introduce a SPEC file that can be used to create an RPM from a Python source distribution. Some notable features of this SPEC file follow: 1. We can use this SPEC file to create both regular RPM packages and ones targeted for Qubes. 2. It has a post installation script that removes stale .egg-info directories, which previously caused issues to our users. 3. It automatically creates a changelog from our Git logs, which differs from the actual CHANGELOG.md. 4. It folloes the latest Fedora guidelines (as of writing this) for packaging Python projects. Fixes #514
Introduce a SPEC file that can be used to create an RPM from a Python source distribution. Some notable features of this SPEC file follow: 1. We can use this SPEC file to create both regular RPM packages and ones targeted for Qubes. 2. It has a post installation script that removes stale .egg-info directories, which previously caused issues to our users. 3. It automatically creates a changelog from our Git logs, which differs from the actual CHANGELOG.md. 4. It folloes the latest Fedora guidelines (as of writing this) for packaging Python projects. Fixes #514
Introduce a SPEC file that can be used to create an RPM from a Python source distribution. Some notable features of this SPEC file follow: 1. We can use this SPEC file to create both regular RPM packages and ones targeted for Qubes. 2. It has a post installation script that removes stale .egg-info directories, which previously caused issues to our users. 3. It automatically creates a changelog from our Git logs, which differs from the actual CHANGELOG.md. 4. It folloes the latest Fedora guidelines (as of writing this) for packaging Python projects. Fixes #514
The text was updated successfully, but these errors were encountered: