What's new

amtm AMTM reports bin.entware.net as unreachable

  • 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!

MWGlidden

Occasional Visitor
Upgraded to latest asuswrt-merlin version (386.7.2) last night. This morning, AMTM's manual check for updates shows two things of concern.

1. No update for Entware:
Code:
 ep manage   Entware packages         upd err

2. Note at bottom of AMTM:
Code:
! Entware: bin.entware.net unreachable
 Everything's up to date (Aug 03 2022 08:25)

No issues pinging or loading bin.entware.net by hand, so I checked installed packages, which shows this at the top.

Code:
Collected errors:
 * parse_from_stream_nomalloc: Missing new line character at end of file!
 * parse_from_stream_nomalloc: Missing new line character at end of file!

This router runs Entware armv7sf-k3.2, if relevant. A simple force update to AMTM v3.3 didn't help, so I worry there's something deeper going on. Where should I go next?
 
Did you try a reboot (via the GUI) and then wait 10 to 15 minutes before testing for functionality again?

It would also help if you let us know what router you have too.
 
Thanks, should've said this is an Asus RT-AX58U, reported as "RT-AX58U (armv7l) FW-386.7" in AMTM. I rebooted it, waited 15min, and tried to update entware packages, with this output.

Code:
 Entware package options

 This router runs Entware armv7sf-k3.2
 See available packages list here:
 https://bin.entware.net/armv7sf-k3.2/Packages.html

 1. Update and upgrade Entware packages
 2. Show installed Scripts and Entware packages

 Enter selection [1-2 e=Exit] 1

Downloading https://bin.entware.net/armv7sf-k3.2/Packages.gz
*** Failed to download the package list from https://bin.entware.net/armv7sf-k3.2/Packages.gz

Collected errors:
 * parse_from_stream_nomalloc: Missing new line character at end of file!
 * parse_from_stream_nomalloc: Missing new line character at end of file!
 * file_move: Failed to rename /opt/tmp/opkg-jqBcLh/Packages.gz to /opt/var/opkg-lists/entware: Input/output error.
Assuming locally installed package libiconv-full (1.16-1) is up to date.
Assuming locally installed package ntpd (4.2.8p15-3) is up to date.
Assuming locally installed package sqlite3-cli (3330000-2) is up to date.
Assuming locally installed package logrotate (3.17.0-1) is up to date.
Assuming locally installed package libjson-c (0.15-2) is up to date.
Assuming locally installed package libffi (3.4.2-2) is up to date.
Assuming locally installed package libuuid (2.37-1) is up to date.
Assuming locally installed package libsmartcols (2.37-1) is up to date.
Assuming locally installed package bind-libs (9.17.20-1) is up to date.
Assuming locally installed package entware-release (1.0-2) is up to date.
Assuming locally installed package libintl-full (0.21-2) is up to date.
Assuming locally installed package findutils (4.8.0-1) is up to date.
Assuming locally installed package ca-bundle (20211016-1) is up to date.
Assuming locally installed package bind-dig (9.17.20-1) is up to date.
Assuming locally installed package entware-opt (227000-3) is up to date.
Assuming locally installed package libattr (2.5.1-3) is up to date.
Collected errors:
 * parse_from_stream_nomalloc: Missing new line character at end of file!
 * parse_from_stream_nomalloc: Missing new line character at end of file!
 * pkg_get_installed_files: Failed to open //opt/lib/opkg/info/libiconv-full.list: No such file or directory.

[many other "No such file" errors removed for message size]

 * pkg_get_installed_files: Failed to open //opt/lib/opkg/info/libedit.list: No such file or directory.
 * pkg_hash_check_unresolved: cannot find dependency libpthread for librt
 * pkg_hash_fetch_best_installation_candidate: Packages for librt found, but incompatible with the architectures configured
 * pkg_hash_check_unresolved: cannot find dependency libc for libiconv-full
 * pkg_hash_check_unresolved: cannot find dependency libpthread for libiconv-full

[many other "incompatible" errors removed for message size]

 * pkg_hash_check_unresolved: cannot find dependency libc for entware-release

I was able to reach https://bin.entware.net/armv7sf-k3.2/Packages.gz from a web browser on the same network without issue. A ping test to bin.entware.net also worked as expected.

