{"id":15971905,"url":"https://github.com/vkuznet/cmsexitcodes","last_synced_at":"2026-03-01T23:03:40.128Z","repository":{"id":40364515,"uuid":"221003928","full_name":"vkuznet/CMSExitCodes","owner":"vkuznet","description":"Simple server to provide information about CMS exit codes","archived":false,"fork":false,"pushed_at":"2024-08-29T14:37:25.000Z","size":70,"stargazers_count":0,"open_issues_count":4,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-11-21T23:03:20.414Z","etag":null,"topics":["cern","golang"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vkuznet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-11-11T14:52:17.000Z","updated_at":"2024-08-29T14:37:16.000Z","dependencies_parsed_at":"2024-06-20T02:48:57.034Z","dependency_job_id":"c0a1189a-bea5-4562-8ea6-c00bb6d13c75","html_url":"https://github.com/vkuznet/CMSExitCodes","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/vkuznet/CMSExitCodes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vkuznet%2FCMSExitCodes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vkuznet%2FCMSExitCodes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vkuznet%2FCMSExitCodes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vkuznet%2FCMSExitCodes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vkuznet","download_url":"https://codeload.github.com/vkuznet/CMSExitCodes/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vkuznet%2FCMSExitCodes/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29987656,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T22:42:38.399Z","status":"ssl_error","status_checked_at":"2026-03-01T22:41:51.863Z","response_time":124,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cern","golang"],"created_at":"2024-10-07T20:41:07.445Z","updated_at":"2026-03-01T23:03:40.108Z","avatar_url":"https://github.com/vkuznet.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"### CMS Exit Codes service\n\n[![Build Status](https://travis-ci.org/vkuznet/CMSExitCodes.svg?branch=master)](https://travis-ci.org/vkuznet/CMSExitCodes)\n[![Go Report Card](https://goreportcard.com/badge/github.com/vkuznet/CMSExitCodes)](https://goreportcard.com/report/github.com/vkuznet/CMSExitCodes)\n[![GoDoc](https://godoc.org/github.com/vkuznet/CMSExitCodes?status.svg)](https://godoc.org/github.com/vkuznet/CMSExitCodes)\n\nThis directory contains codebase for CMS Exit Codes service.\nThe service returns all known exit codes from different CMS sub-systems, e.g.\nWMAgent, JobExit, StageOut, etc. All codes are defined in `codes` area.\nThe service can either return full list or a specific code, e.g.\nhere is a client side:\n```\ncurl http://xxx.yyy.com/exitcodes/8021\ncurl -H \"Accept: application/json\" http://xxx.yyy.com/exitcodes/8021\n{\"JobExit\":{\"8021\":\"FileReadError (May be a site error)\"},\"WMAgent\":{\"8021\":\"FileReadError (May be a site error)\"}}\n```\n\n### Setup\n\nTo build it please install Go language on your system\nand series of dependencies:\n\n```\n# obtain necessary dependencies\ngo get github.com/sirupsen/logrus\ngo get github.com/shirou/gopsutil\ngo get github.com/divan/expvarmon\ngo get github.com/sirupsen/logrus\n\n# build server\ngo build\n```\n\nTo run the service use the following command:\n```\nCMSExitCodes -config server.json\n```\nwhere `server.json` has the following form:\n```\n{\n    \"exitCodes\":\"/path/exitCodes.txt\",\n    \"exitCodesUrl\": \"https://raw.githubusercontent.com/vkuznet/CMSExitCodes/master/codes\",\n    \"cacheExpire\": 600,\n    \"port\": 9201,\n    \"templates\": \"/path/templates\",\n    \"jscripts\": \"/path/js\",\n    \"styles\": \"/path/css\",\n    \"images\": \"/path/images\",\n    \"verbose\": 0\n}\n```\n\n### Exit Codes\nThe CMS exit codes are located in different areas:\n- [WMCore codes](https://github.com/dmwm/WMCore/blob/master/src/python/WMCore/WMExceptions.py)\n- [P\u0026R codes](https://docs.google.com/spreadsheets/d/1onZky6rW2z7NRvvQaLrBGaS8iFfYSg_EL71F1l3mTWE/edit#gid=0)\n- [CMS JobExit codes](https://twiki.cern.ch/twiki/bin/view/CMSPublic/JobExitCodes)\n- [Stanard codes](https://twiki.cern.ch/twiki/bin/view/CMSPublic/StandardExitCodes)\n\nWe obtain codes as following:\n- for WMCore codes we can run `scripts/wm_codes.py` script which will parse\n  relevant WMCore code and create new files with error codes\n- for all other we parse it manually since the codes are represented in google\n  docs, twiki formats\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvkuznet%2Fcmsexitcodes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvkuznet%2Fcmsexitcodes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvkuznet%2Fcmsexitcodes/lists"}