2018-08-05T08:05:21.445Z - error: TypeError: Cannot read property ‘0’ of undefined
at /volumio/app/plugins/music_service/upnp_browser/index.js:83:67
at /volumio/app/plugins/music_service/upnp_browser/index.js:594:21
at Parser. (/volumio/node_modules/xml2js/lib/xml2js.js:489:18)
at emitOne (events.js:96:13)
at Parser.emit (events.js:188:7)
at Object.onclosetag (/volumio/node_modules/xml2js/lib/xml2js.js:447:26)
at emit (/volumio/node_modules/sax/lib/sax.js:640:35)
at emitNode (/volumio/node_modules/sax/lib/sax.js:645:5)
at closeTag (/volumio/node_modules/sax/lib/sax.js:905:7)
at Object.write (/volumio/node_modules/sax/lib/sax.js:1452:13)
at Parser.exports.Parser.Parser.parseString (/volumio/node_modules/xml2js/lib/xml2js.js:508:31)
at Parser.parseString (/volumio/node_modules/xml2js/lib/xml2js.js:7:59)
at /volumio/app/plugins/music_service/upnp_browser/index.js:593:24
at Request.handleRequestResponse [as _callback] (/volumio/node_modules/unirest/index.js:463:26)
at Request.self.callback (/volumio/node_modules/unirest/node_modules/request/request.js:187:22)
at emitTwo (events.js:106:13)
Thank you for your feedback. I apologize for not sending detailed information.
Actually I’m using an Allo Boss Player bought from Volumio shop in April.
Volumio should be updated to latest version but I will provide detailed information of the version when I’m back at home.
so I found that my Volumio was still 2.368, not the latest version.
I have updated my Volumio. Now I have:
version 2.444 released Jul 26 16:22:33 CEST 2018
Unix uname -a: Linux volumio 4.14.56-v7+ #1128 SMP Wed Jul 18 12:25:58 BST 2018 armv7l GNU/Linux
System is Raspberry Pi 3 + Allo BOSS (Allo The BOSS Player bought on Volumio Shop in April)
2018-08-06T19:45:27.588Z - error: message=Cannot read property ‘0’ of undefined, stack=TypeError: Cannot read property ‘0’ of undefined
at /volumio/app/plugins/music_service/upnp_browser/index.js:82:67
at /volumio/app/plugins/music_service/upnp_browser/index.js:595:21
at Parser. (/volumio/node_modules/xml2js/lib/parser.js:303:18)
at emitOne (events.js:116:13)
at Parser.emit (events.js:211:7)
at SAXParser.onclosetag (/volumio/node_modules/xml2js/lib/parser.js:261:26)
at emit (/volumio/node_modules/sax/lib/sax.js:624:35)
at emitNode (/volumio/node_modules/sax/lib/sax.js:629:5)
at closeTag (/volumio/node_modules/sax/lib/sax.js:889:7)
at SAXParser.write (/volumio/node_modules/sax/lib/sax.js:1436:13)
at Parser.exports.Parser.Parser.parseString (/volumio/node_modules/xml2js/lib/parser.js:322:31)
at Parser.parseString (/volumio/node_modules/xml2js/lib/parser.js:5:59)
at /volumio/app/plugins/music_service/upnp_browser/index.js:594:24
at Request.handleRequestResponse [as _callback] (/volumio/node_modules/unirest/index.js:463:26)
at Request.self.callback (/volumio/node_modules/unirest/node_modules/request/request.js:187:22)
at emitTwo (events.js:126:13)
The line 82 of /volumio/app/plugins/music_service/upnp_browser/index.js is actually the following
var services = data.root.device[0].serviceList[0].service;
and position 67 is related to the 0 of serviceList[0]
The whole file /volumio/app/plugins/music_service/upnp_browser/index.js can be seen here: https://pastebin.com/DvrvP2Ph
sorry, but please send us the id from the complete log file from volumio.local/dev (your-ip/dev).
The Id will be returned to you when you request the log on that page.
Not exactly sure what is causing the errors, but it might be related to your NAS device settings.
Connecting to your NAS currently does not work because its SMB version requires you to add an extra option.
Go to the My Music menu and edit your CIFS setting (press “Advanced Options”) and add “vers=1.0” (without the quotes).
After saving the settings it should re-connect and succeed this time.
I have been working in the last days to have my Spotify plugin working and I did not realize that my music library has disappeared.
However the mount does not seem to have a problem. I have put vers=1.0 and I can see that the NAS drive is mounted correcly.
If I connect via ssh and I go to /mnt/NAS/music I can browse all my directories in the disk and it seems that everything is fine.
If I update the NAS definition in volumio web page I got the following error:
I have tried to execute it manually from command line
/usr/bin/mpc update
and I got the same error.
I wanted to update the log so I went to volumio.local/dev click send and got a message that the log was sent successfully to this address: logs.volumio.org/volumio/HOBsQaA.html
but then I go to the address and I got back the answer “No page found”.
I have tried several times but always the same problem.
I will try to reset to factory setting and configure it one more time to see if it is working.
I have spent some time reinstalling and configuring everything:
Now the NAS can be scanned and I can see all my music but still I have the same errors in the log though they are not affecting anyway the system.
2018-08-08T23:19:17.637Z - error: message=Cannot read property ‘0’ of undefined, stack=TypeError: Cannot read property ‘0’ of undefined
at /volumio/app/plugins/music_service/upnp_browser/index.js:82:67
at /volumio/app/plugins/music_service/upnp_browser/index.js:595:21
at Parser. (/volumio/node_modules/xml2js/lib/parser.js:303:18)
at emitOne (events.js:116:13)
at Parser.emit (events.js:211:7)
at SAXParser.onclosetag (/volumio/node_modules/xml2js/lib/parser.js:261:26)
at emit (/volumio/node_modules/sax/lib/sax.js:624:35)
at emitNode (/volumio/node_modules/sax/lib/sax.js:629:5)
at closeTag (/volumio/node_modules/sax/lib/sax.js:889:7)
at SAXParser.write (/volumio/node_modules/sax/lib/sax.js:1436:13)
at Parser.exports.Parser.Parser.parseString (/volumio/node_modules/xml2js/lib/parser.js:322:31)
at Parser.parseString (/volumio/node_modules/xml2js/lib/parser.js:5:59)
at /volumio/app/plugins/music_service/upnp_browser/index.js:594:24
at Request.handleRequestResponse [as _callback] (/volumio/node_modules/unirest/index.js:463:26)
at Request.self.callback (/volumio/node_modules/unirest/node_modules/request/request.js:187:22)
at emitTwo (events.js:126:13)
I still don’t see the log I send from volumio.local/dev
I’m not sure if this is a problem on the server.
I’ve just installed 2 plugins: one is the Spotify plugin for Volumio 2. I have then change the index.js in /data/plugins/music_service/spop/ with the version from skikirkwood which allows to see my playlists, my saved albums, etc.
The second plugin is the simple equalizer from Balbuze.
after about 20 reboot, reinstallation of volumio and removing of user data I found something weird. The following 2 problems.
The error below in volumio.log appears even when volumio is restarted and there is no drive or NAS configured:
2018-08-09T17:06:19.510Z - error: message=Cannot read property ‘0’ of undefined, stack=TypeError: Cannot read property ‘0’ of undefined
at /volumio/app/plugins/music_service/upnp_browser/index.js:82:67
at /volumio/app/plugins/music_service/upnp_browser/index.js:595:21
at Parser. (/volumio/node_modules/xml2js/lib/parser.js:303:18)
at emitOne (events.js:116:13)
at Parser.emit (events.js:211:7)
at SAXParser.onclosetag (/volumio/node_modules/xml2js/lib/parser.js:261:26)
at emit (/volumio/node_modules/sax/lib/sax.js:624:35)
at emitNode (/volumio/node_modules/sax/lib/sax.js:629:5)
at closeTag (/volumio/node_modules/sax/lib/sax.js:889:7)
at SAXParser.write (/volumio/node_modules/sax/lib/sax.js:1436:13)
at Parser.exports.Parser.Parser.parseString (/volumio/node_modules/xml2js/lib/parser.js:322:31)
at Parser.parseString (/volumio/node_modules/xml2js/lib/parser.js:5:59)
at /volumio/app/plugins/music_service/upnp_browser/index.js:594:24
at Request.handleRequestResponse [as _callback] (/volumio/node_modules/unirest/index.js:463:26)
at Request.self.callback (/volumio/node_modules/unirest/node_modules/request/request.js:187:22)
at emitTwo (events.js:126:13)
So it does not seem to depend on NAS drive.
I was struggling to understand why sometimes my library was disappearing though the NAS drive was mounted correctly and could be seen and browsed from command line. I was always getting the following error:
Then I have discovered that this problem seems to be related to the plugin “Volumio Simple Equalizer 0.4.1”. If the plugin is installed and enabled after a reboot I got the database scan error above. Disabling and enabling again the plugin fixes the problem.
At least now I know how to fix the issue if it happens again.
Thanks for your investigation! Even if I saw this error, I never understood what was the problem and how to reproduce it. I can’t test now but it could help!
Thanks for replying. Now that I have understood and I can reproduce it quite easily.
Let me know if you want me to debug something with a developer version.