Giter VIP home page Giter VIP logo

Comments (10)

thirdgen88 avatar thirdgen88 commented on June 12, 2024

I did add a couple more customizable environment variables to the image. You should be able to set IGNITION_COMMISSIONING_DELAY to something higher if the container is slow to start (perhaps due to constrained hardware or other system load issues). 10 seconds was an arbitrary pick after observing typical behavior where that commissioning servlet would be online almost immediately.

from ignition-docker.

proartsrl avatar proartsrl commented on June 12, 2024

I have tested the canonical 8.0.6 and, as all the others images that I use, starts like a charm. Problem arise only with "synology" version.

Here the registry of "synology" version with IGNITION_COMMISSIONING_DELAY = 60:

"Added Init Setting SystemName=ignition"
"Gateway Restore Options: --name ignition"
"Provisioning will be logged here: /usr/local/share/ignition/logs/provisioning.log"
"Waiting for commissioning servlet to become active..."

Then after 60 seconds it stops.

Here the "beginning" part of the registry of the canonical 8.0.6:

"wrapper | --> Wrapper Started as Console"
"�]0;Ignition Gateway�wrapper | Java Service Wrapper Standard Edition 64-bit 3.5"
"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 | 05:33:35,726 |-INFO in ch.qos.logback.classic.LoggerContext[default] - ...."

and so on. It start very quickly.

from ignition-docker.

thirdgen88 avatar thirdgen88 commented on June 12, 2024

Can you provide the full docker run command you are using? The other thing that would be useful to see would be to docker cp the provisioning.log from inside the failed container instance. Inspecting that log might provide some clues—it looks like something is causing things to stall/halt, not a matter of waiting long enough.

Sent with GitHawk

from ignition-docker.

proartsrl avatar proartsrl commented on June 12, 2024

Sorry, no i cannot. I am using an app on board of a Synology NAS that shell every complexity in a nice and easy gui interface.
Some diagnostic is made through a registry and is what I was sending you.

I'am so confident with your container that I am using it (8.0.2 version on a couple of Synology NAS RS3617xs connected in High Availability and MariaDB database) since 6 months in a production environment without a glitch. Unfortunately not using any external volume due the limitation of UID and GID I mentioned.

What i can do easily is giving you a direct browser connection to a small Synology NAS with all the necessary containers already installer ready to be launched to see the problems.

Just give me a check. Synology Docker APP Interface is very easy to manage, no instruction required.
(Hope you understand my broken english.)

from ignition-docker.

proartsrl avatar proartsrl commented on June 12, 2024

One more info.
I am now able to run 8.0.6 synology image.
But when i try to map a volume ("/docker" volume on synology mapped to "/var/lib/ignition/data") as stated on you web page, conainer does not stat with this error
"/usr/local/bin/docker-entrypoint.sh: line 289: /usr/local/share/ignition/data/.docker-init-complete: Permission denied"
But i am sure that UID and GID are correct: 1024 and 100 checked via SSH on synology.

Thanks in advance.

from ignition-docker.

thirdgen88 avatar thirdgen88 commented on June 12, 2024

@proartsrl, I took a look at this and it circles back to trying to use a bind-mount to preserve the gateway data instead of a docker volume mount. The error in the provisioning log is below:

FATAL  | wrapper  | Unable to open configuration file: data/ignition.conf (No such file or directory)
FATAL  | wrapper  |   Current working directory: /usr/local/share/ignition
FATAL  | wrapper  |   The Wrapper will stop.

When you bind-mount a path into place within a container, it supersedes the information within that location. This is why the base data/ignition.conf is not there when Ignition tries to launch in your configuration. Using a standard docker volume will inherit the files in that location and then continue to preserve them. Perhaps if I could get a view of this Synology Docker App interface I could help more. Feel free to e-mail me if you can provide that test connection.

from ignition-docker.

proartsrl avatar proartsrl commented on June 12, 2024

You are right, I understand now, not UID or GUID.

"This is why the base data/ignition.conf is not there when Ignition tries to launch in your configuration"

But in synology interface I can bind-mount only local path, not docker volumes (I cannot even create one!) and usually this works, probably because dir are empty at the begining and all files are created afterward.

I tested a container on synology (Transmission), just to be sure, that bind-mount 2 path on /config and /downloads and it worked at first glance.
And to be "more" sure I installed an ubuntu PC and tested your container bind-mounting it on a local path and have had the same result, while, as per your advice, using a volume worked like a charm.

So I am stuck once again if there is no possibility to create data/ignition.conf after the bind-mount of a local path.
Problem understood. Now it's up to you and your kindness investigate for a solution.

Anyway I tank you for your effort till now

from ignition-docker.

thirdgen88 avatar thirdgen88 commented on June 12, 2024

@proartsrl, just thought I'd mention that you can now use my image (starting with the 8.1 tag) directly on your Synology with volume persistence. All you have to do is target /data as your mount point within the container, and then also adjust your ownership of the volume directory on your Synology (via SSH) to 999:999.

from ignition-docker.

proartsrl avatar proartsrl commented on June 12, 2024

from ignition-docker.

proartsrl avatar proartsrl commented on June 12, 2024

from ignition-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.