Code:
admin@MWG_Root:/tmp/home/root# ping bin.entware.net
PING bin.entware.net (104.21.91.83): 56 data bytes
64 bytes from 104.21.91.83: seq=0 ttl=57 time=15.010 ms
64 bytes from 104.21.91.83: seq=1 ttl=57 time=16.431 ms
64 bytes from 104.21.91.83: seq=2 ttl=57 time=13.988 ms
64 bytes from 104.21.91.83: seq=3 ttl=57 time=16.413 ms
^C
--- bin.entware.net ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 13.988/15.460/16.431 ms

Any guess what's happening in AMTM that could fail to make the connection? Is there a simple text error (Missing new line character at end of file) in one of the dependent files?
 
Does this command work?
Code:
wget https://bin.entware.net/armv7sf-k3.2/Packages.gz -O /dev/null

Also check this:
Code:
which wget
 
Last edited:
Code:
ASUSWRT-Merlin RT-AX58U 386.7_2 Sun Jul 24 21:37:08 UTC 2022
admin@MWG_Root:/tmp/home/root# wget https://bin.entware.net/armv7sf-k3.2/Packages.gz -O /dev/null
--2022-08-03 12:05:34--  https://bin.entware.net/armv7sf-k3.2/Packages.gz
Resolving bin.entware.net... 104.21.91.83, 172.67.212.134, 2606:4700:3032::ac43:d486, ...
Connecting to bin.entware.net|104.21.91.83|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 314977 (308K) [application/x-gzip]
Saving to: '/dev/null'

/dev/null               100%[==============================>] 307.59K  --.-KB/s    in 0.04s   

2022-08-03 12:05:34 (7.01 MB/s) - '/dev/null' saved [314977/314977]

And

Code:
admin@MWG_Root:/tmp/home/root# which wget
/usr/sbin/wget
 
Code:
ASUSWRT-Merlin RT-AX58U 386.7_2 Sun Jul 24 21:37:08 UTC 2022
admin@MWG_Root:/tmp/home/root# wget https://bin.entware.net/armv7sf-k3.2/Packages.gz -O /dev/null
--2022-08-03 12:05:34--  https://bin.entware.net/armv7sf-k3.2/Packages.gz
Resolving bin.entware.net... 104.21.91.83, 172.67.212.134, 2606:4700:3032::ac43:d486, ...
Connecting to bin.entware.net|104.21.91.83|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 314977 (308K) [application/x-gzip]
Saving to: '/dev/null'

/dev/null               100%[==============================>] 307.59K  --.-KB/s    in 0.04s 

2022-08-03 12:05:34 (7.01 MB/s) - '/dev/null' saved [314977/314977]

And

Code:
admin@MWG_Root:/tmp/home/root# which wget
/usr/sbin/wget
Maybe your USB drive is corrupted, mounted in read-only mode or out of space.

Try:
Code:
touch /opt/tmp/testme

ls -l /opt
ls -l /tmp/opt
df -h
 
Thanks, here's the output of those commands.

Code:
admin@MWG_Root:/tmp/home/root# touch /opt/tmp/testme
admin@MWG_Root:/tmp/home/root# ls -l /opt
lrwxrwxrwx    1 admin    root             7 Jul 24 18:27 /opt -> tmp/opt
admin@MWG_Root:/tmp/home/root# ls -l /tmp/opt
lrwxrwxrwx    1 admin    root            22 Aug  3 11:21 /tmp/opt -> /tmp/mnt/UTILS/entware
admin@MWG_Root:/tmp/home/root# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root                52.1M     52.1M         0 100% /
devtmpfs                250.0M         0    250.0M   0% /dev
tmpfs                   250.1M    384.0K    249.7M   0% /var
tmpfs                   250.1M      1.9M    248.2M   1% /tmp/mnt
ubi1:data                 4.5M     64.0K      4.1M   1% /data
tmpfs                   250.1M      1.9M    248.2M   1% /tmp/mnt
tmpfs                   250.1M      1.9M    248.2M   1% /tmp
/dev/mtdblock9           47.0M      7.3M     39.7M  16% /jffs
/dev/sda1                14.0G      2.2G     11.1G  16% /tmp/mnt/UTILS
/dev/mtdblock9           47.0M      7.3M     39.7M  16% /www/Main_LogStatus_Content.asp
tmpfs                   250.1M      1.9M    248.2M   1% /www/start_apply.htm
tmpfs                   250.1M      1.9M    248.2M   1% /www/index_style.css
tmpfs                   250.1M      1.9M    248.2M   1% /www/require/modules/menuTree.js
 
