-
Notifications
You must be signed in to change notification settings - Fork 225
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
Why is is the Source path adding the word source? #175
Comments
I actually figured it out. I still have the parameter for credentials... |
Actually that did not resolve it :( still putting \source\ in my path. Path should just be '\localhost\sql\setup.exe' I have no idea where Source is coming form |
I tried changing it to the Drive Letter. Same result. This is weird... SourcePath = "G:" Invalid argument: 'Path' with value: 'G:\Source\setup.exe' File not found in the environment path |
Looking at the code, xSQLServerSetup uses two parameters to build the path for installation media, $SourcePath = '\localhost\'
$SourceFolder = 'sql' OR $SourcePath = '\localhost\sql'
$SourceFolder = '' Hope that helps! |
This is also discussed in #40. The discussion there moved to discussing the removal of the SourceFolder entirely. To begin with I think we should remove the default value 'Source' from the parameter. I think it is confusing for that parameter to have a default value. If nobody objects I'm happy to do this change in PR #132 that I'm working on. This will be a breaking change though. |
It is still causing the test case to fail for some reason. |
Make sure the path is present for the user that runs the resource.
Also you have to use two backslashes in the UNC path. If the installation media is in the root of the share, set the $SourcePath = '\\localhost\sql'
$SourceFolder = '' I think that should work. But if it still does not work for you. Could you please submit you configuration file (without any sensitive information) and I will test it in my lab. |
You should be able to use a drive letter as well, as long as the account running the resource has permission to it (and can see it). $SourcePath = 'G:\'
$SourceFolder = '' |
Ya, I removed Sourced Credential as it is no longer required. Currently it is running as System as it is being called from an Azure template. When I run pointing to the extracted folder and not the ISO and use a source folder it works perfect. When I set it to use the share I create or the drive letter as you specified I get the following error. Trying to figure out why. I guess I can try running it as PsDscRunAsCredential and see if that helps. Thanks for the tips! Job {8C553CA2-A29B-11E6-80C7-000D3A24A9E9} : |
The error Example of the error when I was testing other scenarios earlier today.
Note: The verbose messages are slightly different since I running a PR I'm working on. |
Okay, see if I understand this correctly, so the error always occur when you set So these two scenarios below does not work for you? $SourcePath = '\\localhost\sql'
$SourceFolder = '' $SourcePath = 'G:\'
$SourceFolder = '' But this scenario does work? $SourcePath = 'C:\Images'
$SourceFolder = 'MySqlMedia' |
thanks you were absolutely right, somehow the setup files got corrupted!!!! ugh :) |
I am moving to using and ISO for the install.
I am using net use to map the remote location
I than mount the ISO
I finish by sharing the ISO mount as xSqlServerSetup wants a UNC path
Here is my parameter:
SourcePath = \localhost\sql
This resolved fine and the setup.exe file is in that folder.
I am getting the following error and it seems to be altering the path
Invalid argument: 'Path' with value: '\localhost\sql\Source\setup.exe' File not found in the environment path
Ideas? I didn't have this issue when I was unzipping the ISO, it seems very odd...
The text was updated successfully, but these errors were encountered: