-
Notifications
You must be signed in to change notification settings - Fork 644
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
Failing to parse log timestamps #410
Comments
This is the output of
Notice the two variations in timestamps:
BTW, on OS X:
|
My output from
|
This should help: https://docs.docker.com/engine/reference/commandline/logs/
|
@goldmann I read that as the client TZ will only be used when parsing the I'd be happy to provide a PR for this, assuming the maintainers agree with this assessment. |
Right, the problem is that it may be an undocumented "feature"... |
Thanks for reporting this and for the analysis ! Indeed, the regexp was a bit sloppy in not capturing a numeric timezone. Unfortunately the timeformat used in the REST API is not really well documented. I adapted the regexp and pushed a 0.14.3-SNAPSHOT release to Maven central. @tobias maybe you could try this whether it works for you ? |
@rhuss that did the trick, thanks! However, I noticed your regex only handles negative offsets - if I set my TZ to somewhere on the other side of UTC (in this case, From
From the plugin:
|
of course, you are right (sorry, was too fast ans looked to be too easy to fix :) Fixed it (and also for time offsets without minutes), deployed a next shapshot, too. thx ... |
Thanks @rhuss. Do you have an estimate of when this will be in a release? |
@rhuss Might this go into a release soon? |
+1 would love to have this released soon :) |
@rhauch @christian-posta @tobias will do a release today or tomorrow. Sorry for the delay ... |
@rhuss, will this be included in the 0.15.0 release, or are you planning a 0.14.x fix release? |
Just building a 0.15.0 release, will be available in some minutes. So the answer is |
@rhuss, sweet. Thanks for fixing these issues. Love the plugin. |
thanks :) 0.15.0 is out, should bubble to Maven central soon. Let me know whether it works for you ... |
While trying to build https://github.com/debezium/debezium, the plugin fails when waiting for a mysql container to fully start:
From looking at it in the debugger, the timestamp from the log line is
2016-03-16T17:06:30.714387000-04:00
, which fails to match all the groups in https://github.com/fabric8io/docker-maven-plugin/blob/master/src/main/java/io/fabric8/maven/docker/util/Timestamp.java#L35, and the full string is returned frommatcher.group(1)
here: https://github.com/fabric8io/docker-maven-plugin/blob/master/src/main/java/io/fabric8/maven/docker/util/Timestamp.java#L61 (groups 2-4 are[null, null, ""]
).Since I don't have access to a working setup, I'm not sure what the expected timestamp format from docker is supposed to be. I also don't know enough about docker to know why my environment would be different from others.
I'm running this with:
Let me know if I can provide any other information.
The text was updated successfully, but these errors were encountered: