jssimporter / JSSImporter

JSSImporter is deprecated. Please see the wiki for alternatives
Apache License 2.0
145 stars 38 forks source link

[unknown version] Error mounting url <smb> #131

Closed marklajer closed 5 years ago

marklajer commented 6 years ago

Hello guys,

After playing around a couple of days trying to figure out what the problem is i hope you guys can help me figure it out.

I get the following error:

AutoPkg Error mounting url "smb://JSSUSER:JSSPASS@ourjss:445/mountpoint": None screen-shot-2018-04-24-at-11 18 16'

AutoPkgr

screen shot 2018-04-24 at 11 24 42

I doesn't have any $ in the share name or something like that. If I take the exactly same share (smb://JSSUSER:JSSPASS@ourjss:445/mountpoint) in the error message and put it to the finder I can mount it with out any problems.

Any suggestions?

sheagcraig commented 6 years ago

I would take a look at your password and make sure it doesn't have any reserved characters that are going to get escaped by python-jss in this case. For testing purposes, you could certainly create an additional user with a simple abc123 password to see if that's the case..

jaakkopoyry commented 6 years ago

I have a similar issue and will examine my password as well. Is there a list of common reserved characters to avoid, or does jss-importer have it's own list of ones to avoid?

jaakkopoyry commented 6 years ago

ok, i have narrowed this down. My pwd did have special characters so I escaped the offending ones out. Still failed. Those same R/W account credentials wouldn't even work in Finder (10.13.4), so i gave up and went a different route. 1) Removed all DPs from JSSImporter, uninstalled, reinstalled. 2) Set up my DPs as custom SMB entries rather than rely on JSSImporter to pull them in from Casper. 3) Ensured no mounted DPs were present. 4) ran "autopkg run Firefox.jss.recipe -v". 5) output claimed it failed but about 5 seconds after the autopkg run finished up, lo and behold, my DP mounted successfully on the desktop.

Is the delay in the DP mounting causing my whole issue? Is there any way to put a 'wait' in along the way?

jaakkopoyry commented 6 years ago

also, I am not using $ in the share name and the firefox.jss recipe does create the pkg file successfully. Only on connection to the DP does it fail & not deliver the resulting pkg. Re-Running the firefox.jss recipe with the DP mounted still produces a "None " failure and no firefox pkg on the DP.

grahampugh commented 5 years ago

@jaakopoyry @marklajer It does sound like your DP connection is too slow. Have you tried using HTTPS? Also, this issue is over a year old - did you solve it or move on?

grahampugh commented 5 years ago

To those reading closed issues, I received an email from @jaakkopoyry stating that his problems were due to password complexity issues.