Showing posts with label STSADM. Show all posts
Showing posts with label STSADM. Show all posts

Thursday, 27 August 2009

Job failed with the following error. This job will be skipped. Failed to connect to an IPC Port: Access is denied.

While Running stsadm with 'execadmsvcjobs' if you come across following error, it's likely one of the following thing could fix it.

stsadm.exe -o execadmsvcjobs

Executing .
Executing SharePoint Worker Process Group Updatefaab8d3e-048c-42b1-80d8-63ab5451da0d.
The SharePoint Worker Process Group Updatefaab8d3e-048c-42b1-80d8-63ab5451da0d job failed with the following error. This job will be skipped. Failed to connect to an IPC Port: Access is denied.

Operation completed successfully.


This can be result of multiple things. Some of the thing is specified in http://fnoja.blogspot.com/2007/08/failed-to-connect-to-ipc-port-access-is.html blog.
In short you need to check following:
  1. open services management console(services.msc) and check if 'Windows SharePoint Services Administration' service is running. If not start it. Make sure service log-on credential are correct.
  2. Check if the 'Windows SharePoint Services Timer' service is running and with write credential. This user will need access to the database server as well.
  3. And if your Sharepoint server accessing the database using local service, then the machine is added to the database as sysadmin.

Monday, 10 August 2009

STSADM error message

Symptom:
"The Web application at 'http://yourserver:port/Approval Requests' could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application."

Reason:
Apparently Sharepoint gives this error message if you try to run stsadm remotely. There are lots more cases when you will get same message, this is just one.

Solution:
1) run command locally.
2)Alternatively run command using psexec. Just create a batch file with the stsadm command to execute. Then execute the batch file with psexec with a administrator user id and password.


Example: copy following line to delete.bat file

stsadm.exe -o gl-deletelistitem -url "http://yourserver:port/Approval Requests"


Above line uses powershell command to delete all contents of a list 'Approval Requests'. You can download powershell from http://stsadm.blogspot.com/2009/02/downloads.html.


Then run following command from any workstation to execute above batch file remotely to sharepoint server.


psexec.exe \\sharepointServer -u yourdomain\sharepointAdmin -p password C:\batchfilelocation\delete.bat'

yourdomain\sharepointAdmin should also an administrator to the sharepoint database.