Tridion Stack Exchange is a question and answer site for Tridion developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have recently installed the SDL Web8 Content Service as a standalone micro service. I set the LOGGING level to trace. When I try to start the service, it shuts down after about 10 seconds. There are a ot of log entries, but the final 6 lines are:

2016-01-22 07:58:45,265 INFO  ODataWebserviceExtensionManager - Finished loading webservice extensions
2016-01-22 07:58:45,307 TRACE ODataWebHandler - Initializing extensions.
2016-01-22 07:59:28,423 DEBUG TridionEntityTypeRegister - Registering entity data models
2016-01-22 07:59:28,895 DEBUG TridionEntityTypeRegister - Registering metadata functions
2016-01-22 07:59:30,318 DEBUG AmbientServiceProvider - Initializing Ambient Data Framework Service
2016-01-22 07:59:41,706 DEBUG ODataContextListener - OData servlet Context was destroyed, shutting down StorageManagerFactory

I also tried running the service using the start.ps1 PowerShell script, but I see the same problem.

Can anyone suggest what may be causing this, or which other log files I should look in to try and solve the problem?

share|improve this question
    
Try turning ADF off (if you can?). Maybe permissions? – Rob Stevenson-Leggett Jan 22 at 13:16
    
we don't use ADF, so I May . Can you tell me how to do it? – Chris Summers Jan 22 at 13:30
    
No - I'm just guessing as that is what was initialized before it dies. – Rob Stevenson-Leggett Jan 22 at 14:22
    
You may check this - tridion.stackexchange.com/questions/13557/… - and refer the answers given by Mukesh and Sayantan - may be that can help. – Pankaj Gaur Jan 22 at 14:28
up vote 11 down vote accepted

If you don't see any other errors, I'm guessing it is a port conflict. The default port for the Content Service is 8081; perhaps something else on your machine is already running on that port.

You can check that using PowerShell:

Get-NetTCPConnection | where { $_.LocalPort -eq 8081}

If that returns anything, there is something running on that port.

(You can also use netstat -ao if you prefer)

Edit: Another possibility is that you haven't added a valid cd_licenses.xml file to the config folder of the server. Although that does normally show up in the logs and when you run 'Start.ps1', it can be easy to miss.

share|improve this answer
3  
You are my hero @Peter. It feels like this would be a good thing to log in a future release/hotfix. – Chris Summers Jan 22 at 16:27
1  
I agree. There shouldn't ever be a case where the service stops but doesn't clearly log what the problem is. It's been noted and should be addressed in the future. – Peter Kjaer Jan 22 at 20:11

I had the same issue. I realized that the content service has a dependency on the directory service name... in the installService.ps1, I had to modify this line

$arguments += "++DependsOn=SDLWebDiscoveryServiceLive"

as I had changed the default name of the discovery services.

share|improve this answer

I have also faced the similar issue when I was installing my content delivery components for single-machine installation by following this doc. I was verifying my installations after installing discovery, deployer, session-enabled content service. My discovery service was not running, whenever I was starting the service it shuts down after few seconds without logging any error. I tried multiple time but it was showing same behavior. To fix the issue I followed these steps:

  • Restarted the installation server.
  • Started the discovery service again.
  • Registered the discovery service by running the command java -jar discovery-registration.jar update. Till that time I had not run this command.

Your issue may be different but can you check by following these steps if that work for you also..

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.