• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support General Questions Correct way to use Jellyfin API to restart the server

     
    • 0 Vote(s) - 0 Average

    Correct way to use Jellyfin API to restart the server

    Jellyfin API - restart
    R4RaiN
    Offline

    Junior Member

    Posts: 11
    Threads: 5
    Joined: 2024 Feb
    Reputation: 0
    Country:Australia
    #1
    2024-02-29, 09:44 AM (This post was last modified: 2024-02-29, 09:45 AM by R4RaiN.)
    What's the correct way to make an api request to restart the server ?

    what I did :
    curl -i -X POST -H "Authorization: CustomAuthentication 404ba4ecac5e46e4aa38fb2bac9656c1" http://ip:8096/system/restart

    tried

    curl -i -X POST -H "Authorization: CustomAuthentication 404ba4ecac5e46e4aa38fb2bac9656c1" http://ip:8096/api/system/restart

    responses:
    HTTP/1.1 302 Found
    Content-Length: 0
    Date: Thu, 29 Feb 2024 09:38:52 GMT
    Server: Kestrel
    Location: /jellyfin/web/index.html

    when I used 

    curl -i -X POST -H "Authorization: CustomAuthentication 404ba4ecac5e46e4aa38fb2bac9656c1" http://ip:8096/jellyfin/api/system/restart

    Response:
    HTTP/1.1 404 Not Found
    Content-Length: 0
    Date: Thu, 29 Feb 2024 09:42:46 GMT
    Server: Kestrel
    X-Response-Time-ms: 0

    curl -i -X POST -H "Authorization: 404ba4ecac5e46e4aa38fb2bac9656c1" http://ip:8096/api/system/restart HTTP/1.1 302 Found Content-Length: 0 Date: Thu, 29 Feb 2024 09:42:29 GMT Server: Kestrel Location: /jellyfin/web/index.html
    niels
    Offline

    Core Team

    Posts: 272
    Threads: 4
    Joined: 2023 Jun
    Reputation: 15
    Country:Netherlands
    #2
    2024-02-29, 10:22 AM
    You're sending a wrong authorization header. See the documentation at https://gist.github.com/nielsvanvelzen/e...1ffaf12a6f on how it works.
    Also, keep in mind that the restart functionality in 10.8 does not work on most platforms. This will improve in 10.9 where all platforms support it.
    R4RaiN
    Offline

    Junior Member

    Posts: 11
    Threads: 5
    Joined: 2024 Feb
    Reputation: 0
    Country:Australia
    #3
    2024-02-29, 08:48 PM
    Thanks , Received a 204 response but doesn't restarted as you stated. Hope It'll get fixed soon
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode