eeeeeesy 31 Posted August 18, 2023 Posted August 18, 2023 emby live tv epg refreshing schedule keeps getting automatically cancelled until i stop the emby server from the ui and run emby again. after that it takes about a week for it to re-occurr. maybe it has something to do with me killing emby with the taskkill command from a batch file? i do it that way because ive created a batch script to quickly kill all my servers at the same time in one click. then i have a second batch file that starts them all up again in one click. this probably does something to the emby database which is why i need to stop emby in th eemby ui to allow emeby to delete the shw files. but is there something you guys could do to prevent taskkill from breaking the shw database files to begin with?
Luke 42083 Posted August 18, 2023 Posted August 18, 2023 Quote maybe it has something to do with me killing emby with the taskkill command from a batch file? Hi, probably, yes? Can we see a specific example? How to Report a Problem Thanks.
eeeeeesy 31 Posted August 19, 2023 Author Posted August 19, 2023 (edited) 6 hours ago, Luke said: Hi, probably, yes? Can we see a specific example? How to Report a Problem Thanks. stop_all_servers.bat maybe i should add a line to delete the shm file after it kills everything Edited August 19, 2023 by eeeeeesy
eeeeeesy 31 Posted August 19, 2023 Author Posted August 19, 2023 i just now added these to the bottom DEL C:\Users\User0\AppData\Roaming\Emby-Server\programdata\data\library.db-shm DEL C:\Users\User0\AppData\Roaming\Emby-Server\programdata\data\library.db-wal ill see how this goes
eeeeeesy 31 Posted August 20, 2023 Author Posted August 20, 2023 1 hour ago, Luke said: Yea definitely not recommended. so is there a way to shutdown emby properly from the CMD prompt rather than killing it?
Luke 42083 Posted August 20, 2023 Posted August 20, 2023 25 minutes ago, eeeeeesy said: so is there a way to shutdown emby properly from the CMD prompt rather than killing it? Not directly, you’d have to send an http request to the Emby server API.
eeeeeesy 31 Posted August 21, 2023 Author Posted August 21, 2023 4 hours ago, Luke said: Not directly, you’d have to send an http request to the Emby server API. can you give me the curl command to do that from a batch file?
eeeeeesy 31 Posted August 21, 2023 Author Posted August 21, 2023 i assume some kind of post command but i dont know how to specify my api key nor the shutdown command found in the api
eeeeeesy 31 Posted August 21, 2023 Author Posted August 21, 2023 nevermind, i got the proper command now. ```curl -X POST http://localhost:8096/emby/System/Shutdown -H "X-Emby-Token: YOUR_AUTH_TOKEN"``` 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now