SitecorePowerShell / Console

Sitecore PowerShell Extensions
https://doc.sitecorepowershell.com/
Other
114 stars 70 forks source link

VERBOSE: Pooling job . Status: . #743

Closed afortaleza closed 7 years ago

afortaleza commented 8 years ago

Steps to replicate the error:

AdamNaj commented 8 years ago

There is a known general issue with package installation if your instance does not have a MongoDB running while not in CMS only mode.

Can you verify if that is not the case?

afortaleza commented 8 years ago

Hello @AdamNaj, I have the following mongodb running, it's a service so it's always up:

db version v3.2.10 git version: 79d9b3ab5ce20f51c272b4411202710a082d0317 OpenSSL version: OpenSSL 1.0.1t-fips 3 May 2016 allocator: tcmalloc modules: none build environment: distmod: 2008plus-ssl distarch: x86_64 target_arch: x86_64

afortaleza commented 8 years ago

It works if I do the same procedure using:

afortaleza commented 8 years ago

Following some tests I believe the issue is with the 4.2 Minimal for Sitecore 8 package,

michaellwest commented 8 years ago

@afortaleza Do you happen to have the Remoting module installed in more than one location? You can check the $env:PSModulePath to see which locations are searched.

afortaleza commented 8 years ago

@michaellwest I have checked the 4 directories listed and it's installed in one directory only.

michaellwest commented 8 years ago

Hey @afortaleza, found the issue. Pretty silly actually. @AdamNaj and I just introduced a new security feature which requires the service to be enabled through configuration ("remoting=true") and the user to be added to the configured group ("sitecore\PowerShell Extensions Remoting").

If I connect with the user sitecore\speremoting and patch the remoting setting to true then the job starts working as expected.

What would have been nice is that the Wait-RemoteScriptSession was aware no job id existed and return right away. In addition, it would have bee nice if the New-ScriptSession command reported that the service was disabled.

I apologize for the inconvenience introduced with issue #715.

michaellwest commented 8 years ago

@afortaleza added commits for issues #752 and #753 to help address this issue.

AdamNaj commented 7 years ago

Assuming this is now a duplicate addressed by #752 and #753. Re-open otherwise.