Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkg add -y ... failed with return code: 64 #25726

Closed
dougluce opened this issue Jul 26, 2015 · 9 comments
Closed

pkg add -y ... failed with return code: 64 #25726

dougluce opened this issue Jul 26, 2015 · 9 comments
Labels
Bug broken, incorrect, or confusing behavior Execution-Module P3 Priority 3 Platform Relates to OS, containers, platform-based utilities like FS, system based apps severity-medium 3rd level, incorrect or bad functionality, confusing and lacks a work around
Milestone

Comments

@dougluce
Copy link
Contributor

I get that error when using a salt:// path for pkg.installed on FreeBSD 10.

The state that triggered it:

riak:
  pkg.installed:
    - sources:
      - riak: salt://files/riak-2.1.0.txz

The error:

[INFO    ] Running state [riak] at time 18:25:08.194311
[INFO    ] Executing state pkg.installed for riak
[INFO    ] Fetching file from saltenv 'base', ** skipped ** latest already in cache u'salt://files/riak-2.1.0.txz'
[INFO    ] Executing command 'pkg add  -y /usr/local/var/cache/salt/minion/files/base/files/riak-2.1.0.txz' in directory '/usr/home/kvsio'
[ERROR   ] Command 'pkg add  -y /usr/local/var/cache/salt/minion/files/base/files/riak-2.1.0.txz' failed with return code: 64
[ERROR   ] output: pkg: illegal option -- y
Usage: pkg add [-IAfqM] <pkg-name> ...
       pkg add [-IAfqM] <protocol>://<path>/<pkg-name> ...

For more information see 'pkg help add'.

Version report:

Salt Version:
           Salt: 2015.8.0rc2

Dependency Versions:
         Jinja2: 2.7.3
       M2Crypto: 0.22
           Mako: Not Installed
         PyYAML: 3.11
          PyZMQ: 14.6.0
         Python: 2.7.10 (default, Jul 23 2015, 01:22:23)
           RAET: Not Installed
        Tornado: 4.2
            ZMQ: 4.1.2
          ioflo: Not Installed
        libnacl: Not Installed
   msgpack-pure: Not Installed
 msgpack-python: 0.4.2
       pycrypto: 2.6.1

System Versions:
           dist:
        machine: amd64
        release: 10.1-RELEASE-p15

(I'm using zmq)

@jfindlay jfindlay added Execution-Module Bug broken, incorrect, or confusing behavior severity-medium 3rd level, incorrect or bad functionality, confusing and lacks a work around P3 Priority 3 Platform Relates to OS, containers, platform-based utilities like FS, system based apps labels Jul 27, 2015
@jfindlay jfindlay added this to the Approved milestone Jul 27, 2015
@jfindlay
Copy link
Contributor

@dougluce, thanks for the report and the fix.

rallytime pushed a commit to rallytime/salt that referenced this issue Jul 27, 2015
This just needed a little love.

This addresses saltstack#25726
@kev009
Copy link
Contributor

kev009 commented Jul 27, 2015

This should be reverted, there's a more comprehensive fix in 2015.5 (#25645) that will be merged forward.

@jfindlay
Copy link
Contributor

Good to know, thanks @kev009. @basepi (or @s0undt3ch) when one of you does a merge forward from 2015.5 to 2015.8, can you prefer the changes in #25645, or should I revert first?

@basepi
Copy link
Contributor

basepi commented Jul 27, 2015

A revert would be good, I think.

@kev009
Copy link
Contributor

kev009 commented Aug 4, 2015

Hi,

This was not reverted in the upmerge to 2015.8.

Also, it doesn't seem to have been merged forward to develop in the last upmerge, but that may have been because it's not hit yet.

@basepi
Copy link
Contributor

basepi commented Aug 4, 2015

@jfindlay Could you please revert this? The revert will then be merged forward.

@basepi
Copy link
Contributor

basepi commented Aug 4, 2015

Nevermind, I'll just do it.

@basepi
Copy link
Contributor

basepi commented Aug 4, 2015

Gah, this doesn't revert cleanly. I'll just do it manually on both 2015.8 and develop. Those appear to be the only branches this fix was merged to. (Develop originally, then backported to 2015.8)

@basepi
Copy link
Contributor

basepi commented Aug 4, 2015

Alright, #26006 should do it. The other part of this fix was successfully overridden by your proper fix, @kev009. Once #26006 is merged forward everything should be good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug broken, incorrect, or confusing behavior Execution-Module P3 Priority 3 Platform Relates to OS, containers, platform-based utilities like FS, system based apps severity-medium 3rd level, incorrect or bad functionality, confusing and lacks a work around
Projects
None yet
Development

No branches or pull requests

4 participants