I'm at a loss as to why amtm doesn't seem to be able to download that file when it works fine from the command line. Have you tried amtm again? Maybe it was a temporary problem with the site.

P.S. rm /opt/tmp/testme
 
Last edited:
OK, sounds like one of those small issues that can follow a dirty update to the latest wrtmerlin. Will set aside time to do a clean install and see if that solves things.
 
Experienced the update err this morning with amtm, restored a backup i had of the JFFS partition and a reboot
That solved it for me
 
Experienced the update err this morning with amtm, restored a backup i had of the JFFS partition and a reboot
That solved it for me
Ha, now know I should've backed up JFFS before the update. Will run a clean install of the USB stick.
 
...although, now that I think about it, is there a less-impactful way to reinstall/repair entware than zapping everything on the stick?

Code:
 This router runs Entware armv7sf-k3.2
See available packages list here:
https://bin.entware.net/armv7sf-k3.2/Packages.html

1. Update and upgrade Entware packages
2. Show installed Scripts and Entware packages

Enter selection [1-2 e=Exit] 2

Collected errors:
* parse_from_stream_nomalloc: Missing new line character at end of file!
* parse_from_stream_nomalloc: Missing new line character at end of file!

Seeing this simplistic error when I list installed packages makes me think there's one or two files that need a follow new line to make everything happy again, just not sure how to locate the right files.
 
I have same issue
My router is RT-AC68U
admin@RT-AC86U-2650-aimesh-router:/tmp/home/root# wget https://bin.entware.net/aarch64-k3.10/Packages.gz -O /dev/null

Code:
--2022-09-19 16:14:14--  https://bin.entware.net/aarch64-k3.10/Packages.gz
Resolving bin.entware.net... 104.21.91.83, 172.67.212.134, 2606:4700:3032::6815:5b53, ...
Connecting to bin.entware.net|104.21.91.83|:443... connected.
ERROR: cannot verify bin.entware.net's certificate, issued by 'CN=Cloudflare Inc ECC CA-3,O=Cloudflare\\, Inc.,C=US':
  Unable to locally verify the issuer's authority.
To connect to bin.entware.net insecurely, use `--no-check-certificate'.

any idea what's wrong?
 
I have same issue
My router is RT-AC68U
admin@RT-AC86U-2650-aimesh-router:/tmp/home/root# wget https://bin.entware.net/aarch64-k3.10/Packages.gz -O /dev/null

Code:
--2022-09-19 16:14:14--  https://bin.entware.net/aarch64-k3.10/Packages.gz
Resolving bin.entware.net... 104.21.91.83, 172.67.212.134, 2606:4700:3032::6815:5b53, ...
Connecting to bin.entware.net|104.21.91.83|:443... connected.
ERROR: cannot verify bin.entware.net's certificate, issued by 'CN=Cloudflare Inc ECC CA-3,O=Cloudflare\\, Inc.,C=US':
  Unable to locally verify the issuer's authority.
To connect to bin.entware.net insecurely, use `--no-check-certificate'.

any idea what's wrong?
Is the date and time set correctly on the router?
 
It appears to be some sort of certificate problem. There was a similar sounding issue with the RT-AC87U caused by the router's certificates having expired. Have you done anything on your router that might effect certificates?
 
It appears to be some sort of certificate problem. There was a similar sounding issue with the RT-AC87U caused by the router's certificates having expired. Have you done anything on your router that might effect certificates?

I just update latest firmware 386.7.2
Isn't it certificate /rom/etc/ssl/certs/ca-certificates.crt from firmware?
 
Last edited:
I just update latest firmware 386.7.2
Isn't it certificate /rom/etc/ssl/certs/ca-certificates.crt from firmware?
I'm going to reply in your other thread here as your problem is different than the one originally discussed in this thread.
 

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