What's new

ntpMerlin Installer closes SSH terminal

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

M

MvW

Guest
@Jack Yaz: Not sure whether intentional or even worth mentioning, but I had to start fresh today and apparently I enabled the built-in ntp-server. When I ran the ntpMerlin installer script, it detected that, disabled it but it also closed my (Putty) terminal session while at it, instead of returning to amtm. Was that intented?

Code:
 This installs ntpMerlin - Installer for kvic NTP Daemon
 on your router.

 Author: Jack Yaz
 https://www.snbforums.com/threads/55756
_____________________________________________

 Continue? [1=Yes e=Exit] 1

ntpMerlin: Welcome to ntpMerlin v3.2.2, a script by JackYaz

ntpMerlin: Checking your router meets the requirements for ntpMerlin

ntpMerlin: Built-in ntpd is enabled and will conflict, it will be disabled


Done.

And the session was unexpectedly terminated...
 
In addition to my previous post, it looks like the installer didn't get to finish the job. The ntpmerlin page on the add-ons page isn't showing up and uninstalling generates some errors too:

Code:
z.    Uninstall ntpMerlin

############################################################

Choose an option:    z

Are you sure you want to uninstall ntpMerlin? (y/n)
y
ntpMerlin: Removing ntpMerlin...

iptables: No chain/target/match by that name.
iptables: No chain/target/match by that name.
/jffs/scripts/ntpmerlin: line 1578: can't open /jffs/addons/ntpmerlin.d/ntpdstats_www.asp: no such file
/jffs/scripts/ntpmerlin: line 1578: can't open /jffs/addons/ntpmerlin.d/ntpdstats_www.asp: no such file

Do you want to delete ntpMerlin configuration file and stats? (y/n)
y
grep: /jffs/addons/ntpmerlin.d/config: No such file or directory
/jffs/scripts/ntpmerlin: line 1578: /opt/etc/init.d/S77: not found
No packages removed.
No packages removed.
No packages removed.
ntpMerlin: Uninstall completed
[/CODE}
 
Last edited by a moderator:
Re-ran the installer from amtm, now all is fine. Looking at the remainder of the output things got cut off early...

Code:
Enter option  j2
_____________________________________________

This installs ntpMerlin - Installer for kvic NTP Daemon
on your router.

Author: Jack Yaz
https://www.snbforums.com/threads/55756
_____________________________________________

Continue? [1=Yes e=Exit] 1

ntpMerlin: Welcome to ntpMerlin v3.2.2, a script by JackYaz

ntpMerlin: Checking your router meets the requirements for ntpMerlin

ntpMerlin: Installing required packages from Entware

Downloading http://bin.entware.net/aarch64-k3.10/Packages.gz
Updated list of available packages in /opt/var/opkg-lists/entware
Package sqlite3-cli (3330000-1) installed in root is up to date.
Installing ntp-utils (4.2.8p15-3) to root...
Downloading http://bin.entware.net/aarch64-k3.10/ntp-utils_4.2.8p15-3_aarch64-3.10.ipk
Installing libcap (2.43-1) to root...
Downloading http://bin.entware.net/aarch64-k3.10/libcap_2.43-1_aarch64-3.10.ipk
Installing libevent2-core (2.1.11-2) to root...
Downloading http://bin.entware.net/aarch64-k3.10/libevent2-core_2.1.11-2_aarch64-3.10.ipk
Installing libevent2-pthreads (2.1.11-2) to root...
Downloading http://bin.entware.net/aarch64-k3.10/libevent2-pthreads_2.1.11-2_aarch64-3.10.ipk
Configuring libcap.
Configuring libevent2-core.
Configuring libevent2-pthreads.
Configuring ntp-utils.
Installing ntpd (4.2.8p15-3) to root...
Downloading http://bin.entware.net/aarch64-k3.10/ntpd_4.2.8p15-3_aarch64-3.10.ipk
Configuring ntpd.
/jffs/scripts/ntpmerlin: line 1669: can't open /jffs/addons/ntpmerlin.d/ntpdstats_www.asp: no such file
/jffs/scripts/ntpmerlin: line 1669: can't open /jffs/addons/ntpmerlin.d/ntpdstats_www.asp: no such file
ntpMerlin: New version of ntpdstats_www.asp downloaded

ntpMerlin: Mounted ntpMerlin WebUI page as user3.asp

ntpMerlin: New version of timeserverd downloaded

Checking ntpd...              dead.
Starting timeserverd...              already running.
Checking timeserverd...              dead.
Starting timeserverd...              done.
 
Disabling the NTP server daemon and restarting the time service will restart sshd. That's a tough one, but Jack will come up with something. :)

i could probably just manually call server restart on the individual services and hope for the best.
or just stop ntpd and assume nothing else needs to be restarted. i used the time restart on advice from a more knowledgeable developer than i
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top