Skip to content
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

Flatpak history not really working #4332

Closed
mrckndt opened this issue Jun 28, 2021 · 11 comments · Fixed by #4526
Closed

Flatpak history not really working #4332

mrckndt opened this issue Jun 28, 2021 · 11 comments · Fixed by #4526
Assignees
Labels
bug cli Issues involving the flatpak command

Comments

@mrckndt
Copy link

mrckndt commented Jun 28, 2021

Linux distribution and version

Fedora Silverblue 34

Flatpak version

1.10.2

Description of the problem

Commands like flatpak history --columns=all or flatpak history --columns=time,application are returning "error: is not application or runtime" or "error: appstream2/x86_64 is not application or runtime" (two different machines, exact same setup). flatpak history --columns=time,installation works somewhat but also return lines like

Jun 25 17:59:25 system
Jun 25 17:59:26 system

which should not happen according to the manpage

This will be either the ID of a Flatpak installation, or the path to a temporary OSTree repository.

Steps to reproduce

While using flatpak history use different column field combinations.

@mrckndt mrckndt changed the title Flatpak history not relly working Flatpak history not really working Jun 28, 2021
@ajgringo619
Copy link

Also happening with v1.11.2 (via PPA)

@hackel
Copy link

hackel commented Jul 21, 2021

Dupe #4121

@JaneSmith
Copy link

Same issue here... Just came to report this.

I'm running Fedora Silverblue 34.20210724.0 with Flatpak 1.10.2-4.

@repsorp
Copy link

repsorp commented Sep 5, 2021

$ flatpak history -vv
F: No installations directory in /etc/flatpak/installations.d. Skipping
F: Opening system flatpak installation at path /var/lib/flatpak
F: Opening user flatpak installation at path /home/test/.local/share/flatpak
error: appstream2/x86_64 is not application or runtime

Ubuntu 21.04
Flatpak 1.10.2

@mwleeds mwleeds self-assigned this Oct 28, 2021
@mwleeds mwleeds added this to the 1.13.1 milestone Oct 28, 2021
@mwleeds mwleeds added bug cli Issues involving the flatpak command labels Oct 28, 2021
mwleeds added a commit that referenced this issue Oct 28, 2021
The history command seems to have been broken since it was changed to
use FlatpakDecomposed, since that type only works for app or runtime
refs, resulting in errors such as:
$ flatpak history
error: appstream2/x86_64 is not application or runtime

Fix this by making the logic a bit smarter, and don't let any one
invalid ref entry prevent the whole command from working.

Fixes #4332
mwleeds added a commit that referenced this issue Oct 28, 2021
The history command seems to have been broken since it was changed to
use FlatpakDecomposed, since that type only works for app or runtime
refs, resulting in errors such as:
$ flatpak history
error: appstream2/x86_64 is not application or runtime

Fix this by making the logic a bit smarter, and don't let any one
invalid ref entry prevent the whole command from working.

Fixes #4332
mwleeds added a commit that referenced this issue Oct 28, 2021
The history command seems to have been broken since it was changed to
use FlatpakDecomposed, since that type only works for app or runtime
refs, resulting in errors such as:
$ flatpak history
error: appstream2/x86_64 is not application or runtime

Fix this by making the logic a bit smarter, and don't let any one
invalid ref entry prevent the whole command from working.

Fixes #4332
@mwleeds
Copy link
Collaborator

mwleeds commented Oct 28, 2021

As stated in the flatpak-history man page, the history can also be accessed using journalctl so that should be a workaround until Flatpak is patched. I don't know exactly what the journalctl command would have to be.

@repsorp
Copy link

repsorp commented Oct 28, 2021

As stated in the flatpak-history man page, the history can also be accessed using journalctl so that should be a workaround until Flatpak is patched. I don't know exactly what the journalctl command would have to be.

journalctl --user-unit flatpak-update.service
#1399 (comment)

@mwleeds
Copy link
Collaborator

mwleeds commented Oct 29, 2021

As stated in the flatpak-history man page, the history can also be accessed using journalctl so that should be a workaround until Flatpak is patched. I don't know exactly what the journalctl command would have to be.

journalctl --user-unit flatpak-update.service #1399 (comment)

No that will only work if you have such a service defined as they explained how to do in the issue you linked. In general the command is journalctl MESSAGE_ID=c7b39b1e006b464599465e105b361485

@repsorp
Copy link

repsorp commented Oct 29, 2021

No that will only work if you have such a service defined as they explained how to do in the issue you linked. In general the command is journalctl MESSAGE_ID=c7b39b1e006b464599465e105b361485

