Re: Cannot connect to mysqueezebox.com
s4v8 <s4v8.aqurrc-NUepA2SMhDQqspMVqqL2D+4xXEVPTSb/[email protected]>
| Newsgroups | gmane.music.equipment.slimdevices.general |
|---|---|
| Organization | Logitech Squeezebox Forums |
| Message-ID | <[email protected]> |
mherger wrote: > > The other thing that I'm having a hard time figuring out is ntpd. If > > you look at the log again I believe it initially fails to connect to > > mysb because of the date [69-12-31 19:00:51.4575] > > Oh, I actually wanted to ask about your system time. Because if it's not > > correct, the connection can fail, too. So please make sure you get the > time right, then restart LMS (only - not the full system) and check > again. Thank you. The time is correct now. tc@piCoreLMS:~$ date Fri Sep 16 12:08:53 EDT 2022 tc@piCoreLMS:~$ What I found interesting is that by default the system defines $NTPSERVER or /etc/sysconfig/ntpserver with a string of 6-7 NTP server addresses (sorry I don't have the string right now). ntpd doesn't like this and displays a syntax error message to the pi console screen and tries over and over again. Here's the section of code that runs at bootup: /usr/bin/getTime.sh #!/bin/busybox ash # bmarkus - 26/02/2014 NTPSERVER=$(cat /etc/sysconfig/ntpserver) /usr/sbin/ntpd -q -p $NTPSERVER As you can see here ntpd does not like multiple NTP server entries in the command: tc@piCoreLMS:~$ ntpd -q -p 1.2.3.4 9.10.11.12 BusyBox v1.34.1 (2021-11-20 17:07:05 EST) multi-call binary. Usage: ntpd [-dnqNw] [-S PROG] [-p PEER]... NTP client/server -d[d] Verbose -n Do not daemonize -q Quit after clock is set -N Run at high priority -w Do not set time (only query peers), implies -n -S PROG Run PROG after stepping time, stratum change, and every 11 min -p PEER Obtain time from PEER (may be repeated) If -p is not given, 'server HOST' lines from /etc/ntp.conf are used After I configured the the ntp server in bootcode I get the following tc@piCoreLMS:~$ cat /etc/sysconfig/ntpserver pool.ntp.org ------------------------------------------------------------------------ s4v8's Profile: http://forums.slimdevices.com/member.php?userid=73028 View this thread: http://forums.slimdevices.com/showthread.php?t=116798