magnusmanske / petscan_rs

The repo for the PetScan tool
https://petscan.wmflabs.org/
GNU General Public License v3.0
45 stars 10 forks source link

The tool is completely broken #184

Closed danielyepezgarces closed 1 month ago

danielyepezgarces commented 1 month ago

Petscan is server down

imagen

bd808 commented 1 month ago

The instance console logs available through horizon.wikimedia.org showed that the OOMKiller had reaped a number of processes including the webservice. I restarted the instance via horizon and then performed the manual application startup process from https://wikitech.wikimedia.org/wiki/Nova_Resource:Petscan#Starting_the_service.

Listening on http://0.0.0.0:80
2024-10-25T00:21:47.828312Z  INFO get_or_create_psid_for_query: petscan_rs::app_state: return=Ok(29646297)
2024-10-25T00:21:52.097668Z  INFO get_or_create_psid_for_query: petscan_rs::app_state: return=Ok(29646298)
Error serving connection: hyper::Error(Parse(Uri))
Error serving connection: hyper::Error(Parse(Uri))
Error serving connection: hyper::Error(Parse(Uri))
Error serving connection: hyper::Error(Parse(Uri))
Error serving connection: hyper::Error(Parse(Uri))
Error serving connection: hyper::Error(Parse(Uri))
Error serving connection: hyper::Error(Parse(Uri))
Error serving connection: hyper::Error(Parse(Uri))
2024-10-25T00:23:19.105780Z  INFO get_or_create_psid_for_query: petscan_rs::app_state: return=Ok(29646299)
2024-10-25T00:23:32.956075Z  INFO get_or_create_psid_for_query: petscan_rs::app_state: return=Ok(29646300)
2024-10-25T00:23:38.652182Z  INFO get_or_create_psid_for_query: petscan_rs::app_state: return=Ok(29646301)
Error serving connection: hyper::Error(Parse(Uri))
Error serving connection: hyper::Error(Parse(Uri))
2024-10-25T00:23:43.142794Z  INFO get_or_create_psid_for_query: petscan_rs::app_state: return=Ok(29646302)
Error serving connection: hyper::Error(Parse(Uri))
Error serving connection: hyper::Error(Parse(Uri))

I do not know if these error messages are meaningful or actionable. Hopefully @magnusmanske will take a look at some point.

danielyepezgarces commented 1 month ago

The instance console logs available through horizon.wikimedia.org showed that the OOMKiller had reaped a number of processes including the webservice. I restarted the instance via horizon and then performed the manual application startup process from https://wikitech.wikimedia.org/wiki/Nova_Resource:Petscan#Starting_the_service.

Listening on http://0.0.0.0:80
2024-10-25T00:21:47.828312Z  INFO get_or_create_psid_for_query: petscan_rs::app_state: return=Ok(29646297)
2024-10-25T00:21:52.097668Z  INFO get_or_create_psid_for_query: petscan_rs::app_state: return=Ok(29646298)
Error serving connection: hyper::Error(Parse(Uri))
Error serving connection: hyper::Error(Parse(Uri))
Error serving connection: hyper::Error(Parse(Uri))
Error serving connection: hyper::Error(Parse(Uri))
Error serving connection: hyper::Error(Parse(Uri))
Error serving connection: hyper::Error(Parse(Uri))
Error serving connection: hyper::Error(Parse(Uri))
Error serving connection: hyper::Error(Parse(Uri))
2024-10-25T00:23:19.105780Z  INFO get_or_create_psid_for_query: petscan_rs::app_state: return=Ok(29646299)
2024-10-25T00:23:32.956075Z  INFO get_or_create_psid_for_query: petscan_rs::app_state: return=Ok(29646300)
2024-10-25T00:23:38.652182Z  INFO get_or_create_psid_for_query: petscan_rs::app_state: return=Ok(29646301)
Error serving connection: hyper::Error(Parse(Uri))
Error serving connection: hyper::Error(Parse(Uri))
2024-10-25T00:23:43.142794Z  INFO get_or_create_psid_for_query: petscan_rs::app_state: return=Ok(29646302)
Error serving connection: hyper::Error(Parse(Uri))
Error serving connection: hyper::Error(Parse(Uri))

I do not know if these error messages are meaningful or actionable. Hopefully @magnusmanske will take a look at some point.

Thanks for restart the tool :)

danielyepezgarces commented 1 month ago

The tool returns 504 if I make a query that has a SparkQL