-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Packages DB refresh leads to all packages definitions erased on windows minion #34479
Comments
@phil123456 i'm wondering if you ran into this issue that is explained in the windows software repository docs;
Does the above information help? Looks like it needs to be located in a particular directory. |
no it does not help at all, there is clearly something broken in the db_refresh command |
can I have an update on this |
hello ? |
@phil123456 The documentation says to put it in a specific location and your logs show it's trying to use this location. 2016-07-06 11:14:37 [salt.fileclient][INFO ] Caching directory 'win/repo-ng/' for environment 'base' Your sls files look to be elsewhere. /srv/salt/windows_packages/repo/salt-winrepo/duplicati_x86.sls Also, you don't need to use winrepo.genrepo if you are using repo-ng. |
Please read the documentation at: https://docs.saltstack.com/en/latest/topics/windows/windows-package-manager.html Assuming you haven't customized winrepo settings in the master config:
|
I have done all these... I am saying there is a bug in the packages system
all I changed was the repos directory in the master config file to /srv/salt/windows_packages/ |
@phil123456 Try setting that back to default and using the default paths... |
sure, but still it should work so this should be considered as a bug to fix |
Did you set winrepo_dir_ng (not winrepo_dir) in the master config file? |
winrepo_dir_ng: '/srv/salt/windows_packages/repo-ng' |
The traceback has beeen fixed in #35471 |
so do I download the exe and reinstall the minion on windows ? |
@phil123456 The patch will be in the next release of salt. |
Description of Issue/Question
I tried to add my own package definition (winrar), but as I try to install it on minion, => package cannot be found in repository
digging further in the windows minion files
C:\salt\var\cache\salt\minion\files\base\win
only contains repo-ng that contains winrepo.p
and if I one it with an hex editor, it only contains character 0x80 (???)
it seems de db refresh erased all other packages, I refreshed the db without my winrar sls but still the same
all packages are GONE !
the minion log does not give any information about the package except it cannot find it
let me know if you need more infos
Setup
Steps to Reproduce Issue
then I did a refresh that seemed successfull
on the minion:
pkg.available_version does not even show other packages before crashing:
Versions Report
Salt Version:
Salt: 2016.3.1
Dependency Versions:
cffi: 0.8.6
cherrypy: Not Installed
dateutil: 2.2
gitdb: 0.5.4
gitpython: 0.3.2 RC1
ioflo: Not Installed
Jinja2: 2.7.3
libgit2: Not Installed
libnacl: Not Installed
M2Crypto: Not Installed
Mako: Not Installed
msgpack-pure: Not Installed
msgpack-python: 0.4.2
mysql-python: 1.2.3
pycparser: 2.10
pycrypto: 2.6.1
pygit2: Not Installed
Python: 2.7.9 (default, Mar 1 2015, 12:57:24)
python-gnupg: 0.3.6
PyYAML: 3.11
PyZMQ: 14.4.0
RAET: Not Installed
smmap: 0.8.2
timelib: Not Installed
Tornado: 4.2.1
ZMQ: 4.0.5
System Versions:
dist: debian 8.5
machine: x86_64
release: 3.16.0-4-amd64
system: Linux
version: debian 8.5
The text was updated successfully, but these errors were encountered: