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

Downloading the logs does not work #697

Closed
imobachgs opened this issue Aug 10, 2023 · 2 comments · Fixed by #746
Closed

Downloading the logs does not work #697

imobachgs opened this issue Aug 10, 2023 · 2 comments · Fixed by #746
Labels
bug Something isn't working

Comments

@imobachgs
Copy link
Member

It looks like the feature to download the logs does not work. In the console you get a missing "path" option for fsread channel message when clicking the link.

@imobachgs imobachgs added the bug Something isn't working label Aug 10, 2023
@dgdavid
Copy link
Contributor

dgdavid commented Sep 11, 2023

While trying to find out what is wrong there, I realized that awaiting for the logs' path fixes the problem and they are downloaded as expected.

diff --git a/web/src/client/manager.js b/web/src/client/manager.js
index 87b14a7f..ee847521 100644
--- a/web/src/client/manager.js
+++ b/web/src/client/manager.js
@@ -86,7 +86,7 @@ class ManagerBaseClient {
    */
   async fetchLogs() {
     const proxy = await this.client.proxy(MANAGER_IFACE);
-    const path = proxy.CollectLogs("root");
+    const path = await proxy.CollectLogs("root");
     const file = cockpit.file(path, { binary: true });
     return file.read();
   }

@dgdavid
Copy link
Contributor

dgdavid commented Sep 11, 2023

I'm not able to find where is the breaking change that does not allow a path as promise anymore. The protocol-error is raised by a CockpitChannel at https://github.com/mvollmer/cockpit/blob/5aa80a427dcf289608b217db16f98bdd0d06dbe9/src/bridge/cockpitfsread.c#L207C7-L207C27 but apparently were no changes in the latest 5 years.

There were no changes in our side neither apart from the rename from D-installer to Agama.

Anyway, I'll send the fix and move on.

dgdavid added a commit that referenced this issue Sep 11, 2023
To avoid a a "protocol-error" raised by the CockpitChannel because of a
"missing path option for fread channel".

See #697
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants