Skip to content
This repository has been archived by the owner on Jun 11, 2021. It is now read-only.

No Logs (Again) #5324

Open
hornkim opened this issue Sep 30, 2019 · 11 comments
Open

No Logs (Again) #5324

hornkim opened this issue Sep 30, 2019 · 11 comments

Comments

@hornkim
Copy link

hornkim commented Sep 30, 2019

Expected behavior

Kitmatic logs container output

Actual behavior

Get the Message "no Logs for this Container"

Information about the Issue

Kitematic 0.17.9
Docker Desktop 2.1.0.3
MacOS 10.14.6

Steps to reproduce the behavior

Just upgrade to latest docker, as prompted when you run Docker Desktop. Then it prompts you to upgrade Kitematic as the current is not compatible. Now Kitematic does not log !

This seems to be an ever repeating bug, #4712, #4610, that gets re-introduced all the time.The project needs to add as a test case to cover this.
I have had this issue a few times before, and down grading was a solution, will try but
Can anyone suggest what version to downgrade too, that does not invoke Docker to tell me they are not compatible.
Maybe need to go down a version of Docker Desktop , but who knows what one worked ?
I don't know what last version was I had, and trusted the prompt to upgrade !!!

@hornkim
Copy link
Author

hornkim commented Sep 30, 2019

I down graded to 0.17.8 and still no logs.

@Trackhe
Copy link

Trackhe commented Sep 30, 2019

I have taken the log fix. but I think he is not complete. Nevertheless, first built with it. if you notice again log error. please make new issue.

https://github.com/Trackhe/kitematic/releases

@jfabdo
Copy link

jfabdo commented Oct 1, 2019

Just upgraded to the latest version of kitematic, also getting this issue on Mojave 10.14.5. I did not have this when I upgraded to 0.17.9 when docker was reporting that I was on a previous version of kitematic.

@hornkim
Copy link
Author

hornkim commented Oct 1, 2019 via email

@jfabdo
Copy link

jfabdo commented Oct 1, 2019

That worked for me as well. Thank you Trackhe!

@Trackhe
Copy link

Trackhe commented Oct 1, 2019

Thanks and no problem. 👍

@fshafique
Copy link

Is anybody maintaining the issues list? Not trying to point fingers or lay blame. I just wanted to know if we have enough manpower on this project.
This issue hasn't been labelled as a bug yet, and I don't know if the developers/contributors even recognize this as an issue, even if we all give it a thumbs up.

@fshafique
Copy link

This is a duplicate of #5317 , except this thread has more traction.

@fshafique
Copy link

Also facing this issue with Windows 10 Pro (Build 17763).

@fshafique
Copy link

I have a temporary solution that doesn't require downgrading to a previous version. These are instructions for modifying v.0.17.9:

  1. Shutdown Kitematic. Find where the Kitematic files were installed. Locate the \resources\app.asar file.

  2. Install the asar tool: npm install -g asar

  3. Extract app.asar into a folder. For example, to extract to "unpacked" folder: asar e app.asar unpacked

  4. Edit the \utils\DockerUtil.js file where you unpacked it.
    Find this code:

    }, function (err, logStream) {
      if (err) {
        // socket hang up can be captured
        console.error(err);
        _ContainerServerActions2.default.error({ name: _this19.activeContainerName, err: err });
        return;
      }
    
      var logs = '';
      logStream.setEncoding('utf8');
      logStream.on('data', function (chunk) {
        return logs += chunk;
      });
      logStream.on('end', function () {
        _ContainerServerActions2.default.logs({ name: _this19.activeContainerName, logs: logs });
        _this19.attach();
      });
    });

    And replace with this:

    }, function (err, logBuffer) {
      if (err) {
        // socket hang up can be captured
        console.error(err);
        _ContainerServerActions2.default.error({ name: _this19.activeContainerName, err: err });
        return;
      }
    
      var logs = logBuffer.toString();
      _ContainerServerActions2.default.logs({ name: _this19.activeContainerName, logs: logs });
      _this19.attach();
    });
  5. Repack everything into the "asar" file. For example: asar p unpacked app.asar
    Note: backup the old app.asar file, and remove to make space for the new one.

  6. Restart Kitematic.

@juber-nunes
Copy link

Thanks a lot @Trackhe , works absolutely fine over here.

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

No branches or pull requests

5 participants