Announcement

Collapse
No announcement yet.

ProxMox

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • ProxMox

    I've been running NXFilter for a while on ESXi free without issue. Version info below. Recently I decided to move to ProxMox and I've moved everything except NXFilter. I've moved NetXMS, NextCloud, Opensense and a host of services into Docker. The only thing I have not been able make work is NXFilter either via Docker (my prefered path) or as a ProxMox LXC container.

    ESXI ENVIRONTMENT: (current)
    =========================
    nxfilter-4.7.1.6

    ~# java --version
    openjdk 17.0.13 2024-10-15
    OpenJDK Runtime Environment (build 17.0.13+11-Debian-2deb12u1)
    OpenJDK 64-Bit Server VM (build 17.0.13+11-Debian-2deb12u1, mixed mode, sharing)

    cat /etc/os-release
    PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
    NAME="Debian GNU/Linux"
    VERSION_ID="12"
    VERSION="12 (bookworm)"
    VERSION_CODENAME=bookworm
    ID=debian


    PROXMOX LXC CONTAINTER: (trying to go to)
    =========================
    nxfilter-4.7.1.9.deb

    java --version
    openjdk 17.0.15 2025-04-15
    OpenJDK Runtime Environment (build 17.0.15+6-Debian-1deb12u1)
    OpenJDK 64-Bit Server VM (build 17.0.15+6-Debian-1deb12u1, mixed mode, sharing)

    cat /etc/os-release
    PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
    NAME="Debian GNU/Linux"
    VERSION_ID="12"
    VERSION="12 (bookworm)"
    VERSION_CODENAME=bookworm
    ID=debian




    I've deleted the LXC container and started over three times and keep getting the same error. Every time I've downloaded NXFilter fresh using wget. It won't even let me forcefully remove it after I attempt to install via "dpkg" so I keep deleting the container and starting from scratch. I'm posting the error from a reinstall attempt below. Any ideas? I'm a little bit a newb on some things and it may be my lack of knowledge beating me up. I'm installing as root btw.



    ERROR:
    =========================
    dpkg -i nxfilter-4.7.1.9.deb
    (Reading database ... 21217 files and directories currently installed.)
    Preparing to unpack nxfilter-4.7.1.9.deb ...
    /var/lib/dpkg/info/nxfilter.prerm: 2: sudo: not found
    dpkg: warning: old nxfilter package pre-removal script subprocess returned error exit status 127
    dpkg: trying script from the new package instead ...
    /var/lib/dpkg/tmp.ci/prerm: 2: sudo: not found
    dpkg: error processing archive nxfilter-4.7.1.9.deb (--install):
    new nxfilter package pre-removal script subprocess returned error exit status 127
    /var/lib/dpkg/info/nxfilter.postinst: 7: sudo: not found
    dpkg: error while cleaning up:
    installed nxfilter package post-installation script subprocess returned error exit status 127
    Errors were encountered while processing:
    nxfilter-4.7.1.9.deb

  • #2
    Forgot about the Docker Container. I tried it with "-ports" mapped and "network_mode: host". The container started fine but I could never connect. The Docker host is running under ProxMox (as a VM and not a LXC container). I get the below in the docker container logs.


    2025-05-28T00:54:36.026487827Z at nxd.Main.<init>(Unknown Source)
    2025-05-28T00:54:36.026588957Z at nxd.Main.main(Unknown Source)
    2025-05-28T00:54:36.031615999Z Exception in thread "Thread-0" java.lang.NullPointerException
    2025-05-28T00:54:36.031702659Z at nxd.m.run(Unknown Source)
    2025-05-28T00:54:49.790666543Z Exception in thread "main" java.lang.NullPointerException
    2025-05-28T00:54:49.790994501Z at nxd.Main.<init>(Unknown Source)
    2025-05-28T00:54:49.791211534Z at nxd.Main.main(Unknown Source)
    2025-05-28T00:54:49.796434125Z Exception in thread "Thread-0" java.lang.NullPointerException
    2025-05-28T00:54:49.796595767Z at nxd.m.run(Unknown Source)
    2025-05-28T00:55:16.494023472Z Exception in thread "main" java.lang.NullPointerException
    2025-05-28T00:55:16.494395196Z at nxd.Main.<init>(Unknown Source)
    2025-05-28T00:55:16.494576628Z at nxd.Main.main(Unknown Source)
    2025-05-28T00:55:16.500117148Z Exception in thread "Thread-0" java.lang.NullPointerException
    2025-05-28T00:55:16.500252785Z at nxd.m.run(Unknown Source)
    2025-05-28T00:56:08.753697437Z Exception in thread "main" java.lang.NullPointerException
    2025-05-28T00:56:08.753854488Z at nxd.Main.<init>(Unknown Source)
    2025-05-28T00:56:08.753924594Z at nxd.Main.main(Unknown Source)
    2025-05-28T00:56:08.759163517Z Exception in thread "Thread-0" java.lang.NullPointerException
    2025-05-28T00:56:08.759391651Z at nxd.m.run(Unknown Source)
    2025-05-28T00:57:09.734999387Z Exception in thread "main" java.lang.NullPointerException
    2025-05-28T00:57:09.735257651Z at nxd.Main.<init>(Unknown Source)
    2025-05-28T00:57:09.735409478Z at nxd.Main.main(Unknown Source)
    2025-05-28T00:57:09.740327433Z Exception in thread "Thread-0" java.lang.NullPointerException
    2025-05-28T00:57:09.740513344Z at nxd.m.run(Unknown Source)
    Last edited by apollumi; 05-28-2025, 02:01 AM.

    Comment


    • #3
      Some said that it's because you don't have 'sudo' in your system. Try 'sudo dpkg -i ..' and before you do that you can rtry to emove NxFilter by 'sudo dpkg -r nxfilter'.

      Comment


      • #4
        Why does it not work as root? Admitedly I probably need to stop the "su -l" but old habbits die hard.

        Comment


        • #5
          Still not working? You may not have 'sudo' on your system. In that case, there might be a problem as we have 'sudo' command in our script. We will remove those in future. Anyway, it might be from your system not having 'sudo'.

          Comment


          • #6
            Hmmmm... Never had a problem before installing as root. Built a server on Debian every time also.

            Of course I guess a new version came out today? Maybe I just need to wait a few days and try again?


            Edit:
            In this instance I'm trying to build it based on a debian ProxMox container image. Evidently "sudo" really isn't there.


            root@nxfilter:~# sudo --help
            -bash: sudo: command not found
            root@nxfilter:~# man sudo
            No manual entry for sudo
            root@nxfilter:~# dpkg --list sudo
            dpkg-query: no packages found matching sudo
            root@nxfilter:~#

            I mean, I saw that error, but who knew. Shrug.

            I really wanted to run deepwoods container under docker or podman. Actually wanted to get it (and many other lighter services) running under docker first then replicate that work to podman. Tried for hours. Then I said to hell with it and went to install onto a ProxMox LXC container. Probably need to chill and wait and see. My last piece though.
            Last edited by apollumi; 05-28-2025, 05:11 AM.

            Comment


            • #7
              Yeah, maybe they think 'sudo' is not that important these days. We already recompiled the DEB package without 'sudo' command. You can download it again if that's what you need.

              Comment


              • #8
                It went right in just now. Thanks man!

                I'm pretty pumped! Ready to spend a few hours scratching my head over why my nxfilter docker image keeps puking its guts and restarting.

                Note: I have been using the template from proxmox for LXC containers for everything. Specifically Debian "12-standard-12.7-1_amd64.tar.zst" and updating everything before I try and install any programs.

                Comment


                • #9
                  I finally gave up on the docker image. I felt it was too janky to trust (much like the vsftp image). NXFilter seems pretty solid in a ProxMox LXC contianer however.

                  Every container now gets "sudo" installed right off the bat. In hindsight I should probably try to avoid using root.

                  Comment

                  Working...
                  X