Posts: 21
Threads: 4
Joined: Jun 2021
Reputation:
0
Hi, I just upgraded to latest version 8.2.1 and after the reboot completes I am getting a JSON.parse: unexpected end of data at line 1 column 1 of the JSON data
everything so far appears to work.
Thanks for everything you all do here. Great software and support.
Posts: 1,282
Threads: 24
Joined: Jun 2022
Reputation:
42
(10-15-2022, 07:03 PM)scotsmist Wrote: Hi, I just upgraded to latest version 8.2.1 and after the reboot completes I am getting a JSON.parse: unexpected end of data at line 1 column 1 of the JSON data
everything so far appears to work.
Thanks for everything you all do here. Great software and support.
Hi,
it's a bit weird... you say you get this error (which is not the happiest thing to get) but then you say that everything is working...
is it, or not...?
I, in your position, would clear the browser's cache and reboot; expecting not to see such error again.
Cheers, Al.
Posts: 13,450
Threads: 305
Joined: Mar 2018
Reputation:
545
Open Library config and Clear the Library tag cache.
Posts: 21
Threads: 4
Joined: Jun 2021
Reputation:
0
10-15-2022, 08:30 PM
(This post was last modified: 10-15-2022, 08:30 PM by scotsmist.)
(10-15-2022, 07:59 PM)Tim Curtis Wrote: Open Library config and Clear the Library tag cache.
Just tried and still the same error when rebooting, thanks for replying both of you
(ps browser cache always cleared when closing)
Posts: 13,450
Threads: 305
Joined: Mar 2018
Reputation:
545
Post the startup log and I'll have a look.
Posts: 142
Threads: 16
Joined: Apr 2018
Reputation:
3
04-05-2023, 10:20 AM
(This post was last modified: 04-06-2023, 09:59 PM by DRONE7.
Edit Reason: https://moodeaudio.org/forum/showthread.php?tid=4654
)
(10-15-2022, 09:22 PM)Tim Curtis Wrote: Post the startup log and I'll have a look.
I have the same pb with a RPI4B
Code: pi@moode-s:~ $ moodeutl -l
20230405 122144 worker: --
20230405 122144 worker: -- Start moOde 8 series
20230405 122144 worker: --
20230405 122144 worker: Successfully daemonized
20230405 122146 worker: File check (OK)
20230405 122147 worker: Session vacuumed
20230405 122147 worker: Session loaded
20230405 122147 worker: Debug logging (OFF)
20230405 122147 worker: --
20230405 122147 worker: -- Audio debug
20230405 122147 worker: --
20230405 122147 worker: ALSA cards: (0:BossDAC | 1:empty | 2:empty | 3:empty
20230405 122147 worker: MPD config: (0:Allo Boss DAC | mixer:(Digital) | card:0)
20230405 122147 worker: ALSA mixer actual (Digital)
20230405 122147 worker: ALSA Digital volume set to (0%)
20230405 122147 worker: --
20230405 122147 worker: -- System
20230405 122147 worker: --
20230405 122148 worker: Host (moode-s)
20230405 122148 worker: moOde (8.2.5 2023-01-20)
20230405 122148 worker: RaspiOS (11.6)
20230405 122148 worker: Kernel (5.15.84-v8+ #1613)
20230405 122148 worker: Platform (Pi-4B 1.5 2GB)
20230405 122148 worker: ARM arch (aarch64, 64-bit)
20230405 122148 worker: MPD ver (0.23.11)
20230405 122148 worker: CPU gov (ondemand)
20230405 122148 worker: USB boot (enabled)
20230405 122148 worker: File sys (expanded)
20230405 122148 worker: HDMI port (Off)
20230405 122148 worker: Sys LED0 (On)
20230405 122148 worker: Sys LED1 (On)
20230405 122148 worker: --
20230405 122148 worker: -- Network
20230405 122148 worker: --
20230405 122148 worker: eth0 adapter exists
20230405 122148 worker: eth0 check for address (On)
20230405 122148 worker: eth0 address check (90 secs)
20230405 122148 worker: eth0 check 0 for IP address
20230405 122150 worker: eth0 check 1 for IP address
20230405 122152 worker: eth0 check 2 for IP address
20230405 122154 worker: IP addr (192.168.2.108)
20230405 122154 worker: Netmask (255.255.255.0)
20230405 122154 worker: Gateway (192.168.2.1)
20230405 122154 worker: Pri DNS (192.168.2.1)
20230405 122154 worker: Domain ()
20230405 122155 worker: wlan0 adapter exists
20230405 122155 worker: wlan0 country (FR)
20230405 122155 worker: wlan0 trying configured SSID (Tenda_917B00)
20230405 122155 worker: wlan0 check 0 for IP address
20230405 122157 worker: wlan0 check 1 for IP address
20230405 122159 worker: wlan0 check 2 for IP address
20230405 122201 worker: wlan0 check 3 for IP address
20230405 122203 worker: wlan0 check 4 for IP address
20230405 122205 worker: wlan0 check 5 for IP address
20230405 122207 worker: wlan0 check 6 for IP address
20230405 122209 worker: wlan0 check 7 for IP address
20230405 122211 worker: wlan0 check 8 for IP address
20230405 122226 worker: wlan0 check 9 for IP address
20230405 122228 worker: wlan0 check 10 for IP address
20230405 122230 worker: wlan0 check 11 for IP address
20230405 122232 worker: wlan0 check 12 for IP address
20230405 122234 worker: wlan0 check 13 for IP address
20230405 122236 worker: wlan0 check 14 for IP address
20230405 122238 worker: wlan0 check 15 for IP address
20230405 122240 worker: wlan0 check 16 for IP address
20230405 122242 worker: wlan0 check 17 for IP address
20230405 122244 worker: wlan0 check 18 for IP address
20230405 122246 worker: wlan0 check 19 for IP address
20230405 122248 worker: wlan0 check 20 for IP address
20230405 122250 worker: wlan0 check 21 for IP address
20230405 122252 worker: wlan0 check 22 for IP address
20230405 122254 worker: wlan0 check 23 for IP address
20230405 122257 worker: wlan0 check 24 for IP address
20230405 122259 worker: wlan0 check 25 for IP address
20230405 122301 worker: wlan0 check 26 for IP address
20230405 122303 worker: wlan0 check 27 for IP address
20230405 122305 worker: wlan0 check 28 for IP address
20230405 122307 worker: wlan0 check 29 for IP address
20230405 122309 worker: wlan0 check 30 for IP address
20230405 122311 worker: wlan0 check 31 for IP address
20230405 122313 worker: wlan0 check 32 for IP address
20230405 122315 worker: wlan0 check 33 for IP address
20230405 122317 worker: wlan0 check 34 for IP address
20230405 122319 worker: wlan0 check 35 for IP address
20230405 122321 worker: wlan0 check 36 for IP address
20230405 122323 worker: wlan0 check 37 for IP address
20230405 122325 worker: wlan0 check 38 for IP address
20230405 122327 worker: wlan0 check 39 for IP address
20230405 122329 worker: wlan0 check 40 for IP address
20230405 122331 worker: wlan0 check 41 for IP address
20230405 122333 worker: wlan0 check 42 for IP address
20230405 122335 worker: wlan0 check 43 for IP address
20230405 122337 worker: wlan0 check 44 for IP address
20230405 122339 worker: wlan0 no IP addr for SSID (Tenda_917B00)
20230405 122339 worker: wlan0 AP mode not started (eth0 active but Router mode is Off)
20230405 122339 worker: wlan0 address not assigned
20230405 122339 worker: wlan0 power save disabled
20230405 122339 worker: apd0 router mode (Off)
20230405 122339 worker: --
20230405 122339 worker: -- Software update
20230405 122339 worker: --
20230405 122339 worker: Automatic check (Off)
20230405 122339 worker: --
20230405 122339 worker: -- Audio config
20230405 122339 worker: --
20230405 122340 worker: MPD conf updated
20230405 122340 worker: ALSA card number (0)
20230405 122340 worker: MPD audio output (Allo Boss DAC)
20230405 122340 worker: Audio formats (S16_LE, S24_LE, S32_LE)
20230405 122340 worker: ALSA mixer name (Digital)
20230405 122340 worker: MPD mixer type (fixed 0dB)
20230405 122340 worker: Hdwr volume controller exists
20230405 122340 worker: Max ALSA volume (100%)
20230405 122340 worker: ALSA output mode (Default: plughw)
20230405 122340 worker: ALSA loopback (Off)
20230405 122340 worker: Reset renderer active flags
20230405 122340 worker: CamillaDSP (off)
20230405 122340 worker: --
20230405 122340 worker: -- File sharing
20230405 122340 worker: --
20230405 122340 worker: SMB file sharing (Off)
20230405 122340 worker: NFS file sharing (Off)
20230405 122340 worker: --
20230405 122340 worker: -- MPD startup
20230405 122340 worker: --
20230405 122341 worker: MPD started
20230405 122341 worker: MPD accepting connections
20230405 122341 worker: MPD output 1 ALSA Default (On)
20230405 122341 worker: MPD output 2 ALSA Bluetooth (Off)
20230405 122341 worker: MPD output 3 HTTP Server (Off)
20230405 122341 worker: MPD crossfade (off)
20230405 122341 worker: MPD ignore CUE files (yes)
20230405 122341 worker: --
20230405 122341 worker: -- Music sources
20230405 122341 worker: --
20230405 122341 worker: USB sources
20230405 122341 worker: No drives found
20230405 122341 worker: NAS sources
20230405 122341 worker: nasmoodeMusique
20230405 122342 worker: Mount all submitted
20230405 122342 worker: --
20230405 122342 worker: -- Feature availability
20230405 122342 worker: --
20230405 122342 worker: Input select (available)
20230405 122342 worker: Input (MPD)
20230405 122342 worker: Output (Allo Boss DAC)
20230405 122342 worker: Bluetooth (available)
20230405 122342 worker: AirPlay renderer (available: started)
20230405 122342 worker: Spotify renderer (available)
20230405 122342 worker: Squeezelite (available)
20230405 122342 worker: RoonBridge renderer (not installed)
20230405 122342 worker: Multiroom sender (available)
20230405 122342 worker: Multiroom receiver (available)
20230405 122342 worker: UPnP renderer (available)
20230405 122342 worker: DLNA server (available)
20230405 122342 worker: GPIO button handler (available)
20230405 122342 worker: Stream recorder (n/a)
20230405 122342 worker: HTTPS-Only mode (n/a)
20230405 122342 worker: --
20230405 122342 worker: -- Other
20230405 122342 worker: --
20230405 122342 worker: USB volume knob (Off)
20230405 122342 worker: Shellinabox SSH started
20230405 122342 worker: USB auto-mounter (udisks-glue)
20230405 122342 worker: Saved MPD vol level (0)
20230405 122342 worker: Preamp volume level (0)
20230405 122342 worker: MPD volume level (0) restored
20230405 122342 worker: ALSA Digital volume (100%)
20230405 122342 worker: Auto-play (Off)
20230405 122342 worker: LocalUI (Off)
20230405 122342 worker: Automatic CoverView (Off)
20230405 122342 worker: On-screen keyboard (Off)
20230405 122342 worker: Library scope (all)
20230405 122342 worker: View reset to playback
20230405 122342 worker: Maintenance interval (360 minutes)
20230405 122342 worker: Screen saver activation (Never)
20230405 122342 worker: Session permissions (OK)
20230405 122343 worker: Mount monitor started
20230405 122343 worker: Watchdog started
20230405 122343 worker: Ready
musical regards
y.
Posts: 13,450
Threads: 305
Joined: Mar 2018
Reputation:
545
I don't see anything suspicious in the startup log.
What is the contents of /boot/config.txt
Code: cat /boot/config.txt
Also try a fresh 8.3.0 image and see if the issue reoccurs.
Posts: 142
Threads: 16
Joined: Apr 2018
Reputation:
3
(04-05-2023, 11:33 AM)Tim Curtis Wrote: I don't see anything suspicious in the startup log.
What is the contents of /boot/config.txt
Code: cat /boot/config.txt
Also try a fresh 8.3.0 image and see if the issue reoccurs.
I tried several 8.3.0 (and 8.2.5) images with the same pbs.
but everything started working normally after a while (after a reboot), but without me doing anything special.
looks weird.
Maybe a problem with my router...
Code: cat /boot/config.txt
[cm4]
otg_mode=1
[pi4]
hdmi_force_hotplug:0=1
hdmi_force_hotplug:1=1
[all]
disable_splash=1
disable_overscan=1
hdmi_drive=2
hdmi_blanking=1
hdmi_force_edid_audio=1
hdmi_force_hotplug=1
hdmi_group=0
dtparam=i2c_arm=on
dtparam=i2s=on
dtparam=audio=off
dtoverlay=allo-boss-dac-pcm512x-audio
#dtoverlay=disable-wifi
#dtoverlay=disable-bt
musical regards
y.
Posts: 6,030
Threads: 177
Joined: Apr 2018
Reputation:
235
I have seen this error message pop up, even in current 8.3.0, under certain conditions which I haven't yet been able to characterize yet.
As one example, a while ago I swiped my partner's AirPods when she wasn't looking and paired/connected to them from moOde. After listening for a while, I turned off the AirPods, rebooted the player for some reason or another, and got the JSON parse error in question. IIRC it went away when I closed the browser tab and opened the WebUI in a new one.
On my way to another wedding, this time in Virginia Beach, so won't be able to revisit the issue until next week.
Regards,
Kent
Posts: 6,030
Threads: 177
Joined: Apr 2018
Reputation:
235
Well, I tested positive for COVID19 antigens when we got to Virginia Beach (5 hour drive), so we turned around and came home (yup, 5 hour trip again). Now in day 5 and still feeling crappy, so this is just a teaser. Thankfully my SO is still testing negative.
I seem to be able to force the "MPD Error: JSON.parse" popup easily using the Mozilla Firefox desktop browser on my Linux laptop, in the Windows 10 guest O/S on same, and the Firefox app on my Android phone. While in the moOde playback view, go to m>Power>Restart and watch the screen as moOde restarts. First the expected RECONNECT popup appears, then for a while the MPD Error message keeps repeating. Finally, normal operation is restored. Or something like that. I don't know if it's necessary to have tracks in the queue; I did.
This behavior doesn't occur with the Google Chromium browser on the above platforms or with Microsoft Edge in the Windows 10 Guest O/S. It doesn't occur with any browser on my iPad, either, but that's probably due to their underlying common engine.
Here's a long snippet of the Firefox console output while this is going on
Code: Empty string passed to getElementById(). 3 lib.min.js:22:1373
Empty string passed to getElementById(). 3 lib.min.js:22:1373
Empty string passed to getElementById(). lib.min.js:22:1373
Empty string passed to getElementById(). lib.min.js:22:1373
Object { https: false, httpsAutoUpgrade: false, privacyScore: 2, entitiesBlocked: {}, entitiesNotBlocked: {}, scores: null }
background.js:42250:21
HTTPS: hostname is an IP - host is not upgradable 10.0.0.18 background.js:39374:17
Empty string passed to getElementById(). 2 lib.min.js:22:1373
1680816520653: engineMpd(): error branch: data=({"readyState":0,"responseText":"","status":0,"statusText":"error"}) lib.min.js:67:3440
HTTPS: hostname is an IP - host is not upgradable 10.0.0.18 2 background.js:39374:17
1680816555290: engineMpd(): success branch: data=() lib.min.js:67:3440
1680816555292: engineMpd(): success branch: error=(SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data), module=(undefined) lib.min.js:67:3440
HTTPS: hostname is an IP - host is not upgradable 10.0.0.18 2 background.js:39374:17
1680816559853: engineMpd(): success branch: data=() lib.min.js:67:3440
1680816559855: engineMpd(): success branch: error=(SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data), module=(undefined) lib.min.js:67:3440
HTTPS: hostname is an IP - host is not upgradable 10.0.0.18 2 background.js:39374:17
1680816562962: engineMpd(): success branch: data=() lib.min.js:67:3440
1680816562963: engineMpd(): success branch: error=(SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data), module=(undefined) lib.min.js:67:3440
Empty string passed to getElementById(). 2 lib.min.js:22:1373
HTTPS: hostname is an IP - host is not upgradable 10.0.0.18 2 background.js:39374:17
1680816566050: engineMpd(): success branch: data=() lib.min.js:67:3440
1680816566050: engineMpd(): success branch: error=(SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data), module=(undefined) lib.min.js:67:3440
Empty string passed to getElementById(). 2 lib.min.js:22:1373
HTTPS: hostname is an IP - host is not upgradable 10.0.0.18 2 background.js:39374:17
1680816569144: engineMpd(): success branch: data=() lib.min.js:67:3440
1680816569145: engineMpd(): success branch: error=(SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data), module=(undefined) lib.min.js:67:3440
Empty string passed to getElementById(). 2 lib.min.js:22:1373
HTTPS: hostname is an IP - host is not upgradable 10.0.0.18 8 background.js:39374:17
Some cookies are misusing the recommended “SameSite“ attribute 2
1680816673155: engineMpd(): success branch: data=({"volume":"31","repeat":"0","random":"0","single":"0","consume":"0","partition":"default","playlist":"2","playlistlength":"217","mixrampdb":"0","state":"stop","song":"210","songid":"211","nextsong":"211","nextsongid":"212","elapsed":"","time":null,"song_percent":"0","audio_sample_rate":null,"audio_sample_depth":null,"audio_channels":"Undefined","bitrate":"0 bps","file":"NAS\/Omv-Music\/DBPowerAmp\/Alban Berg Quartet\/Dvor\u00e1k, Smetana; String Quartets\/02 Alban Berg Quartet - String Quartet No. 12 in F major ('American'), B. 179 (Op. 96); Lento.flac","thumb_hash":"0e2788580abdc52b66988f2837a1aa8c","genre":"Chamber Music","track":"2","date":"1991","composer":"Antonin Dvor\u00e1k","conductor":null,"performer":null,"albumartist":"Alban Berg Quartet","artist_count":1,"comment":null,"cover_art_hash":"4f212972733a5d3db3a5dca2557cf2db","mapped_db_vol":"","encoded":"16\/44.1 FLAC","artist":"Alban Berg Quartet","title":"String Quartet No. 12 in F major (\"American\"), B. 179 (Op. 96): Lento","album":"Dvor\u00e1k, Smetana: String Quartets","disc":"1","coverurl":"\/coverart.php\/NAS%2FOmv-Music%2FDBPowerAmp%2FAlban%20Berg%20Quartet%2FDvor%C3%A1k%2C%20Smetana%3B%20String%20Quartets%2F02%20Alban%20Berg%20Quartet%20-%20String%20Quartet%20No.%2012%20in%20F%20major%20%28%27American%27%29%2C%20B.%20179%20%28Op.%2096%29%3B%20Lento.flac","hidef":"no"}) lib.min.js:67:3440
HTTPS: hostname is an IP - host is not upgradable 10.0.0.18 3 background.js:39374:17
1680816673265: engineMpd(): error branch: data=({"readyState":0,"responseText":"","status":0,"statusText":"error"}) lib.min.js:67:3440
HTTPS: hostname is an IP - host is not upgradable 10.0.0.18 background.js:39374:17
Some cookies are misusing the recommended “SameSite“ attribute 3
...
Regards,
Kent
|