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

install of LibreOffice fails with unhelpful error message #336

Closed
skierpage opened this issue Oct 5, 2016 · 4 comments
Closed

install of LibreOffice fails with unhelpful error message #336

skierpage opened this issue Oct 5, 2016 · 4 comments

Comments

@skierpage
Copy link

I installed Flatpak on my Fedora 24 live KDE spin. Following the instructions at http://flatpak.org/apps.html I was able to install and run Gimp fine (awesome!). But installing LibreOffice.flatpak (last updated Sept 5) always prints a bunch of warnings and then ends with an ENOENT error message that doesn't give the path.

$ flatpak install --verbose --user --bundle ~/Downloads/LibreOffice.flatpak 2| tee /tmp/LibreOffice_flatpak.log
XA: Imported 1 GPG key to remote "org.libreoffice.LibreOffice-2-origin"
XA: No checksum specified, getting tip of app/org.libreoffice.LibreOffice/x86_64/fresh
XA: tip resolved to: 8f2e055abbec9d69142e888b7a709505bb477d10d38b4b99c4363f2547b5c1a7

(flatpak install:1992): flatpak-WARNING **: Non-prefixed filename org.libreoffice.LibreOffice-draw.png in app org.libreoffice.LibreOffice, removing.
... (many more of these warnings)
(flatpak install:1992): flatpak-WARNING **: Non-prefixed filename org.libreoffice.LibreOffice-writer.desktop in app org.libreoffice.LibreOffice, removing.
error: No such file or directory

Regardless of any problem with LibreOffice, it would be nice if the error message included the failing path.

I ran the install under strace and there are a ton of ENOENTreturns, but nothing immediately preceding the error message and exit. The closest is

newfstatat(10, "org.libreoffice.LibreOffice-writer.desktop", {st_mode=S_IFREG|0744, st_size=24272, ...}, AT_SYMLINK_NOFOLLOW) = 0
write(2, "\n(flatpak install:28807): flatpa"..., 157
(flatpak install:28807): flatpak-WARNING **: Non-prefixed filename org.libreoffice.LibreOffice-writer.desktop in app org.libreoffice.LibreOffice, removing.
) = 157
unlinkat(10, "org.libreoffice.LibreOffice-writer.desktop", 0) = 0
openat(10, "org.libreoffice.LibreOffice-writer.desktop", O_RDONLY|O_NOATIME|O_CLOEXEC) = -1 ENOENT (No such file or directory)```
@skierpage
Copy link
Author

If I leave off the --user option, the error is reported by (G)DBus:

$ flatpak install --verbose --bundle  ~/Downloads/LibreOffice\(1\).flatpak
error: GDBus.Error:org.gtk.GDBus.UnmappedGError.Quark._g_2dio_2derror_2dquark.Code1: No such file or directory

@alexlarsson
Copy link
Member

Ugh, this was due to a change in what filenames are allowed to be exported:
https://lists.freedesktop.org/archives/xdg-app/2016-September/000403.html

Maybe we need to reconsider this change.

@alexlarsson
Copy link
Member

This should fix this:
6363858

I'll try to get a new release out soon.

@alexlarsson
Copy link
Member

This is fixed in flatpak 0.6.12, hitting repos soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants