Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Fix MID server issue

Mahesh23
Mega Sage

Hello community,
Can anyone help me to fix the MID server issue ? MID server is failed to upgrade during the security patches and logs are as follows

INFO   | jvm 1    | 2022/04/16 15:59:26.331 | Apr 16, 2022 3:59:26 PM com.snc.dist.mid_upgrade.UpgradeMain wipeDirs
INFO   | jvm 1    | 2022/04/16 15:59:26.331 | INFO: ** Debug Stale files ** Files from Matching pattern = 
INFO   | jvm 1    | 2022/04/16 15:59:26.331 | Apr 16, 2022 3:59:26 PM com.snc.dist.mid_upgrade.UpgradeMain migrateToTarget
INFO   | jvm 1    | 2022/04/16 15:59:26.331 | INFO: Copying files to MID server installation path.
INFO   | jvm 1    | 2022/04/16 15:59:26.531 | Apr 16, 2022 3:59:26 PM com.snc.dist.mid_upgrade.UpgradeMain correctPermissions
INFO   | jvm 1    | 2022/04/16 15:59:26.531 | INFO: Correcting file permissions for directory: /opt/servicenow/mid/agent
INFO   | jvm 1    | 2022/04/16 15:59:26.531 | Apr 16, 2022 3:59:26 PM com.snc.dist.mid_upgrade.UpgradeMain migrateToTarget
INFO   | jvm 1    | 2022/04/16 15:59:26.532 | INFO: Finished copying files.
INFO   | jvm 1    | 2022/04/16 15:59:26.532 | Apr 16, 2022 3:59:26 PM com.snc.dist.mid_upgrade.UpgradeMain executeCommand
INFO   | jvm 1    | 2022/04/16 15:59:26.532 | INFO: Executing command `"/opt/servicenow/mid/agent/start.sh"`. Working dir: `/opt/servicenow/mid/agent`. Current user: `midserver`.
INFO   | jvm 1    | 2022/04/16 15:59:26.832 | Apr 16, 2022 3:59:26 PM com.snc.dist.mid_upgrade.UpgradeMain executeCommand
INFO   | jvm 1    | 2022/04/16 15:59:26.832 | INFO: Execution result: ExitCode=1
INFO   | jvm 1    | 2022/04/16 15:59:26.832 | Output=Starting ServiceNow_MID_srv with systemd...
INFO   | jvm 1    | 2022/04/16 15:59:26.832 | Failed to start midsrv.service: Interactive authentication required.
INFO   | jvm 1    | 2022/04/16 15:59:26.832 | See system logs and 'systemctl status midsrv.service' for details.
INFO   | jvm 1    | 2022/04/16 15:59:26.832 | Failed to start service midsrv

3 REPLIES 3

suvro
Mega Sage

Try to start the MID Server Service manually 

Allen Andreas
Tera Patron

Hello,

Please refer to this ServiceNow support article: https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0596459

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

DeniseAnderson
Kilo Contributor

Thanks for the article link, it is useful for me 🙂

Try manually launching the MID Server Service. I discovered a website after viewing yours at https://www.topwritersreview.com/reviews/domyessay/. It assists me in locating the top website for essay writing services for my college project. I can read evaluations of the websites in this, which is very useful in helping me select the top website.