talk@lists.collectionspace.org

WE HAVE SUNSET THIS LISTSERV - Join us at collectionspace@lyrasislists.org

View all threads

Re: [Talk] Connection to the Services API failed. Service layer may have failed to start or needs to be restarted.

YN
Yousuf Nejati
Mon, Nov 28, 2016 3:35 PM

Hey Darcy,

In my experience, when the service layer fails, or when I think it fails, I
do a couple of things:

First, I check the latest localhost_access log (located within the logs
directory of the Tomcat server) to view the response code of any service
layer calls (cspace-services/....). If the response code anything other
than 200, I know I have a problem.

Second, I use the shutdown and startup scripts in the Tomcat server's /bin
directory. Shutting down the server, waiting a few minutes, and then
starting it up again usually takes care of the issue. If not...

Third, I will rebuild and redeploy all of the layers, in the order it is
mentioned here:
https://wiki.collectionspace.org/display/DOC/Installing+on+Ubuntu+14.04.

Fourth, I do it all over again, opening up the localhost_access log and
watching the various API calls to both the application layer and services
layer.

In general, the localhost_access log is a great tool for troubleshooting
and understanding everything from simple to complex API calls.

Hope this helps,

Yousuf

On Sun, Nov 27, 2016 at 10:53 PM, talk-request@lists.collectionspace.org
wrote:

Send Talk mailing list submissions to
talk@lists.collectionspace.org

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.collectionspace.org/mailman/listinfo/talk_
lists.collectionspace.org

or, via email, send a message with subject or body 'help' to
talk-request@lists.collectionspace.org

You can reach the person managing the list at
talk-owner@lists.collectionspace.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Talk digest..."

Today's Topics:

1. Connection to the Services API failed. Service layer may have
   failed to start or needs to be restarted. (Darcy Christ)
2. Re: Connection to the Services API failed. Service layer may
   have failed to start or needs to be restarted. (Darcy Christ)
3. Re: Connection to the Services API failed. Service layer may
   have failed to start or needs to be restarted. (Darcy Christ)

Message: 1
Date: Mon, 28 Nov 2016 12:49:53 +0800
From: Darcy Christ darcy@1000camels.com
To: talk@lists.collectionspace.org
Subject: [Talk] Connection to the Services API failed. Service layer
may have failed to start or needs to be restarted.
Message-ID: 9D873FFD-080F-4974-9D21-6F20863B28CF@1000camels.com
Content-Type: text/plain; charset="us-ascii"

Hi,

It has been a hard struggle to build everything right. I am now getting to
the interface, but the service layer seems to be broken. When I try to log
in, I get the following:

Connection to the Services API failed. Service layer may have failed to
start or needs to be restarted.

What can I do to resolve or debug this?

Regards,
Darcy

Darcy W. Christ
Digital Generalist
@1000camels

To send me a secure message: http://bit.ly/SecureMsg

Hey Darcy, In my experience, when the service layer fails, or when I think it fails, I do a couple of things: First, I check the latest localhost_access log (located within the logs directory of the Tomcat server) to view the response code of any service layer calls (cspace-services/....). If the response code anything other than 200, I know I have a problem. Second, I use the shutdown and startup scripts in the Tomcat server's /bin directory. Shutting down the server, waiting a few minutes, and then starting it up again usually takes care of the issue. If not... Third, I will rebuild and redeploy all of the layers, in the order it is mentioned here: https://wiki.collectionspace.org/display/DOC/Installing+on+Ubuntu+14.04. Fourth, I do it all over again, opening up the localhost_access log and watching the various API calls to both the application layer and services layer. In general, the localhost_access log is a great tool for troubleshooting and understanding everything from simple to complex API calls. Hope this helps, Yousuf On Sun, Nov 27, 2016 at 10:53 PM, <talk-request@lists.collectionspace.org> wrote: > Send Talk mailing list submissions to > talk@lists.collectionspace.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.collectionspace.org/mailman/listinfo/talk_ > lists.collectionspace.org > > or, via email, send a message with subject or body 'help' to > talk-request@lists.collectionspace.org > > You can reach the person managing the list at > talk-owner@lists.collectionspace.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Talk digest..." > > > Today's Topics: > > 1. Connection to the Services API failed. Service layer may have > failed to start or needs to be restarted. (Darcy Christ) > 2. Re: Connection to the Services API failed. Service layer may > have failed to start or needs to be restarted. (Darcy Christ) > 3. Re: Connection to the Services API failed. Service layer may > have failed to start or needs to be restarted. (Darcy Christ) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 28 Nov 2016 12:49:53 +0800 > From: Darcy Christ <darcy@1000camels.com> > To: talk@lists.collectionspace.org > Subject: [Talk] Connection to the Services API failed. Service layer > may have failed to start or needs to be restarted. > Message-ID: <9D873FFD-080F-4974-9D21-6F20863B28CF@1000camels.com> > Content-Type: text/plain; charset="us-ascii" > > Hi, > > It has been a hard struggle to build everything right. I am now getting to > the interface, but the service layer seems to be broken. When I try to log > in, I get the following: > > Connection to the Services API failed. Service layer may have failed to > start or needs to be restarted. > > What can I do to resolve or debug this? > > > Regards, > Darcy > > > Darcy W. Christ > Digital Generalist > @1000camels > > To send me a secure message: http://bit.ly/SecureMsg > > >