ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Installing the agent

    SodiumSuite
    sodium agent sodiumsuite
    6
    45
    6.1k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • WLS-ITGuyW
      WLS-ITGuy
      last edited by

      Here is the latest issue:

      C:\WINDOWS\system32>choco uninstall salt-minion
      Chocolatey v0.10.8
      Uninstalling the following packages:
      salt-minion
      salt-minion is not installed. Cannot uninstall a non-existent package.
      
      Chocolatey uninstalled 0/1 packages. 1 packages failed.
       See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
      
      Failures
       - salt-minion - salt-minion is not installed. Cannot uninstall a non-existent package.
      
      If a package uninstall is failing and/or you've already uninstalled the
       software outside of Chocolatey, you can attempt to run the command
       with `-n` to skip running a chocolateyUninstall script, additionally
       adding `--skip-autouninstaller` to skip an attempt to automatically
       remove system-installed software. This will only remove the packaging
       files and not things like software installed to Programs and Features.
      
      If a package is failing because it is a dependency of another package
       or packages, then you may first need to consider if it needs removed
       as it is typically installed as a dependency for a reason. If you
       decide that you still want to remove it, head into
       `$env:ChocolateyInstall\lib` and find the package folder you want
       removed. Then delete the folder for the package. This option should
       only be used as a last resort.
      
      
      C:\WINDOWS\system32>choco uninstall salt-minion -n
      Chocolatey v0.10.8
      Uninstalling the following packages:
      salt-minion
      salt-minion is not installed. Cannot uninstall a non-existent package.
      
      Chocolatey uninstalled 0/1 packages. 1 packages failed.
       See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
      
      Failures
       - salt-minion - salt-minion is not installed. Cannot uninstall a non-existent package.
      
      If a package uninstall is failing and/or you've already uninstalled the
       software outside of Chocolatey, you can attempt to run the command
       with `-n` to skip running a chocolateyUninstall script, additionally
       adding `--skip-autouninstaller` to skip an attempt to automatically
       remove system-installed software. This will only remove the packaging
       files and not things like software installed to Programs and Features.
      
      If a package is failing because it is a dependency of another package
       or packages, then you may first need to consider if it needs removed
       as it is typically installed as a dependency for a reason. If you
       decide that you still want to remove it, head into
       `$env:ChocolateyInstall\lib` and find the package folder you want
       removed. Then delete the folder for the package. This option should
       only be used as a last resort.
      
      
      C:\WINDOWS\system32>@powershell Invoke-Webrequest https://gitlab.com/dutchcolonial/sodiumsuiteinstallers/raw/master/windows.cmd -UseBasicParsing -OutFile windowsinstall.cmd ; cmd /c .\windowsinstall.cmd 79bcd200ab29ef4fac4adc5a34ff0a9b7d065146
      
      C:\WINDOWS\system32>set companyID=79bcd200ab29ef4fac4adc5a34ff0a9b7d065146
      
      C:\WINDOWS\system32>set masterURL="na1.waxquixotic.com"
      Getting latest version of the Chocolatey package for download.
      Getting Chocolatey from https://chocolatey.org/api/v2/package/chocolatey/0.10.8.
      Extracting C:\Users\HARTWI~1.SEM\AppData\Local\Temp\chocolatey\chocInstall\chocolatey.zip to C:\Users\HARTWI~1.SEM\AppData\Local\Temp\chocolatey\chocInstall...
      Installing chocolatey on this machine
      Creating ChocolateyInstall as an environment variable (targeting 'Machine')
        Setting ChocolateyInstall to 'C:\ProgramData\chocolatey'
      WARNING: It's very likely you will need to close and reopen your shell
        before you can use choco.
      Restricting write permissions to Administrators
      We are setting up the Chocolatey package repository.
      The packages themselves go to 'C:\ProgramData\chocolatey\lib'
        (i.e. C:\ProgramData\chocolatey\lib\yourPackageName).
      A shim file for the command line goes to 'C:\ProgramData\chocolatey\bin'
        and points to an executable in 'C:\ProgramData\chocolatey\lib\yourPackageName'.
      
      Creating Chocolatey folders if they do not already exist.
      
      WARNING: You can safely ignore errors related to missing log files when
        upgrading from a version of Chocolatey less than 0.9.9.
        'Batch file could not be found' is also safe to ignore.
        'The system cannot find the file specified' - also safe.
      WARNING: Not setting tab completion: Profile file does not exist at
      'C:\Users\hartwigj.SEMINARY\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1'.
      Chocolatey (choco.exe) is now ready.
      You can call choco from anywhere, command line or powershell by typing choco.
      Run choco /? for a list of functions.
      You may need to shut down and restart powershell and/or consoles
       first prior to using choco.
      Ensuring chocolatey commands are on the path
      Ensuring chocolatey.nupkg is in the lib folder
      
      C:\WINDOWS\system32>choco install saltminion -y --ignore-checksums
      Chocolatey v0.10.8
      Installing the following packages:
      saltminion
      By installing you accept licenses for the packages.
      saltminion v2017.7.2 already installed.
       Use --force to reinstall, specify a version to install, or try upgrade.
      
      Chocolatey installed 0/1 packages.
       See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
      
      Warnings:
       - saltminion - saltminion v2017.7.2 already installed.
       Use --force to reinstall, specify a version to install, or try upgrade.
      
      C:\WINDOWS\system32>icacls "c:\salt\bin\Lib\site-packages\salt\" /grant "Authenticated Users":(OI)(CI)R
      Invalid parameter "Users:(OI)(CI)R   "
      
      C:\WINDOWS\system32>echo 79bcd200ab29ef4fac4adc5a34ff0a9b7d065146   1>c:\salt\bin\lib\site-packages\salt\companyName.txt
      The system cannot find the path specified.
      
      C:\WINDOWS\system32>echo master: "na1.waxquixotic.com"   1>c:\salt\conf\minion.d\mast.conf
      
      C:\WINDOWS\system32>net stop salt-minion   && net start salt-minion
      The service name is invalid.
      
      More help is available by typing NET HELPMSG 2185.
      
      1 Reply Last reply Reply Quote 0
      • scottalanmillerS
        scottalanmiller
        last edited by

        Try installing now, Windows installer now "should" deal with this scenario.

        WLS-ITGuyW 1 Reply Last reply Reply Quote 1
        • WLS-ITGuyW
          WLS-ITGuy @scottalanmiller
          last edited by

          @scottalanmiller said in Installing the agent:

          Try installing now, Windows installer now "should" deal with this scenario.

          All good.

          scottalanmillerS 1 Reply Last reply Reply Quote 0
          • scottalanmillerS
            scottalanmiller @WLS-ITGuy
            last edited by

            @wls-itguy said in Installing the agent:

            @scottalanmiller said in Installing the agent:

            Try installing now, Windows installer now "should" deal with this scenario.

            All good.

            Awesome. The new installer for Windows is a little more aggressive 😉

            1 Reply Last reply Reply Quote 0
            • WLS-ITGuyW
              WLS-ITGuy
              last edited by

              Installing on home R-Pi machine. Not sure if something went wrong or not. Looked like it failed but I can't tell.

              pi@JJBETown-Pi:~ $ sudo su
              root@JJBETown-Pi:/home/pi# wget -q -O - https://gitlab.com/dutchcolonial/sodiumsuiteinstallers/raw/master/unix.sh | bash -s 79bcd200ab29ef4fac4adc5a34ff0a9b7d065146
              Reading package lists... Done
              Building dependency tree       
              Reading state information... Done
              Package uuid-runtime is not available, but is referred to by another package.
              This may mean that the package is missing, has been obsoleted, or
              is only available from another source
              
              E: Package 'uuid-runtime' has no installation candidate
              Get:1 http://raspbian.raspberrypi.org/raspbian stretch InRelease [15.0 kB]     
              Hit:2 http://archive.raspberrypi.org/debian stretch InRelease                  
              Get:3 http://raspbian.raspberrypi.org/raspbian stretch/main armhf Packages [11.7 MB]
              Get:4 http://raspbian.raspberrypi.org/raspbian stretch/contrib armhf Packages [56.8 kB]
              Get:5 http://raspbian.raspberrypi.org/raspbian stretch/non-free armhf Packages [95.2 kB]
              Get:6 http://raspbian.raspberrypi.org/raspbian stretch/rpi armhf Packages [1,360 B]
              Fetched 11.8 MB in 45s (258 kB/s)                                              
              Reading package lists... Done
              Reading package lists... Done
              Building dependency tree       
              Reading state information... Done
              The following additional packages will be installed:
                dctrl-tools dirmngr python-apt python-backports-abc
                python-concurrent.futures python-croniter python-dateutil python-msgpack
                python-singledispatch python-systemd python-tornado python-tz python-yaml
                python-zmq salt-common
              Suggested packages:
                debtags pinentry-gnome3 tor python-apt-dbg python-apt-doc python-psutil-doc
                python-mysqldb python-pycurl python-tornado-doc python-twisted python-mako
                salt-doc python-augeas
              The following NEW packages will be installed:
                dctrl-tools dirmngr python-apt python-backports-abc
                python-concurrent.futures python-croniter python-dateutil python-msgpack
                python-psutil python-singledispatch python-systemd python-tornado python-tz
                python-yaml python-zmq salt-common salt-minion uuid-runtime
              0 upgraded, 18 newly installed, 0 to remove and 0 not upgraded.
              Need to get 6,069 kB of archives.
              After this operation, 27.3 MB of additional disk space will be used.
              Get:1 http://mirrors.syringanetworks.net/raspbian/raspbian stretch/main armhf uuid-runtime armhf 2.29.2-1+deb9u1 [80.9 kB]
              Get:2 http://raspbian.mirrors.lucidnetworks.net/raspbian stretch/main armhf dirmngr armhf 2.1.18-8~deb9u1 [546 kB]
              Get:3 http://mirrors.syringanetworks.net/raspbian/raspbian stretch/main armhf python-apt armhf 1.1.0~beta5 [157 kB]
              Get:4 http://mirror.us.leaseweb.net/raspbian/raspbian stretch/main armhf dctrl-tools armhf 2.24-2 [94.4 kB]
              Get:5 http://mirror.web-ster.com/raspbian/raspbian stretch/main armhf python-backports-abc all 0.5-1 [6,050 B]
              Get:7 http://mirror.us.leaseweb.net/raspbian/raspbian stretch/main armhf python-dateutil all 2.5.3-2 [51.3 kB]
              Get:6 http://raspbian-us.ngc292.space/raspbian stretch/main armhf python-concurrent.futures all 3.0.5-3 [35.8 kB]
              Get:8 http://raspbian-us.ngc292.space/raspbian stretch/main armhf python-tz all 2016.7-0.3 [33.7 kB]
              Get:9 http://mirror.web-ster.com/raspbian/raspbian stretch/main armhf python-croniter all 0.3.12-2 [12.6 kB]
              Get:10 http://raspbian-us.ngc292.space/raspbian stretch/main armhf python-msgpack armhf 0.4.8-1 [62.9 kB]
              Get:11 http://raspbian-us.ngc292.space/raspbian stretch/main armhf python-psutil armhf 5.0.1-1 [126 kB]
              Get:12 http://raspbian-us.ngc292.space/raspbian stretch/main armhf python-singledispatch all 3.4.0.3-2 [9,690 B]
              Get:13 http://raspbian-us.ngc292.space/raspbian stretch/main armhf python-systemd armhf 233-1 [30.1 kB]
              Get:14 http://raspbian-us.ngc292.space/raspbian stretch/main armhf python-tornado armhf 4.4.3-1 [313 kB]
              Get:15 http://mirrors.syringanetworks.net/raspbian/raspbian stretch/main armhf python-yaml armhf 3.12-1 [103 kB]
              Get:16 http://raspbian-us.ngc292.space/raspbian stretch/main armhf python-zmq armhf 16.0.2-2 [219 kB]
              Get:17 http://mirrors.syringanetworks.net/raspbian/raspbian stretch/main armhf salt-common all 2016.11.2+ds-1+deb9u1 [4,153 kB]
              Get:18 http://mirrors.syringanetworks.net/raspbian/raspbian stretch/main armhf salt-minion all 2016.11.2+ds-1+deb9u1 [35.1 kB]
              Fetched 6,069 kB in 25s (236 kB/s)                                             
              Selecting previously unselected package uuid-runtime.
              (Reading database ... 124697 files and directories currently installed.)
              Preparing to unpack .../00-uuid-runtime_2.29.2-1+deb9u1_armhf.deb ...
              Unpacking uuid-runtime (2.29.2-1+deb9u1) ...
              Selecting previously unselected package dirmngr.
              Preparing to unpack .../01-dirmngr_2.1.18-8~deb9u1_armhf.deb ...
              Unpacking dirmngr (2.1.18-8~deb9u1) ...
              Selecting previously unselected package python-apt.
              Preparing to unpack .../02-python-apt_1.1.0~beta5_armhf.deb ...
              Unpacking python-apt (1.1.0~beta5) ...
              Selecting previously unselected package dctrl-tools.
              Preparing to unpack .../03-dctrl-tools_2.24-2_armhf.deb ...
              Unpacking dctrl-tools (2.24-2) ...
              Selecting previously unselected package python-backports-abc.
              Preparing to unpack .../04-python-backports-abc_0.5-1_all.deb ...
              Unpacking python-backports-abc (0.5-1) ...
              Selecting previously unselected package python-concurrent.futures.
              Preparing to unpack .../05-python-concurrent.futures_3.0.5-3_all.deb ...
              Unpacking python-concurrent.futures (3.0.5-3) ...
              Selecting previously unselected package python-dateutil.
              Preparing to unpack .../06-python-dateutil_2.5.3-2_all.deb ...
              Unpacking python-dateutil (2.5.3-2) ...
              Selecting previously unselected package python-tz.
              Preparing to unpack .../07-python-tz_2016.7-0.3_all.deb ...
              Unpacking python-tz (2016.7-0.3) ...
              Selecting previously unselected package python-croniter.
              Preparing to unpack .../08-python-croniter_0.3.12-2_all.deb ...
              Unpacking python-croniter (0.3.12-2) ...
              Selecting previously unselected package python-msgpack.
              Preparing to unpack .../09-python-msgpack_0.4.8-1_armhf.deb ...
              Unpacking python-msgpack (0.4.8-1) ...
              Selecting previously unselected package python-psutil.
              Preparing to unpack .../10-python-psutil_5.0.1-1_armhf.deb ...
              Unpacking python-psutil (5.0.1-1) ...
              Selecting previously unselected package python-singledispatch.
              Preparing to unpack .../11-python-singledispatch_3.4.0.3-2_all.deb ...
              Unpacking python-singledispatch (3.4.0.3-2) ...
              Selecting previously unselected package python-systemd.
              Preparing to unpack .../12-python-systemd_233-1_armhf.deb ...
              Unpacking python-systemd (233-1) ...
              Selecting previously unselected package python-tornado.
              Preparing to unpack .../13-python-tornado_4.4.3-1_armhf.deb ...
              Unpacking python-tornado (4.4.3-1) ...
              Selecting previously unselected package python-yaml.
              Preparing to unpack .../14-python-yaml_3.12-1_armhf.deb ...
              Unpacking python-yaml (3.12-1) ...
              Selecting previously unselected package python-zmq.
              Preparing to unpack .../15-python-zmq_16.0.2-2_armhf.deb ...
              Unpacking python-zmq (16.0.2-2) ...
              Selecting previously unselected package salt-common.
              Preparing to unpack .../16-salt-common_2016.11.2+ds-1+deb9u1_all.deb ...
              Unpacking salt-common (2016.11.2+ds-1+deb9u1) ...
              Selecting previously unselected package salt-minion.
              Preparing to unpack .../17-salt-minion_2016.11.2+ds-1+deb9u1_all.deb ...
              Unpacking salt-minion (2016.11.2+ds-1+deb9u1) ...
              Setting up python-msgpack (0.4.8-1) ...
              Setting up python-yaml (3.12-1) ...
              Setting up python-backports-abc (0.5-1) ...
              Setting up python-tz (2016.7-0.3) ...
              Setting up dctrl-tools (2.24-2) ...
              Setting up uuid-runtime (2.29.2-1+deb9u1) ...
              Adding group `uuidd' (GID 116) ...
              Done.
              Warning: The home dir /run/uuidd you specified can't be accessed: No such file or directory
              Adding system user `uuidd' (UID 111) ...
              Adding new user `uuidd' (UID 111) with group `uuidd' ...
              Not creating home directory `/run/uuidd'.
              Created symlink /etc/systemd/system/sockets.target.wants/uuidd.socket → /lib/systemd/system/uuidd.socket.
              Setting up python-dateutil (2.5.3-2) ...
              Setting up python-psutil (5.0.1-1) ...
              Setting up python-systemd (233-1) ...
              Processing triggers for systemd (232-25+deb9u2) ...
              Processing triggers for man-db (2.7.6.1-2) ...
              Setting up python-concurrent.futures (3.0.5-3) ...
              Setting up python-singledispatch (3.4.0.3-2) ...
              Setting up python-croniter (0.3.12-2) ...
              Setting up dirmngr (2.1.18-8~deb9u1) ...
              Setting up python-zmq (16.0.2-2) ...
              Setting up python-tornado (4.4.3-1) ...
              Setting up python-apt (1.1.0~beta5) ...
              Setting up salt-common (2016.11.2+ds-1+deb9u1) ...
              Setting up salt-minion (2016.11.2+ds-1+deb9u1) ...
              
              Configuration file '/etc/salt/minion'
               ==> File on system created by you or by a script.
               ==> File also in package provided by package maintainer.
                 What would you like to do about it ?  Your options are:
                  Y or I  : install the package maintainer's version
                  N or O  : keep your currently-installed version
                    D     : show the differences between the versions
                    Z     : start a shell to examine the situation
               The default action is to keep your current version.
              *** minion (Y/I/N/O/D/Z) [default=N] ? dpkg: error processing package salt-minion (--configure):
               end of file on stdin at conffile prompt
              Processing triggers for systemd (232-25+deb9u2) ...
              Errors were encountered while processing:
               salt-minion
              E: Sub-process /usr/bin/dpkg returned an error code (1)
              Synchronizing state of salt-minion.service with SysV service script with /lib/systemd/systemd-sysv-install.
              Executing: /lib/systemd/systemd-sysv-install enable salt-minion
              
              scottalanmillerS 1 Reply Last reply Reply Quote 0
              • scottalanmillerS
                scottalanmiller
                last edited by

                So uuidgen is missing.

                1 Reply Last reply Reply Quote 0
                • scottalanmillerS
                  scottalanmiller @WLS-ITGuy
                  last edited by

                  @wls-itguy said in Installing the agent:

                  Installing on home R-Pi machine. Not sure if something went wrong or not. Looked like it failed but I can't tell.

                  What operating system? R-Pi is just the architecture.

                  WLS-ITGuyW 1 Reply Last reply Reply Quote 0
                  • WLS-ITGuyW
                    WLS-ITGuy @scottalanmiller
                    last edited by

                    @scottalanmiller Debian 9

                    scottalanmillerS 1 Reply Last reply Reply Quote 0
                    • scottalanmillerS
                      scottalanmiller @WLS-ITGuy
                      last edited by

                      @wls-itguy said in Installing the agent:

                      @scottalanmiller Debian 9

                      Ah, okay. That is a new combination. So Debian 9 on there is different than "normal" Debian 9. Might be a repo issue.

                      WLS-ITGuyW 1 Reply Last reply Reply Quote 0
                      • WLS-ITGuyW
                        WLS-ITGuy @scottalanmiller
                        last edited by

                        @scottalanmiller said in Installing the agent:

                        @wls-itguy said in Installing the agent:

                        @scottalanmiller Debian 9

                        Ah, okay. That is a new combination. So Debian 9 on there is different than "normal" Debian 9. Might be a repo issue.

                        It is checking in so not sure what the deal was.

                        scottalanmillerS 1 Reply Last reply Reply Quote 0
                        • scottalanmillerS
                          scottalanmiller @WLS-ITGuy
                          last edited by

                          @wls-itguy said in Installing the agent:

                          @scottalanmiller said in Installing the agent:

                          @wls-itguy said in Installing the agent:

                          @scottalanmiller Debian 9

                          Ah, okay. That is a new combination. So Debian 9 on there is different than "normal" Debian 9. Might be a repo issue.

                          It is checking in so not sure what the deal was.

                          Oh sure, the one thing that actually works, fails on the way to doing it. lol

                          1 Reply Last reply Reply Quote 2
                          • 1
                          • 2
                          • 3
                          • 3 / 3
                          • First post
                            Last post