Diodon fails to boot under Linux Mint

Bug #1954954 reported by invernosantigos

This bug report was converted into a question: question #700019: Diodon fails to boot under Linux Mint.

6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Diodon
Invalid
Undecided
Unassigned

Bug Description

    In Linux Mint's Cinnamon environment, many applications either don't work or only work partially -- Nobody can, for example, make Clipboard work (it just doesn't work), Copy Q (locks the clipboard, pastes but doesn't copy) Packages Appimage doesn't work at all; just to name the most common cases -- but nothing is as irritating as Diodon, which works, but after a while it doesn't start, and after we've struggled for a solution, it works for a few weeks, and then it stops. start again, and this keeps repeating itself with each repair, as if it were a Ruindows XP bug... Namely, at first, it does not start, or is unstable, closing at the same time it is opening. Running it in a terminal doesn't work, because when you close the terminal, it crashes. My first solution was to add the nohup command to Diodon's syntax ( sudo nohup diodon ), which fixed the problem for 2 weeks, causing the application to start stably, but then it stopped working, and worse, nohup stopped working also. Like everyone who has had problems with the diodon, I've tried sudo -- but of course that doesn't work for autostart, which doesn't support sudo, nor does creating a diodon group and registering it in sudoers; and starting Diodon manually every day is frustrating and irritating, but it worked, until it stopped working. So the next solution was to abandon nohup and use the screen command ( screen -d -m diodon ) and I sincerely recommend that, and include screen in Diodon's dependencies, since screen has to be installed. It worked well, and it still works. But after 2 months it stopped working too. Then I ran into a permissions problem in the application ( in /usr/share/applications/diodon.desktop ). All permissions were root, with no user permissions, and read-only, with no execute permissions -- a very common bug in apps installed on Mint, when written by developers with no knowledge or experience of Cinnammon : Cinnamon has one of the Stricter security policies (read: permissions) for applications, although it is no Sabayon. When installing a new application, it installs it only with the default Mint permissions, unless something else is clearly specified. You can't improvise with it. So much so that it has constant problems with git packages (read: most don't work anyway). I now have to start it manually with sudo, and I can't figure out where the startup bug is. But it appears that Diodon is not recognized as a user process, or at least not as a user process that can access root space. If I start exclusively as an administrator, it works without any problems. But if I log in as a user, or use automatic login (called "guest-user" in Ubuntu, where you can log in as an unspecified user) Diodon won't start, and I can't make myself available to users to start Diodon with sudo for them.
 My only clue : When I say, Mint installs only with Mint's default permissions, unless something else is clearly specified, I mean something like specifying root access, even though it's a user session (the area Mint transfer, like all instances of Cinnamon , is considered root ).

Revision history for this message
invernosantigos (invernosantigos) wrote :

    Addition by the same author about the failure: I found that Diodon starts by autostart in Linux Mint, but it is necessary to run two consecutive launches: In the first one (screen -d -m diodon or sudo screen -d -m diodon ) nothing happens; in the second, finally, the application appears in the system tray. I don't know why two tries, but you can automate launching by autostart if you make two entries, 10 seconds apart (less than 5 doesn't work, more than 10 seconds, other processes in autstart can break the stream -- by " stream" I say the "2 times in a row" as it's almost like it was ) So, to ensure two init calls in a row, I've successfully built 2 entries 10 seconds apart. Making a single call like "screen -d -m dion & screen -d -m dion" does not work. It's definitely a bug, and in any case, you shouldn't need the screen or nohup command. That's it.

Revision history for this message
invernosantigos (invernosantigos) wrote :

     Now it's definitive : The "screen -d -m didon" solution also no longer works. Now I need to repeat this call twice, and THEN enter "sudo screen -d -m didon". NOTHING appears in the system reports (because it's probably not a system problem) But on Melange -- Cinnamon interface bug reports, which who knows why, is separate from Linux Mint system bug reports -- On Melange Diodon fault appears as : "ReferenceError: diodon is not defined", with no other valid information.

Revision history for this message
invernosantigos (invernosantigos) wrote :

    and, my apologies, it's not "didon" or "dion", as it keeps appearing above, it's Diodon, I don't know why, the interface keeps corrupting the name or any diphthong, I don't know why...

Revision history for this message
Oliver Sauder (sao) wrote :

Thanks for raising this. I had a test run with Diodon on Linux Mint 20.2 and it seems to work just fine.

I have a feeling you properly messed up your local permissions by running it by root and that's why there are issues now.

Rule of thumb never run Diodon or most user space application with sudo.

When it comes to Diodon try the following steps to see whether this fixes your setup (some sudo are needed here to resolve possible permission issues):

sudo killall diodon
sudo killall zeitgeist-daemon
sudo mv ~/.local/share/zeitgeist ~/.local/share/zeitgeist.old
# install newest Diodon version if not already the case
sudo add-apt-repository ppa:diodon-team/stable
sudo apt update
sudo apt install diodon

