Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

What is "unraid-api" process?

Featured Replies

I notice my unraid server continuously have about 50% CPU load (not sure if it's common) and "unraid-api" is always the top one. Any guidance on what this for and how I can lower the CPU load.

 

See attached screenshot.

image.thumb.png.3264d1f5771fdf0a51c5508fcb929184.png

That's our API that's installed when you install the my servers plugin.
I'd expect it to be using a lot less CPU usage though.

Could you confirm you're on the latest version of the plugin and can I get a copy of your diagnostics.zip ?

  • Author

Thanks for replying. The plugin seems to be up-to-date and attached diagnostics.zip. 

 

image.thumb.png.60a4af9f76daea44d0dee5ef79f1429e.png

 

Thank you.

In a terminal on that server can you run "unraid-api restart" and just see if that makes any difference.  

This isn't related to your issue, but I'd recommend going to Settings -> Scheduler -> Mover Settings and disabling "Mover logging". That is only meant to be on if you are troubleshooting issues with mover.

  • Author
49 minutes ago, ljm42 said:

This isn't related to your issue, but I'd recommend going to Settings -> Scheduler -> Mover Settings and disabling "Mover logging". That is only meant to be on if you are troubleshooting issues with mover.

Interesting. I just checked my settings and "Mover logging" is already disabled.

 

1 hour ago, OmgImAlexis said:

Thank you.

In a terminal on that server can you run "unraid-api restart" and just see if that makes any difference.  

Restarting seems to work for now. I need keep monitoring to see if it goes up again. Thank you!

Edited by icodesign

  • 1 month later...

Hi just had the same issue with Unraid API. The load was at 25 % (~12% by Unraid API). 

After the restart command the load is just going down again. 

 

image.png.2322a9b80ae3a2f493ff0f193f5edffe.png

 

Any knowledge about this? 

 

Regards :)

26 minutes ago, der.max said:

Hi just had the same issue with Unraid API. The load was at 25 % (~12% by Unraid API). 

After the restart command the load is just going down again. 

 

image.png.2322a9b80ae3a2f493ff0f193f5edffe.png

 

Any knowledge about this? 

 

Regards :)


Could I please get a copy of your diagnostics.zip?

 

That does look high compared to what I’d expect. 

2 minutes ago, OmgImAlexis said:


Could I please get a copy of your diagnostics.zip?

 

That does look high compared to what I’d expect. 

 

I will have a look in parallel. If the load is again high I will not restart the API for some test.

 

diagnostics-20210922-1108.zip

Just had a look into Grafana. It looks like that is a slow process and some process is just need more resource over the time. You can see the increase here:

image.thumb.png.1d92672bc1456b201d1489e598eeac74.png

 

Edited by der.max

  • Author
9 minutes ago, der.max said:

Just had a look into Grafana. It looks like that is a slow process and some process is just need more resource over the time. You can see the increase here:

image.thumb.png.1d92672bc1456b201d1489e598eeac74.png

 

Guess we should add a cron job to restart the process? LOL...

Just now, icodesign said:

Guess we should add a cron job to restart the process? LOL...

That was also my idea. :D But this is just a workaround :D 

I'm not sure if this is related to the OP issue, but I had an issue with "My Servers" constantly backing up the flash every minute.

Flash backup initialization solved that.

I kept watching the server, found UNRAID-API taking up CPU resources, and this was in the log.

I stop the flash backup and started it again on 14:26 through the GUI, and so far all is OK.

 

Sep 27 11:03:57 Juno flash_backup: adding task: /usr/local/emhttp/plugins/dynamix.my.servers/scripts/UpdateFlashBackup.php update
Sep 27 11:04:57 Juno flash_backup: adding task: /usr/local/emhttp/plugins/dynamix.my.servers/scripts/UpdateFlashBackup.php update
Sep 27 11:05:58 Juno flash_backup: adding task: /usr/local/emhttp/plugins/dynamix.my.servers/scripts/UpdateFlashBackup.php update
Sep 27 11:18:45 Juno dhcpcd[2116]: br0: failed to renew DHCP, rebinding
Sep 27 12:51:29 Juno emhttpd: cmd: /usr/local/emhttp/plugins/dynamix.plugin.manager/scripts/plugin update unassigned.devices.plg
Sep 27 12:51:29 Juno root: plugin: running: anonymous
Sep 27 12:51:29 Juno root: plugin: creating: /boot/config/plugins/unassigned.devices/unassigned.devices-2021.09.26.tgz - downloading from URL https://github.com/dlandon/unassigned.devices/raw/master/unassigned.devices-2021.09.26.tgz
Sep 27 12:51:30 Juno root: plugin: checking: /boot/config/plugins/unassigned.devices/unassigned.devices-2021.09.26.tgz - MD5
Sep 27 12:51:30 Juno root: plugin: creating: /tmp/start_unassigned_devices - from INLINE content
Sep 27 12:51:30 Juno root: plugin: setting: /tmp/start_unassigned_devices - mode to 0770
Sep 27 12:51:30 Juno root: plugin: skipping: /boot/config/plugins/unassigned.devices/unassigned.devices.cfg already exists
Sep 27 12:51:30 Juno root: plugin: skipping: /boot/config/plugins/unassigned.devices/samba_mount.cfg already exists
Sep 27 12:51:30 Juno root: plugin: skipping: /boot/config/plugins/unassigned.devices/iso_mount.cfg already exists
Sep 27 12:51:30 Juno root: plugin: skipping: /tmp/unassigned.devices/smb-settings.conf already exists
Sep 27 12:51:30 Juno root: plugin: skipping: /tmp/unassigned.devices/config/smb-extra.conf already exists
Sep 27 12:51:30 Juno root: plugin: skipping: /tmp/unassigned.devices/add-smb-extra already exists
Sep 27 12:51:30 Juno root: plugin: setting: /tmp/unassigned.devices/add-smb-extra - mode to 0770
Sep 27 12:51:30 Juno root: plugin: skipping: /tmp/unassigned.devices/remove-smb-extra already exists
Sep 27 12:51:30 Juno root: plugin: setting: /tmp/unassigned.devices/remove-smb-extra - mode to 0770
Sep 27 12:51:30 Juno root: plugin: running: anonymous
Sep 27 14:22:34 Juno unraid-api[10980]: ⚠️ Caught exception: WebSocket is not open: readyState 0 (CONNECTING)
Sep 27 14:22:34 Juno unraid-api[10980]: ⚠️ UNRAID API crashed with exit code 1
Sep 27 14:26:36 Juno flash_backup: adding task: /usr/local/emhttp/plugins/dynamix.my.servers/scripts/UpdateFlashBackup.php update

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.