New C-Gate Server 3.2.0 Docker Image

Discussion in 'C-Bus Toolkit and C-Gate Software' started by pktechnology, Nov 22, 2023.

  1. pktechnology

    pktechnology

    Joined:
    Nov 22, 2023
    Messages:
    10
    Likes Received:
    6
    Location:
    Australia
    pktechnology, Nov 22, 2023
    #1
    oracle likes this.
  2. pktechnology

    Ingo

    Joined:
    Dec 2, 2006
    Messages:
    290
    Likes Received:
    1
    Location:
    South Africa
    Great Work!

    I tested this using Portainer and it worked after I figured out how to create volumes. Tested with both 1.16.4 and 1.17. I am not sure how valid the 1.16.4 test was but it works and looks fine.

    By using a :3.2.0 image postfix we probably won't know if there are any updates unless you put it on the forum, right? Not sure how new update notifications are sent to existing installations - perhaps it doesn't, I don't know. Will just check the forum every now and then.

    For info: The Portainer the volumes map to the /var/lib/docker/volumes directory when you create them in Portainer.

    Quick question: With the event.txt file increasing over time, will there be a time when it fills the docker volume disk? Is there a way to guard against that?

    Oh, just a typo in your installation guide, the 'tab' directory is actually 'tag' directory.
     
    Ingo, Nov 25, 2023
    #2
  3. pktechnology

    pktechnology

    Joined:
    Nov 22, 2023
    Messages:
    10
    Likes Received:
    6
    Location:
    Australia

    Thanks for the feedback. I have corrected the typo. Also if your using Portainer you can just Bind the two volumes to some local folder structure (host). For example create the folders on your Synology NAS under "docker". This way you should also be able to monitor how much space log files (event.txt) are taking. Screenshot 2023-11-27 at 2.48.58 pm.png
     
    pktechnology, Nov 27, 2023
    #3
    Ingo likes this.
  4. pktechnology

    pktechnology

    Joined:
    Nov 22, 2023
    Messages:
    10
    Likes Received:
    6
    Location:
    Australia
    Hi All,

    Clipsal C-Gate Server ver 3.2.3 docker image is now available.
    It's now half the size of the initial 3.2.0 version.
    Documentation has been extensively updated to be as straight forward as possible.

    Hope you find this useful.

    https://hub.docker.com/r/pktechnology/cgateserver


    PK
     
    pktechnology, Jan 30, 2024
    #4
    Ingo and DarylMc like this.
  5. pktechnology

    GoldenMouse5410

    Joined:
    May 9, 2024
    Messages:
    7
    Likes Received:
    0
    Location:
    Australia
    Hi there,

    Anyone got this running on a Raspberry Pi??

    Container stops after a few secs with error
    exec /usr/local/jre1.8.0_202/bin/java: exec format error

    Works fine on a Linux VM running in an amd64 host so thinking its an architecture problem
    Any ideas?
     
    GoldenMouse5410, May 9, 2024
    #5
  6. pktechnology

    pktechnology

    Joined:
    Nov 22, 2023
    Messages:
    10
    Likes Received:
    6
    Location:
    Australia
    OK will build multi platform image with next release .
     
    pktechnology, Jun 8, 2024
    #6
  7. pktechnology

    GoldenMouse5410

    Joined:
    May 9, 2024
    Messages:
    7
    Likes Received:
    0
    Location:
    Australia
    Still same error with 3.3.2
    Awesome if we could get a multi platform image next release please
     
    GoldenMouse5410, Jun 16, 2024
    #7
  8. pktechnology

    pktechnology

    Joined:
    Nov 22, 2023
    Messages:
    10
    Likes Received:
    6
    Location:
    Australia
    OK can you please try image tagged as 3.3.3rpi and let me know if that works on your RPI. Thanks
     
    pktechnology, Jul 24, 2024
    #8
  9. pktechnology

    GoldenMouse5410

    Joined:
    May 9, 2024
    Messages:
    7
    Likes Received:
    0
    Location:
    Australia
    Thanks for pushing rpi image, manifest error pulling tag but able to pull via manifest or index digest.
    Unfortunately still same container error.

    Currently using ob01/cgate image but would prefer this one (as kept up to date) if we can get it working please?
     
    GoldenMouse5410, Jul 25, 2024
    #9
  10. pktechnology

    pktechnology

    Joined:
    Nov 22, 2023
    Messages:
    10
    Likes Received:
    6
    Location:
    Australia
    OK, thanks for the feedback. I guess I need to pull out my RPI and do some troubleshooting as I slapped it together with an emulator.
    Stay tuned....

    PK
     
    pktechnology, Jul 25, 2024
    #10
  11. pktechnology

    GoldenMouse5410

    Joined:
    May 9, 2024
    Messages:
    7
    Likes Received:
    0
    Location:
    Australia
    Thank you - much appreciated!
    For reference I’m using a RPI5 with docker and Portainer
     
    GoldenMouse5410, Jul 26, 2024
    #11
  12. pktechnology

    pktechnology

    Joined:
    Nov 22, 2023
    Messages:
    10
    Likes Received:
    6
    Location:
    Australia
    OK thanks for your patience. I have created and tested a working version for Raspberry Pi.
    Please use the image tagged as 3.3.3-rpi

    PK
     
    pktechnology, Jul 27, 2024
    #12
    DarylMc likes this.
  13. pktechnology

    GoldenMouse5410

    Joined:
    May 9, 2024
    Messages:
    7
    Likes Received:
    0
    Location:
    Australia
    Thank you, container now runs!

    Next issue is a bunch of Java errors in the container log when it tries to convert .xml to .db (and fails)
    So tried converting default example.xml and home.xml projects and get same errors.

    Any ideas?
     
    GoldenMouse5410, Jul 29, 2024
    #13
  14. pktechnology

    GoldenMouse5410

    Joined:
    May 9, 2024
    Messages:
    7
    Likes Received:
    0
    Location:
    Australia
    Just to follow up, tried the example.db and home.db files (from the latest windows software) but the container’s cgate event log throws an SQL error when trying to check and load either - bit stuck here?
     
    GoldenMouse5410, Jul 30, 2024
    #14
  15. pktechnology

    Matt

    Joined:
    Aug 3, 2004
    Messages:
    27
    Likes Received:
    2
    Location:
    Cairns North Queensland
    I have also been having trouble with these images running on a
    Raspberry Pi 4 Model B Rev 1.5
    Kernel: Linux 6.6.31+rpt-rpi-v8
    Debian GNU/Linux 12 (bookworm)
    Docker version 20.10.24

    if I run the latest image I get
    Code:
    exec /usr/local/jre1.8.0_202/bin/java: exec format error
    
    running the 3.3.3-rpi image i get:
    Code:
    Logging to file: /home/clipsal/cgate3/appdata/logs/event.txt
    20241102-064944.392 800 cgate - C-Gate started.
    C-Gate is running.
    Java HotSpot(TM) Server VM warning: You have loaded library /tmp/sqlite-3.41.0.0-c9102827-4992-4e46-b28b-5ba6dd7c9373-libsqlitejdbc.so which might have disabled stack guard. The VM will try to fix the stack guard now.
    It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
    Failed to load native library:sqlite-3.41.0.0-c9102827-4992-4e46-b28b-5ba6dd7c9373-libsqlitejdbc.so. osinfo: Linux/aarch64
    java.lang.UnsatisfiedLinkError: /tmp/sqlite-3.41.0.0-c9102827-4992-4e46-b28b-5ba6dd7c9373-libsqlitejdbc.so: /tmp/sqlite-3.41.0.0-c9102827-4992-4e46-b28b-5ba6dd7c9373-libsqlitejdbc.so: wrong ELF class: ELFCLASS64 (Possible cause: architecture word width mismatch)
    C-gate starts and tries to convert, but fails with:
    Code:
    0241102-064949.454 899 XmlToSqlTransformJob - Debug: Job started
    20241102-064949.454 999 XmlToSqlTransformJob - The job has started.
    20241102-064949.888 999 XmlToSqlTransformJob - Start converting a project: HOME
    20241102-064949.888 899 XmlToSqlTransformJob - Debug: Started the backup process of the project XML file: HOME
    20241102-064949.933 899 XmlToSqlTransformJob - Debug: An identical copy of XML file is found in the backup folder, skipped the backup process: HOME
    20241102-064949.934 899 XmlToSqlTransformJob - Debug: Converting a project from XML to SQL: HOME
    20241102-064951.425 751 tag - Tag information changed at tag address: //project/Installation
    20241102-064951.815 899 XmlToSqlTransformJob - Debug: com.clipsal.cgate.transform.TransformException: com.clipsal.cgate.transform.TransformException: Failed dest save: SQL error writing project db file: Error opening connection
    20241102-064951.815 999 XmlToSqlTransformJob - Failed to convert a project: HOME
    I have also tried using the project converted from my main computer running C-gate3.3.3 however, this also fails:
    Code:
    0241102-061643.300 861 projects - Unable to load project: HOME (Error reading db file: SQL error checking project db fileError opening connection)
    20241102-061643.301 862 projects - Unable to start project: Home (Project not found)
    20241102-061647.822 899 XmlToSqlTransformJob - Debug: Job started
    20241102-061647.822 999 XmlToSqlTransformJob - The job has started.
    20241102-061647.825 899 XmlToSqlTransformJob - Debug: Job ended.
    20241102-061647.826 999 XmlToSqlTransformJob - The job has ended.
    
    If anyone has some pointers I would be greatly appreciative, as I have spent way more time than I care to admit on trying to upgrade c-gate versions.
     
    Matt, Nov 2, 2024 at 7:39 AM
    #15
  16. pktechnology

    pktechnology

    Joined:
    Nov 22, 2023
    Messages:
    10
    Likes Received:
    6
    Location:
    Australia
    For all you RPi people, sorry but I have not had the time re do all this properly for Debian. What if you install Ubuntu on the rip? Im wondering if this image will then work?
     
    pktechnology, Nov 3, 2024 at 8:11 PM
    #16
  17. pktechnology

    GoldenMouse5410

    Joined:
    May 9, 2024
    Messages:
    7
    Likes Received:
    0
    Location:
    Australia
    Sadly I never made any more progress on this. The 3.3.3-rpi container runs, but same issues as Matt above, project won't start or convert.

    Continuing to use ob01/cgate for now which works great but is C-Gate v2.11.10

    RPI5 with stock Pi OS.
     
    GoldenMouse5410, Nov 4, 2024 at 2:58 AM
    #17
  18. pktechnology

    DarylMc

    Joined:
    Mar 24, 2006
    Messages:
    1,315
    Likes Received:
    49
    Location:
    Cleveland, QLD, Australia
    I've had a manual install of CGate 3.3.2 running for some time on RPI5 with Homebridge RPI image
     
    DarylMc, Nov 7, 2024 at 12:17 AM
    #18
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.