vmware-archive / salt-windows-install

Open source installer for Windows
saltstack.org
BSD 2-Clause "Simplified" License
75 stars 39 forks source link

salt-master.exe looking for salt log in wrong directory #27

Open mike-ainsworth opened 11 years ago

mike-ainsworth commented 11 years ago

Good Afternoon, This issue is of minimal importance as according to the docs there are no plans to make the Salt-Master available on windows. I did notice however that there is a Salt-Master.exe in the c:\Salt directory. I ran it from the command line to see what it would do and it immediately fails as it's looking to log something in "c:\Var" instead of what I assume should be "c:\Salt\Var".
I attached a screenshot for all to enjoy.

cheers, -Mike screen shot 2013-08-03 at 2 22 45 pm

UtahDave commented 11 years ago

Try passing in the correct directory

salt-minion -l debug -c c:\salt\conf

On Aug 3, 2013 2:27 PM, "Mike Ainsworth" notifications@github.com wrote:

Good Afternoon, This issue is of minimal importance as according to the docs there are no plans to make the Salt-Master available on windows. I did notice however that there is a Salt-Master.exe in the c:\Salt directory. I ran it from the command line to see what it would do and it immediately fails as it's looking to log something in "c:\Var" instead of what I assume should be "c:\Salt\Var".

I attached a screenshot for all to enjoy.

cheers, -Mike

— Reply to this email directly or view it on GitHub.

mike-ainsworth commented 11 years ago

gotcha, the clue about the .conf makes sense. There is no default "master" conf file so it defaults to root (c:) and then complains when the directory doesn't exist.

Passing in the suggested command doesn't sort the issue for salt-master (and my minion is working just fine), but explains why salt-master.exe is behaving this way.

Perhaps if I were to assemble a proper master config with a log_file definition I would get a different result.

On Aug 3, 2013, at 2:49 PM, David Boucha notifications@github.com wrote:

Try passing in the correct directory

salt-minion -l debug -c c:\salt\conf

On Aug 3, 2013 2:27 PM, "Mike Ainsworth" notifications@github.com wrote:

Good Afternoon, This issue is of minimal importance as according to the docs there are no plans to make the Salt-Master available on windows. I did notice however that there is a Salt-Master.exe in the c:\Salt directory. I ran it from the command line to see what it would do and it immediately fails as it's looking to log something in "c:\Var" instead of what I assume should be "c:\Salt\Var".

I attached a screenshot for all to enjoy.

cheers, -Mike

— Reply to this email directly or view it on GitHub. — Reply to this email directly or view it on GitHub.

UtahDave commented 11 years ago

Ah yes, drop a master config in there. I haven't tried running a master on Windows in a long long time. There are some big blockers. multi processing issues, among others. It would be nice to get it working some day, though On Aug 3, 2013 3:14 PM, "Mike Ainsworth" notifications@github.com wrote:

gotcha, the clue about the .conf makes sense. There is no default "master" conf file so it defaults to root (c:) and then complains when the directory doesn't exist.

Passing in the suggested command doesn't sort the issue for salt-master (and my minion is working just fine), but explains why salt-master.exe is behaving this way.

Perhaps if I were to assemble a proper master config with a log_file definition I would get a different result.

On Aug 3, 2013, at 2:49 PM, David Boucha notifications@github.com wrote:

Try passing in the correct directory

salt-minion -l debug -c c:\salt\conf

On Aug 3, 2013 2:27 PM, "Mike Ainsworth" notifications@github.com wrote:

Good Afternoon, This issue is of minimal importance as according to the docs there are no plans to make the Salt-Master available on windows. I did notice however that there is a Salt-Master.exe in the c:\Salt directory. I ran it from the command line to see what it would do and it immediately fails as it's looking to log something in "c:\Var" instead of what I assume should be "c:\Salt\Var".

I attached a screenshot for all to enjoy.

cheers, -Mike

— Reply to this email directly or view it on GitHub. — Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHubhttps://github.com/saltstack/salt-windows-install/issues/27#issuecomment-22061797 .