My bad, thought it was part of the automatic background update process.
Thanks for the right command.

@mwleeds
Copy link
Collaborator

mwleeds commented Oct 29, 2021

Fix available in #4526

@mwleeds mwleeds removed this from the 1.13.1 milestone Oct 29, 2021
mwleeds added a commit that referenced this issue Nov 16, 2021
The history command seems to have been broken since it was changed to
use FlatpakDecomposed, since that type only works for app or runtime
refs, resulting in errors such as:
$ flatpak history
error: appstream2/x86_64 is not application or runtime

Fix this by making the logic a bit smarter, and don't let any one
invalid ref entry prevent the whole command from working.

Fixes #4332
mwleeds added a commit that referenced this issue Dec 28, 2021
The history command seems to have been broken since it was changed to
use FlatpakDecomposed, since that type only works for app or runtime
refs, resulting in errors such as:
$ flatpak history
error: appstream2/x86_64 is not application or runtime

Fix this by making the logic a bit smarter, and don't let any one
invalid ref entry prevent the whole command from working.

Fixes #4332
(cherry picked from commit e44b548)
mwleeds added a commit that referenced this issue Jan 4, 2022
The history command seems to have been broken since it was changed to
use FlatpakDecomposed, since that type only works for app or runtime
refs, resulting in errors such as:
$ flatpak history
error: appstream2/x86_64 is not application or runtime

Fix this by making the logic a bit smarter, and don't let any one
invalid ref entry prevent the whole command from working.

Fixes #4332
mwleeds added a commit that referenced this issue Jan 4, 2022
The history command seems to have been broken since it was changed to
use FlatpakDecomposed, since that type only works for app or runtime
refs, resulting in errors such as:
$ flatpak history
error: appstream2/x86_64 is not application or runtime

Fix this by making the logic a bit smarter, and don't let any one
invalid ref entry prevent the whole command from working.

Fixes #4332
(cherry picked from commit e44b548)
mwleeds added a commit that referenced this issue Jan 20, 2022
The history command seems to have been broken since it was changed to
use FlatpakDecomposed, since that type only works for app or runtime
refs, resulting in errors such as:
$ flatpak history
error: appstream2/x86_64 is not application or runtime

Fix this by making the logic a bit smarter, and don't let any one
invalid ref entry prevent the whole command from working.

Fixes #4332
(cherry picked from commit e44b548)
@bdaase
Copy link

bdaase commented Feb 6, 2022

Could the fix please be backported to all affected stable branches?

mwleeds added a commit that referenced this issue Feb 7, 2022
The history command seems to have been broken since it was changed to
use FlatpakDecomposed, since that type only works for app or runtime
refs, resulting in errors such as:
$ flatpak history
error: appstream2/x86_64 is not application or runtime

Fix this by making the logic a bit smarter, and don't let any one
invalid ref entry prevent the whole command from working.

Fixes #4332

(cherry picked from commit 7b6dba8)
@mwleeds
Copy link
Collaborator

mwleeds commented Feb 7, 2022

Could the fix please be backported to all affected stable branches?

Sure, #4729 and #4635

smcv pushed a commit that referenced this issue Feb 8, 2022
The history command seems to have been broken since it was changed to
use FlatpakDecomposed, since that type only works for app or runtime
refs, resulting in errors such as:
$ flatpak history
error: appstream2/x86_64 is not application or runtime

Fix this by making the logic a bit smarter, and don't let any one
invalid ref entry prevent the whole command from working.

Fixes #4332
(cherry picked from commit e44b548)
mwleeds added a commit that referenced this issue Feb 8, 2022
The history command seems to have been broken since it was changed to
use FlatpakDecomposed, since that type only works for app or runtime
refs, resulting in errors such as:
$ flatpak history
error: appstream2/x86_64 is not application or runtime

Fix this by making the logic a bit smarter, and don't let any one
invalid ref entry prevent the whole command from working.

Fixes #4332
(cherry picked from commit e44b548)
smcv pushed a commit that referenced this issue Feb 8, 2022
The history command seems to have been broken since it was changed to
use FlatpakDecomposed, since that type only works for app or runtime
refs, resulting in errors such as:
$ flatpak history
error: appstream2/x86_64 is not application or runtime

Fix this by making the logic a bit smarter, and don't let any one
invalid ref entry prevent the whole command from working.

Fixes #4332

(cherry picked from commit 7b6dba8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug cli Issues involving the flatpak command
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants