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.

Unraid-API errors

Featured Replies

I am getting a constant flood of the following error in Unraid-api.  I am sure that I likely have something configured wrong, but am not sure what.  i do have one Debian VM running.

 

I am not sure if this is unrelated or not, but when I click on my account, upper right of server window, I am getting the My Server error JSON.parse:unexpected character at line 1 column 1 of the JSON data.

 

I am running 6.11.5 with licensed Plus key.

 

But according to the My Servers home page, it is all working and changes to my thumbdrive are immediately backed up.

 

12/31/2022 2:37:08 PM

Cannot read properties of undefined (reading 'children')

12/31/2022 2:37:28 PM

Get VM Details for ip: 192.168.1.100 Failed

12/31/2022 2:37:28 PM

Cannot read properties of undefined (reading 'children')

12/31/2022 2:37:48 PM

Get VM Details for ip: 192.168.1.100 Failed

12/31/2022 2:37:48 PM

Cannot read properties of undefined (reading 'children')

12/31/2022 2:37:55 PM

npm ERR! path /app

12/31/2022 2:37:55 PM

npm ERR! command failed

12/31/2022 2:37:55 PM

npm ERR! signal SIGTERM

12/31/2022 2:37:55 PM

npm ERR! command sh -c cross-env NUXT_HOST=0.0.0.0 NODE_ENV=production node server/index.js

12/31/2022 2:37:55 PM

12/31/2022 2:37:55 PM

npm ERR! A complete log of this run can be found in:

12/31/2022 2:37:55 PM

npm ERR! /root/.npm/_logs/2022-12-31T10_03_43_755Z-debug-0.log

tower-diagnostics-20221231-1456.zip

Edited by mattw

On 12/31/2022 at 1:40 PM, mattw said:

I am not sure if this is unrelated or not, but when I click on my account, upper right of server window, I am getting the My Server error JSON.parse:unexpected character at line 1 column 1 of the JSON data.

 

Open a web terminal and run:

unraid-api report -vv

(don't post the output of that command with -vv).  Look in the ALLOWED_ORIGINS area of the report, it will show the exact urls that are allowed to be used. Are you using one of those urls or something else?

 

If you are using one of the listed urls to access the server, post the output of:

unraid-api report -v

note there is a single -v there.

 

On 12/31/2022 at 1:40 PM, mattw said:

12/31/2022 2:37:08 PM

Cannot read properties of undefined (reading 'children')

12/31/2022 2:37:28 PM

Get VM Details for ip: 192.168.1.100 Failed

12/31/2022 2:37:28 PM

Cannot read properties of undefined (reading 'children')

12/31/2022 2:37:48 PM

Get VM Details for ip: 192.168.1.100 Failed

12/31/2022 2:37:48 PM

Cannot read properties of undefined (reading 'children')

12/31/2022 2:37:55 PM

npm ERR! path /app

12/31/2022 2:37:55 PM

npm ERR! command failed

12/31/2022 2:37:55 PM

npm ERR! signal SIGTERM

12/31/2022 2:37:55 PM

npm ERR! command sh -c cross-env NUXT_HOST=0.0.0.0 NODE_ENV=production node server/index.js

12/31/2022 2:37:55 PM

12/31/2022 2:37:55 PM

npm ERR! A complete log of this run can be found in:

12/31/2022 2:37:55 PM

npm ERR! /root/.npm/_logs/2022-12-31T10_03_43_755Z-debug-0.log

 

Where did you get this output? 

  • Author

Here is the report... I do connect via http://internal ip address and http://tower.home.  The latter is not in the list.  The section of logs you were asking for the source for are from the unraid-api logs.

 

 

<-----UNRAID-API-REPORT----->
SERVER_NAME: Tower
ENVIRONMENT: production
UNRAID_VERSION: 6.11.5
UNRAID_API_VERSION: 2.54.0
UNRAID_API_STATUS: running
API_KEY: valid
MY_SERVERS: authenticated
MY_SERVERS_USERNAME: mattw
CLOUD:
    STATUS: [ok]
    IP: [52.40.54.163]
RELAY:
    STATUS: [connected]  
MINI-GRAPH:
    STATUS: [connected]
SERVERS:
    ONLINE: Tower[owner="mattw"]
    OFFLINE:
ALLOWED_ORIGINS: http://localhost, http://IPV4ADDRESS, https://IPV4ADDRESS, http://tower, https://tower, http://tower.local, https://tower.local
NCHAN_MODE: nchan
</----UNRAID-API-REPORT----->

9 minutes ago, mattw said:

I do connect via http://internal ip address and http://tower.home.  The latter is not in the list.

 

If you want to use http://tower.home instead of http://tower.local, go to Settings -> Management Access and change the "Local TLD" from "local" to "home" (this assumes you have DNS that can resolve tower.home to the correct IP address.) All of the tower.local entries in ALLOWED_ORIGINS will change to tower.home and My Servers will work with that url.

 

Once you make this change and are always accessing the system via a URL in the ALLOWED_ORIGINS, does that solve the problems you are seeing?

  • Author

That fixed the My Servers issue in the upper right.  But, I still have the following in my unraid-api log.

01/03/2023 9:37:54 AM

Cannot read properties of undefined (reading 'children')

01/03/2023 9:38:15 AM

Get VM Details for ip: 192.168.1.100 Failed

01/03/2023 9:38:15 AM

Cannot read properties of undefined (reading 'children')

01/03/2023 9:38:34 AM

Get VM Details for ip: 192.168.1.100 Failed

01/03/2023 9:38:34 AM

Cannot read properties of undefined (reading 'children')

OK that part solved :) 

 

Are VMs enabled on this system? Actually, please upload your diagnostics (from Tools -> Diagnostics)

 

Would you know you were having errors if you weren't looking at that log file? It may be that other systems are getting this and not realizing it.

 

Please show a screenshot of your server tile on https://forums.unraid.net/my-servers/

 

Are you using VMs? Any with GPU passthru?

 

Would you know you were having errors if you weren't looking at that log file?

  • Author

I am using one Debian VM no GPU to pass thru, only the A10 APU, not sure if I would know or not.  I found it looking for the server connection error as I figured that the API was used for that as well as my home assistant server to see this server.

Edited by mattw

  • Author

You asked if it was causing any problems... just realized it is.  In Home Assistant my switches for various dockers get out of sync and are sometimes unavailable and restarting unraid-api fixes the states..

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.