AtomGraph / LinkedDataHub

The low-code Knowledge Graph application platform. Apache license.
https://atomgraph.github.io/LinkedDataHub/
Apache License 2.0
485 stars 122 forks source link

Got Error 500 when tried to access admin page. #136

Closed FNakano closed 1 year ago

FNakano commented 1 year ago

Hi! I tried to follow the SKOS tutorial. It instructs to access ontology by clicking on configuration->admin menu item., got Error 500 (screenshot below)

Captura de tela de 2022-10-06 10-04-14

This time I ran LinkedDataHub with docker-compose up 2>&1 | tee 20221006-10:03.run.log so I have a 22MB log. I can send it to you, if needed. How can I fix the error and get to admin page?

namedgraph commented 1 year ago

I see there was a 429 error in the log which happens when nginx receives too many requests, in this case too many stylesheets are being loaded at the same time. Can you try simple hard refresh (Ctrl+F5)? :)

FNakano commented 1 year ago

Thanks for your reply. Unfortunately, CTRL-F5 resulted in the same page displayed... The request was sent (a lot of messages in the terminal). I can send you a screen capture video.

namedgraph commented 1 year ago

docker-compose logs --tail 500 linkeddatahub > ldh.log should generate a log file with enough info.

What if you tried increasing the rate value for static_files in the platform/nginx.conf.template config file?

    limit_req_zone $binary_remote_addr zone=static_files:10m rate=20r/s;
FNakano commented 1 year ago

I got the logs before changing limit_req_zone $binary_remote_addr zone=static_files:10m rate=6r/s; to limit_req_zone $binary_remote_addr zone=static_files:10m rate=20r/s; and after changing it. --------------- before ldh-before.log

----------------- after ldh-after.log

namedgraph commented 1 year ago

The error is the same.

The file already contained zone=static_files:10m rate=20r/s? Try increasing rate to 50 or so. Also try increasing burst in limit_req zone=static_files burst=20 nodelay.

Alternatively you can try commenting out limit_req_zone statements altogether and see if that helps.

FNakano commented 1 year ago

Hi! .... it was 6. I tried increasing it to 20. This time I increased it from 20 to 100, resulting in limit_req_zone $binary_remote_addr zone=static_files:10m rate=100r/s;. It solved the error 500. Captura de tela de 2022-10-07 08-51-36 I will keep trying LinkedDataHub. Thanks for your help.

namedgraph commented 1 year ago

@FNakano can you tell us something about your use case, if any?

FNakano commented 1 year ago

I apologize to take so long to answer... I'm interested to apply knowledge graphs/knowledge enrichment on sensor data and use it to suggestion/decision making... also some kind of (semi-)automatic document generation (using SKOS, Dublin Core, ...)