Page 1 of 1

DeployAgent - Raspbian/ARM bug

Posted: Thu Mar 11, 2021 4:00 am
by jacek
Hi,

today I tried to deploy NCPA on an RaspberryPi, looks like the deployment script doesn't take the distro into account.
It simply didn't download the package, after I manually put an package to /tmp/ncpa.deb and re-run the deployment it worked.
Few things to notice:
  • in the wizard there was no disk detected, so there is no disk space check, need to add it manually
  • I have UFW installed on that RPi as the firewall and can see that the port was not opened, UFW is pretty common these days so this should be taken into consideration
Below two snips, where it detects the distribution and where it fails to install ncpa:

Code: Select all

                                "ansible_local": {},
                                "ansible_lsb": {
                                    "codename": "buster",
                                    "description": "Raspbian GNU/Linux 10 (buster)",
                                    "id": "Raspbian",
                                    "major_release": "10",
                                    "release": "10"
                                },

Code: Select all

              {
                    "hosts": {
                        "OUR_HOST_NAME": {
                            "_ansible_no_log": false,
                            "action": "apt",
                            "changed": false,
                            "failed": true,
                            "invocation": {
                                "module_args": {
                                    "allow_unauthenticated": false,
                                    "autoclean": false,
                                    "autoremove": false,
                                    "cache_valid_time": 0,
                                    "deb": "/tmp/ncpa.deb",
                                    "default_release": null,
                                    "dpkg_options": "force-confdef,force-confold",
                                    "force": false,
                                    "force_apt_get": false,
                                    "install_recommends": null,
                                    "only_upgrade": false,
                                    "package": null,
                                    "policy_rc_d": null,
                                    "purge": false,
                                    "state": "present",
                                    "update_cache": null,
                                    "upgrade": null
                                }
                            },
                            "msg": "Unable to install package: E:Could not open file /tmp/ncpa.deb - open (2: No such file or directory)"
                        }
                    },

Re: DeployAgent - Raspbian/ARM bug

Posted: Thu Mar 11, 2021 11:25 am
by lmiltchev
Thank you for reporting this issue @jacek! I forwarded your feedback to your developers, and filed an internal feature request for adding this functionality.

Note: Deploying NCPA to Raspbian hasn't been implemented yet or tested.