Skip to content

Trying to get the erp-processing-context to run #3

@Jibbe23

Description

@Jibbe23

Hi,

we are still trying to get the erp-processing-context to run.
The Build description you're providing (https://github.com/eRP-FD/erp-processing-context/blob/master/doc/Building.md)is lacking some information, which made it hard for me to get to the point where it says: "There sadly currently is no good workaround for this issue, other than commenting the throw in ErpMain.cxx:411".
Here are some information that would have been useful:

  • the script scripts/reset_database.sh needs an PostgreSQL User called "erp_admin" which has to be a SUPERUSER, so the db could be initialized with your script
  • the running PostgreSQL needs a User called postgres with a password Postgres Admin Password, otherwise the erp-processing-context won't be able to connect to the db.

With these things set I am able to get the erp-processing-context to your mentioned problem in build description "There sadly currently is no good workaround for this issue, other than commenting the throw in ErpMain.cxx:411".

In ErpMain.cxx at line 411 there is no throw which I can comment, so I tried commenting the throw in Line 415.
Now I am getting this Error:

...
I0124 09:14:24.595480 107638 ErpMain.cxx:479] main/0/: running health check
W0124 09:14:24.595512 107650 HsmFactory.cxx:26] thread-0/1/: Initializing new HSM-Session.
I0124 09:14:24.595530 107638 Expect.hxx:49] main/0/: TslManager must be set. At /home/odil-ubuntu/erp-processing-context/src/erp/util/health/HealthCheck.cxx:45
session.serviceContext.getTslManager() != nullptr did not evaluate to true
I0124 09:14:24.595825 107638 ApplicationHealth.cxx:22] main/0/: updated health check status is DOWN, list of DOWN services: BNetzA.xml, hsm, IdpUpdater, postgres, SeedTimer, redis, TeeTokenUpdater, TSL.xml, C.FD.SIG-eRP
I0124 09:14:24.596021 107638 ApplicationHealth.cxx:22] main/0/: updated health check status is DOWN, list of DOWN services: BNetzA.xml, IdpUpdater, postgres, SeedTimer, redis, TeeTokenUpdater, TSL.xml, C.FD.SIG-eRP
I0124 09:14:24.596122 107638 ApplicationHealth.cxx:22] main/0/: updated health check status is DOWN, list of DOWN services: BNetzA.xml, postgres, SeedTimer, redis, TeeTokenUpdater, TSL.xml, C.FD.SIG-eRP
I0124 09:14:24.596235 107638 PostgresConnection.cxx:24] main/0/: connecting to database
I0124 09:14:24.611073 107638 PostgresConnection.cxx:41] main/0/: transaction start
I0124 09:14:24.611316 107638 PostgresConnection.cxx:54] main/0/: transaction started
I0124 09:14:24.625000 107638 PostgresBackend.cxx:278] main/0/: committing transaction
I0124 09:14:24.625295 107638 ApplicationHealth.cxx:22] main/0/: updated health check status is DOWN, list of DOWN services: BNetzA.xml, SeedTimer, redis, TeeTokenUpdater, TSL.xml, C.FD.SIG-eRP
I0124 09:14:24.625325 107638 ApplicationHealth.cxx:22] main/0/: updated health check status is DOWN, list of DOWN services: BNetzA.xml, redis, TeeTokenUpdater, TSL.xml, C.FD.SIG-eRP
I0124 09:14:24.625344 107638 ApplicationHealth.cxx:22] main/0/: updated health check status is DOWN, list of DOWN services: BNetzA.xml, redis, TSL.xml, C.FD.SIG-eRP
I0124 09:14:24.625352 107638 Expect.hxx:49] main/0/: TslManager must be set. at /home/odil-ubuntu/erp-processing-context/src/erp/util/health/HealthCheck.cxx:96
session.serviceContext.getTslManager() != nullptr did not evaluate to true
I0124 09:14:24.625466 107638 ApplicationHealth.cxx:22] main/0/: updated health check status is DOWN, list of DOWN services: BNetzA.xml, redis, TSL.xml, C.FD.SIG-eRP
I0124 09:14:24.625524 107638 ApplicationHealth.cxx:22] main/0/: updated health check status is DOWN, list of DOWN services: BNetzA.xml, redis, TSL.xml, C.FD.SIG-eRP
I0124 09:14:24.625778 107638 ApplicationHealth.cxx:22] main/0/: updated health check status is DOWN, list of DOWN services: BNetzA.xml, redis, TSL.xml, C.FD.SIG-eRP
I0124 09:14:24.626014 107638 ThreadPool.cxx:69] main/0/: shutting down all server threads
I0124 09:14:24.626080 107649 Worker.cxx:54] thread-0/1/: finished processing ioContext
I0124 09:14:24.626127 107638 ThreadPool.cxx:83] main/0/: finished joining server threads
I0124 09:14:24.626305 107638 ThreadPool.cxx:69] main/0/: shutting down all server threads
I0124 09:14:24.626330 107648 Worker.cxx:54] thread-0/4/: finished processing ioContext
I0124 09:14:24.626354 107638 ThreadPool.cxx:83] main/0/: finished joining server threads
received signal 0, stopping io_context
I0124 09:14:24.626447 107638 ThreadPool.cxx:69] main/0/: shutting down all server threads
I0124 09:14:24.626511 107650 Worker.cxx:54] thread-0/3/: finished processing ioContext
I0124 09:14:24.626530 107653 Worker.cxx:54] thread-3/2/: finished processing ioContext
I0124 09:14:24.626541 107651 Worker.cxx:54] thread-1/2/: finished processing ioContext
I0124 09:14:24.626555 107657 Worker.cxx:54] thread-7/2/: finished processing ioContext
I0124 09:14:24.626545 107654 Worker.cxx:54] thread-4/2/: finished processing ioContext
I0124 09:14:24.626533 107655 Worker.cxx:54] thread-5/2/: finished processing ioContext
I0124 09:14:24.626590 107652 Worker.cxx:54] thread-2/2/: finished processing ioContext
I0124 09:14:24.626597 107656 Worker.cxx:54] thread-6/2/: finished processing ioContext
I0124 09:14:24.626577 107659 Worker.cxx:54] thread-9/2/: finished processing ioContext
I0124 09:14:24.626608 107658 Worker.cxx:54] thread-8/2/: finished processing ioContext
I0124 09:14:24.626698 107638 ThreadPool.cxx:83] main/0/: finished joining server threads
I0124 09:14:24.626775 107647 TimerJobBase.cxx:117] CFdSigErpManager job/0/: leaving the CFdSigErpManager job thread
E0124 09:14:24.672473 107638 erp-main.cxx:94] Unexpected exception: Dynamic exception type: sw::redis::IoError
std::exception::what: Failed to connect to Redis: Connection refused
W0124 09:14:24.672541 107638 erp-main.cxx:97] exiting erp-processing-context with exit code 1

I build the erp-processing-context on Ubuntu 20.04.3 LTS.

I would really appreciate if you could help me get the erp-process-context running

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions