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

Gateway from 7.9.16 tag does not start #38

Closed
kevinherron opened this issue Oct 16, 2020 · 6 comments
Closed

Gateway from 7.9.16 tag does not start #38

kevinherron opened this issue Oct 16, 2020 · 6 comments

Comments

@kevinherron
Copy link

It seems we released 7.9.16, at least the zip distributions, with an ignition.conf that has an absolute rather than relative wrapper.java.library.path value:

# Java Library Path (location of Wrapper.DLL or libwrapper.so)
wrapper.java.library.path.1=/usr/local/bin/ignition/lib

Ignition in a container based on the 7.9.16 image fails to start with this error:

Starting Ignition Gateway...
wrapper | --> Wrapper Started as Console
�]0;Ignition Gateway�wrapper | Java Service Wrapper Standard Edition 64-bit 3.5.35
wrapper | Copyright (C) 1999-2018 Tanuki Software, Ltd. All Rights Reserved.
wrapper | http://wrapper.tanukisoftware.com
wrapper | Licensed to Inductive Automation for Inductive Automation
wrapper |
wrapper | Launching a JVM...
jvm 1 | WrapperManager: Initializing...
jvm 1 | WrapperManager:
jvm 1 | WrapperManager: ERROR - Unable to load the Wrapper's native library because none of the
jvm 1 | WrapperManager: following files:
jvm 1 | WrapperManager: libwrapper-linux-x86-64.so
jvm 1 | WrapperManager: libwrapper.so
jvm 1 | WrapperManager: could be located on the following java.library.path:
jvm 1 | WrapperManager: /usr/local/bin/ignition/lib
jvm 1 | WrapperManager: Please see the documentation for the wrapper.java.library.path
jvm 1 | WrapperManager: configuration property.
jvm 1 | WrapperManager:
wrapper | <-- Wrapper Stopped

Presumably because the image uses /usr/local/share/ignition as its Ignition install directory.

I think we've got this fixed for a future 7.9.17 release, but that leaves 7.9.16 in a bit of a broken spot here.

@kevinherron
Copy link
Author

There's a couple more hardcoded paths in the 7.9.16 zip distributions as well 😢

wrapper.java.additional.3=-Ddata.dir=data

vs

wrapper.java.additional.3=-Ddata.dir=/var/lib/ignition/data

and

# Log file to use for wrapper output logging.
wrapper.logfile=logs/wrapper.log

vs

# Log file to use for wrapper output logging.
wrapper.logfile=/var/log/ignition/wrapper.log

@thirdgen88
Copy link
Owner

thirdgen88 commented Oct 17, 2020

@kevinherron, excellent catch.. I'll admit, I updated everything for 7.9.15 and didn't expect a 7.9.16 so soon thereafter; inspecting the changelog, I didn't really see much of note. I should have spooled it up at least! All the more encouragement to follow-through with issue #27.

I'll get this corrected and push an updated image for 7.9.16. Thanks again for the heads up!

@kevinherron
Copy link
Author

Yeah... 7.9.15 contained a nasty bug that required a quick 7.9.16 follow up release containing only that fix. I'm not sure how the broken paths ended up in there too.

While still available from S3 we've actually pulled 7.9.15 from the downloads section of the website. I don't know if you can do the same with your 7.9.15 image but it may be worth doing so if you can.

thirdgen88 added a commit that referenced this issue Oct 17, 2020
Added extra link to /var/lib/ignition/temp for 7.9.16 compat
refs #38
thirdgen88 added a commit that referenced this issue Oct 17, 2020
Added extra link to /var/lib/ignition/temp for 7.9.16 compat
refs #38
@thirdgen88
Copy link
Owner

Okay, the latest 7.9.16 image is now happy. 👍

@kevinherron
Copy link
Author

Thanks! I almost PR'd something similar but wasn't sure how you'd want to fix this.

We briefly discussed uploading new zip files with just the conf files corrected but no decision has been made yet.

@thirdgen88
Copy link
Owner

thirdgen88 commented Oct 17, 2020

Ultimately, I think the update that was made is probably a correct (and irrespectively useful) one, as those particular settings need to be tailored to the particular installation locations. So the entry point will take care of updating those settings when the container is launched fresh (of course, existing ignition.conf in preserved volumes will remain un-touched).

FYI, I did delete the 7.9.15 tags yesterday against kcollins/ignition on Docker Hub, so hopefully that will prevent folks from inadvertently drawing that release in the future..

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