unikraft / catalog

Unikraft Applications & Examples Catalog
23 stars 29 forks source link

`grafana/10.2`: Error starting instance #86

Open razvand opened 3 months ago

razvand commented 3 months ago

Grafana (PR #85) gives out an error when started. Use the following commands to replicate:

port=3000
memory=2048M
branch="razvand/library/grafana"
path="library/grafana/10.2"
rm -fr catalog
rm start-buildkit.sh
wget https://raw.githubusercontent.com/unikraft/catalog-for-maintainers/main/utils/start-buildkit.sh
source start-buildkit.sh
git clone https://github.com/unikraft/catalog
cd catalog
git remote add unikraft-upb https://github.com/unikraft-upb/catalog
git fetch unikraft-upb
git checkout -b "$branch" unikraft-upb/"$branch"
cd "$path"
sed -i -e "s/# CONFIG_LIBSYSCALL_SHIM_STRACE: 'y'/CONFIG_LIBSYSCALL_SHIM_STRACE: 'y'/" Kraftfile
kraft build --no-cache --no-update --plat qemu --arch x86_64
kraft rm --all ; kraft run --rm --log-type basic --log-level debug -M "$memory" -p "$port":"$port" .

The output message is:

futex(va:0x10181fce48, FUTEX_WAIT|FUTEX_PRIVATE_FLAG, 0x0, timespec:NULL) = OK
rt_sigprocmask(0x2, 0xc003905f98, ...) = 0x0
futex(va:0xc006916148, FUTEX_WAKE|FUTEX_PRIVATE_FLAG, 0x1) = OK
futex(va:0xc006916148, FUTEX_WAIT|FUTEX_PRIVATE_FLAG, 0x0, timespec:NULL) = OK
clock_gettime(CLOCK_MONOTONIC, <out>timespec:{tv_sec=104, tv_nsec=555764984}) = OK
clock_gettime(CLOCK_MONOTONIC, <out>timespec:{tv_sec=104, tv_nsec=557129385}) = OK
futex(va:0x10181fce48, FUTEX_WAKE|FUTEX_PRIVATE_FLAG, 0x1) = OK
nanosleep(0x1006bbe990, 0x0, ...) = 0x0
clock_gettime(CLOCK_MONOTONIC, <out>timespec:{tv_sec=104, tv_nsec=560200439}) = OK
clock_gettime(CLOCK_MONOTONIC, <out>timespec:{tv_sec=104, tv_nsec=561563987}) = OK
futex(va:0x10181fce48, FUTEX_WAIT|FUTEX_PRIVATE_FLAG, 0x0, timespec:NULL) = OK
rt_sigprocmask(0x2, 0xc003905f98, ...) = 0x0
futex(va:0xc006916148, FUTEX_WAKE|FUTEX_PRIVATE_FLAG, 0x1) = OK
epoll_pwait(0x3, 0x1006bbe398, ...) = 0x0
futex(va:0xc006916148, FUTEX_WAIT|FUTEX_PRIVATE_FLAG, 0x0, timespec:NULL) = OK
clock_gettime(CLOCK_MONOTONIC, <out>timespec:{tv_sec=104, tv_nsec=568010807}) = OK
clock_gettime(CLOCK_MONOTONIC, <out>timespec:{tv_sec=104, tv_nsec=569370366}) = OK
clock_gettime(CLOCK_MONOTONIC, <out>timespec:{tv_sec=104, tv_nsec=570737329}) = OK
futex(va:0x10181fce48, FUTEX_WAKE|FUTEX_PRIVATE_FLAG, 0x1) = OK
futex(va:0x10181fce48, FUTEX_WAIT|FUTEX_PRIVATE_FLAG, 0x0, timespec:NULL) = OK
futex(va:0xc006916148, FUTEX_WAKE|FUTEX_PRIVATE_FLAG, 0x1) = OK
nanosleep(0x1006bbe990, 0x0, ...) = 0x0
clock_gettime(CLOCK_MONOTONIC, <out>timespec:{tv_sec=104, tv_nsec=576164060}) = OK
clock_gettime(CLOCK_MONOTONIC, <out>timespec:{tv_sec=104, tv_nsec=577519606}) = OK
futex(va:0xc006916148, FUTEX_WAIT|FUTEX_PRIVATE_FLAG, 0x0, timespec:NULL) = OK
clock_gettime(CLOCK_MONOTONIC, <out>timespec:{tv_sec=104, tv_nsec=580172071}) = OK
clock_gettime(CLOCK_MONOTONIC, <out>timespec:{tv_sec=104, tv_nsec=581532482}) = OK
clock_gettime(CLOCK_MONOTONIC, <out>timespec:{tv_sec=104, tv_nsec=582898140}) = OK
clock_gettime(CLOCK_MONOTONIC, <out>timespec:{tv_sec=104, tv_nsec=584261732}) = OK
clock_gettime(CLOCK_MONOTONIC, <out>timespec:{tv_sec=104, tv_nsec=585620385}) = OK
clock_gettime(CLOCK_MONOTONIC, <out>timespec:{tv_sec=104, tv_nsec=586987592}) = OK
clock_gettime(CLOCK_MONOTONIC, <out>timespec:{tv_sec=104, tv_nsec=588341612}) = OK
clock_gettime(CLOCK_MONOTONIC, <out>timespec:{tv_sec=104, tv_nsec=589689466}) = OK
clock_gettime(CLOCK_MONOTONIC, <out>timespec:{tv_sec=104, tv_nsec=591056053}) = OK
epoll_ctl(0x3, 0x2, ...) = 0x0
close(fd:8) = OK
clock_gettime(CLOCK_MONOTONIC, <out>timespec:{tv_sec=104, tv_nsec=593234015}) = OK
clock_gettime(CLOCK_MONOTONIC, <out>timespec:{tv_sec=104, tv_nsec=594603378}) = OK
clock_gettime(CLOCK_MONOTONIC, <out>timespec:{tv_sec=104, tv_nsec=595971287}) = OK
clock_gettime(CLOCK_MONOTONIC, <out>timespec:{tv_sec=104, tv_nsec=597322176}) = OK
clock_gettime(CLOCK_REALTIME, <out>timespec:{tv_sec=1709938480, tv_nsec=498690794}) = OK
clock_gettime(CLOCK_MONOTONIC, <out>timespec:{tv_sec=104, tv_nsec=600140691}) = OK
clock_gettime(CLOCK_REALTIME, <out>timespec:{tv_sec=1709938480, tv_nsec=501506544}) = OK
clock_gettime(CLOCK_MONOTONIC, <out>timespec:{tv_sec=104, tv_nsec=602962851}) = OK
clock_gettime(CLOCK_MONOTONIC, <out>timespec:{tv_sec=104, tv_nsec=604318882}) = OK
close(fd:6) = OK
Error: ✗ *migration.MigrationService run error: migration failed: executing migration: migrate org 1: write silence file for org 1: rename /usr/share/grafana/data/alerting/1/silences.4041c266111bed5e /usr/share/grafana/data/alerting/1/silences: function not implemented
write(fd:1, "\x1B[31mError\x1B[0m: \x1B[31m\xE2\x9C\x97"..., 290) = 290

The output message without logging is:

INFO [03-08|22:39:12] Query Service initialization             logger=query_data
INFO [03-08|22:39:12] Live Push Gateway initialization         logger=live.push_http
en1: Set IPv4 address 10.0.2.15 mask 255.255.255.0 gw 10.0.2.2
INFO [03-08|22:39:14] registering usage stat providers         logger=infra.usagestats.collector usageStatsProvidersLen=2
INFO [03-08|22:39:14] starting to provision alerting           logger=provisioning.alerting
INFO [03-08|22:39:14] finished to provision alerting           logger=provisioning.alerting
INFO [03-08|22:39:14] HTTP Server Listen                       logger=http.server address=0.0.0.0:3000 protocol=http subUrl= socket=
INFO [03-08|22:39:14] Starting                                 logger=ngalert.migration
INFO [03-08|22:39:14] Starting legacy migration                logger=ngalert.migration
INFO [03-08|22:39:14] Migrating alerts for organisation        logger=ngalert.migration orgID=1
INFO [03-08|22:39:14] Alerts found to migrate                  logger=ngalert.migration orgID=1 alerts=0
WARN [03-08|22:39:14] No available receivers                   logger=ngalert.migration orgID=1
ERROR[03-08|22:39:15] Stopped background service               logger=server service=*migration.MigrationService reason="migration failed: executing migration: migrate org 1: write silence file for org 1: rename /usr/share/grafana/data/alerting/1/silences.7e30f4209aacd7b8 /usr/share/grafana/data/alerting/1/silences: function not implemented"
Error: ✗ *migration.MigrationService run error: migration failed: executing migration: migrate org 1: write silence file for org 1: rename /usr/share/grafana/data/alerting/1/silences.7e30f4209aacd7b8 /usr/share/grafana/data/alerting/1/silences: function not implemented