After that reboot your machine to be sure. Diodon should be there in the indicator area. There is an issue (which is be fixed soon) that the very first time nothing gets added to the history (see #1435033). So what you can do is logout and login again and it should start working.

I hope this is helpful. I am turning this issue into a question as I have a feeling it is a setup issue. In case we will find a bug while analyzing we can always open an issue later.

Changed in diodon:
status: New → Invalid
Revision history for this message
invernosantigos (invernosantigos) wrote :

     I am very grateful for your attention and kindness. But I should note, that before trying "sudo", I tried all possible options without sudo. I followed your instructions, and had to purge the zeitgeist. The command given "mv ~ / .local / share / zeitgeist ~ / .local / share / zeitgeist .old" doesn't work because Mint doesn't allow paths with spaces ( then it would have to be /root/.local/share/zeitgeist ) but I'm just pointing this out to show that Mint is squeamish. The option to reinstall the latest version of Diodon is not feasible, as there is no support for the current version of Mint (20 Ullyana, based on Ubuntu Focal Fossa -- And maybe that's why you haven't found anything ) However, purge and reinstalling zeigeist did it for now, but it still needs to start as "screen -d -m diodon", and I need to see how long it works. As I said before, every time Diodon stops starting after some unpredictable time, but usually weeks.
     Finally, since you're still working on the problem, there's something that might help: The Melange warning I mentioned (""ReferenceError: diodon is not defined" ) I googled the Mint support forums, and I heard that the same kind of error occurs with Appimages ( another thing that doesn't work in Mint ) But in this case, there is a consensus that the problem is that the Appimage packages are not recognized as executables, no matter how many times the user resets its properties to executable - - either via terminal, GUI, or whatever -- That is, the problem with Diodon in Mint, it could also be that it is not recognized as a valid executable without sudo. I sincerely hope this helps you ! Good job , and Happy New Year, Sao-sama !

Revision history for this message
invernosantigos (invernosantigos) wrote :

   Yeah, again, stopped booting. It lasted exactly 10 days. It's always 10 days, I don't know why -- some auto-update or auto-clean setting or something, maybe. But if that were all, it would at least be possible to start it manually in the terminal, which never happens, and you still can't start it stably without the screen command ( screen -d -m didon ), as I said before . And I had to repeat the previous success ritual: Purge on Zeitgeist and reinstall that Zeitgeist. When trying to start manually via the terminal, the system specifically responds that there is no such zeitgeist-daemon installed. There's a great clue! But to test properly, this time I purged and reinstalled just zeitgeist-datahub, to verify that the corrupted settings are not in it, and it DID NOT work. Purge & Reinstall, for now, has to be on Zeitgeist itself. Next time, I'll just try zeitgeist-core, to check if the corrupted settings are in it. Maybe it's better to think of something like creating "safe settings" with some kind of guarantee. If you give me where is the "zeitgeist.conf", or something like that, if it exists; I can copy it before reinstalling, and send it to you next time. And let's see if it's ALWAYS 10 days. The next failure would then be on Jan 20th. And as there was that suggestion of yours about sudo, which apparently has nothing to do with it, if you send me the location of "zeitgeist.conf", as a guarantee, I'll also check and send you its permissions. I think we are accumulating some good leads...

Revision history for this message
invernosantigos (invernosantigos) wrote :

    Hey, sorry for the second post on the same day, but I decided to look for the supposed "zeitgeist.conf" ( see previous post ), on my own, scanning the system, and found that it doesn't exist. My intention was to do a copy.bkp type backup, and when it breaks again, instead of doing Purge & Reinstall, I'd just try to reinstall the original settings to see if it finally works... And I'd send a copy of it NOW, for you be able to verify that it wasn't some failure of the Diodon NO MINT installation that corrupted the settings and created some critical failure. My hypothesis was that some such failure would be moving the supposed "zeitgeist.conf" to some strange folder or place. But to keep things simple, it wasn't like that, because there isn't a "zeitgeist.conf", as I've seen. I was even disappointed.

    But, on the other hand, my scan found several broken zeitgeist files, which I hope will give you useful hints. Here they are, with their respective paths:

/run/user/1000/systemd/units/invocation:zeitgeist.service
/run/user/1000/systemd/units/invocation:zeitgeist-fts.service
/lib/x86_64-linux-gnu/libzeitgeist-2.0.so.0

It caught my attention that two of the broken ones are systemd files. It feels like a much deeper flaw than I expected. I tried to copy these broken ones to a folder, before Blechbit disappears with them. But it seems that of two, only the path is left. Only libzeitgeist-2.0.so.0 was left.

Revision history for this message
Oliver Sauder (sao) wrote :

I do not think those files have anything to do with it. Zeitgeist stores is data at `~/.local/share/zeitgeist` so once you have the error you could simply delete it and start Diodon again like the following:

killall diodon
killall zeitgeist-daemon
rm -R ~/.local/share/zeitgeist
-> Start Diodon through the Menu

What you could also try is to tell Zeitgeist not to persist the data on the file system but in memory (this means that after a reboot the history will be gone - this is just a suggestion for testing). You can do this with the following command:

echo "ZEITGEIST_DATABASE_PATH=:memory:" >> ~/.pam_environment

after that you need to reboot.

Revision history for this message
invernosantigos (invernosantigos) wrote :

    But what has solved, at least in my case, is to Purge Zeitgeist and reinstall, without touching the history. Diodon returns without having to restart the machine and without losing the history. So nothing in the history should be the source of the problem. Remembering, the problem is only in Mint's systemd, which has shown some incompatibility with Zeitgeist, which doesn't start, and that's what I found. I intend to check if the broken files I listed will show up broken again on the next crash. Then I'll try to pre-backup them up and investigate if the problem was corrupt permissions. is what i can do to help since i don't know a line of programming.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.