[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#75269: Crash of shepherd service, of GNU Artanis app, only happening
From: |
Josep Bigorra |
Subject: |
bug#75269: Crash of shepherd service, of GNU Artanis app, only happening in the server, not on my machine |
Date: |
Wed, 1 Jan 2025 22:47:55 +0100 |
Hey all , happy new year 🥳
I am very happy to announce that my Guile Scheme CI/CD project,
byggsteg (https://codeberg.org/jjba23/byggsteg) on SQLite + base64 +
Artanis is a reality, and it's got an amazing performance boost, all
also thanks to your contributions, help and hinting, and my hours 😄
Byggsteg works real nicely on all my computers.
I was having a bit of problems deploying the new version to my Guix
server (https://codeberg.org/jjba23/wolk-jjba), specially due to the
addition of guile-dbd and guile-dbi-sqlite but I have resolved this. I
also managed to now configure everything properly about hostnames and
redirections of HTTP to HTTPS.
Byggsteg almost works 100% on the server, but somehow the Shepherd
service crashes and restarts when i try to start a new job.
I was suspicious of threading capabilities of my server, but all works
as expected there, also checked from the Guix REPL, and hardware is
powerful and up to date enough. So now I suspect that my database
operations somehow are making things crash.
Could you please help me figure this out, I am at a loss cause there
is no useful error being displayed 😢
I attached the logs from my server, maybe they tell you more than they tell me.
The code where things go BOOM 💣 I think? is at
lib/byggsteg/job/pipeline.scm, also attached to this thread.
Find below also the Shepherd service definition I use (in byggsteg
readme as well)
Thank you in advance!
```
(define (wolk-jjba-byggsteg-service config)
(list (shepherd-service (documentation "Run byggsteg as a daemon")
(provision '(byggsteg))
(requirement '())
(start #~(make-forkexec-constructor
'("make" "production-server")
#:directory
"/var/log/byggsteg/job-clone/byggsteg/trunk"
#:environment-variables
(list
"GUILE_LOAD_PATH=/run/current-system/profile/share/guile/site/3.0"
"GUILE_DBD_PATH=/run/current-system/profile/lib"
"C_INCLUDE_PATH=/run/current-system/profile/include"
"GUILE_LOAD_COMPILED_PATH=/run/current-system/profile/lib/guile/3.0/site-ccache:/run/current-system/profile/share/guile/site/3.0"
"LIBRARY_PATH=/run/current-system/profile/lib"
"GIT_SSL_NO_VERIFY=1"
"LANG=nl_NL.UTF-8"
"GUILE_AUTO_COMPILE=0"
"PWD=/var/log/byggsteg/job-clone/byggsteg/trunk"
"PATH=/run/privileged/bin:/run/current-system/profile/bin:/run/current-system/profile/sbin")))
(stop #~(make-kill-destructor))
(auto-start? #t)
(respawn? #t))))
(define wolk-jjba-byggsteg-service-type
(service-type (name 'byggsteg)
(description "Run byggsteg as a daemon")
(extensions (list (service-extension
shepherd-root-service-type
wolk-jjba-byggsteg-service)))
(default-value '())))
```
byggsteg-crash-log.txt
Description: Text document
pipeline.scm
Description: Text Data
- bug#75269: Crash of shepherd service, of GNU Artanis app, only happening in the server, not on my machine,
Josep Bigorra <=