Menu

After deploy when I clicked on healthcheck i got 500 error and Could not read Maintenance File in logs

Help
2017-04-20
2017-04-20
  • Oleg Valerievich

    Good morning.
    First of all I explain my situation. I am a fresher in this field, recently i got a job.
    So first task is : I should check that our TSA( Time Stamping Authority) client implement RFC3161, so I suggest install local tsa server (i choose Signserver because it open source and was written on Java ) and i want wrap your implementation and write own code on your TSA sign-server module for api which give me tools adjust and config it for such purposes (send answer with valid certificate, not valid sertificate , not valid timestump, send response after long term and other ), maybe you know more easest way ?
    According to your installation guide I setup and config env.
    I deploy singserver on glassfish (http://pasteboard.co/6vca50Gh6.png)

    but after i run bin/signserver getstatus brief all i get message You must set APPSRV_HOME before running SignServer CLI
    Then i check url adress localhost:8080 and i find that (http://pasteboard.co/6vdlbjYIt.png) when i click on healthcheck link i get 500 error (http://pasteboard.co/EjZ6bHHA.png)
    from log i get this information glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=497;_ThreadName=Thread-2;|ERROR [SignServerHealthCheck] Could not read Maintenance File. Expected to find file at: /opt/glassfish3/glassfish/domains/domain1/config/maintenance.properties

     

    Last edit: Oleg Valerievich 2017-04-20
  • Markus Kilås

    Markus Kilås - 2017-05-04

    Hi Oleg,

    "You must set APPSRV_HOME before running SignServer CLI"

    Make sure you have pointed out your application server, i.e. like this:
    $ export APPSRV_HOME=opt/glassfish3/glassfish/

    "Could not read Maintenance File."

    It seems you have configured your conf/signserver_deploy.properties with the option of having a maintenance file, i.e. the healthcheck.maintenancefile property.
    Simply creating this file should resolve that issue:
    $ echo "DOWN_FOR_MAINTENANCE=false" > /opt/glassfish3/glassfish/domains/domain1/config/maintenance.properties

    Cheers,
    Markus
    PrimeKey Solutions

    Save time and money with an Enterprise support subscription. Please see www.primekey.com for more information.
    https://www.primekey.com/products/software/

     

Log in to post a comment.