I have a BIG problem with OpenWrt on my Archer C7 AC1750 2.0

Guys please help me you are my last hope:pray:!

I do not want to have to buy a new router because I have installed an Open-Wrt update.......

More information needed, as the steps you're taking should have put the router into a known-good, manageable state.

When you ssh into the router, what are the outputs of mount and cat /etc/os-release ?

Copy-paste of the exact output as "preformatted" will be most helpful.

image

1 Like

mount
/dev/root on /rom type squashfs (ro,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,noatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,noatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)
/dev/mtdblock3 on /overlay type jffs2 (rw,noatime)
overlayfs:/overlay on / type overlay (rw,noatime,lowerdir=/,upperdir=/overlay/upper,workdir=/overlay/work)
tmpfs on /dev type tmpfs (rw,nosuid,relatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,mode=600,ptmxmode=000)
debugfs on /sys/kernel/debug type debugfs (rw,noatime)

root@OpenWrt:~# cat /etc/os-release
NAME="OpenWrt"
VERSION="18.06.1"
ID="openwrt"
ID_LIKE="lede openwrt"
PRETTY_NAME="OpenWrt 18.06.1"
VERSION_ID="18.06.1"
HOME_URL="http://openwrt.org/"
BUG_URL="http://bugs.openwrt.org/"
SUPPORT_URL="http://forum.lede-project.org/"
BUILD_ID="r7258-5eb055306f"
LEDE_BOARD="ar71xx/generic"
LEDE_ARCH="mips_24kc"
LEDE_TAINTS=""
LEDE_DEVICE_MANUFACTURER="OpenWrt"
LEDE_DEVICE_MANUFACTURER_URL="http://openwrt.org/"
LEDE_DEVICE_PRODUCT="Generic"
LEDE_DEVICE_REVISION="v0"
LEDE_RELEASE="OpenWrt 18.06.1 r7258-5eb055306f"

Perhaps something is corrupted in your image. You could download from web again, confirm the sha256 hash, and then upgrade again over tftp. This will give you a known good starting place.

1 Like

I was saying not to click the 'go to password configuration' button, it may be broken. Instead log in with no password then change it.

The overlay is mounted read-write, which means it should be possible to write files. Check df to confirm there is free space.

Does passwd work from the CLI?

Hey THX 4 answering!

This was an original image from openwrt.org (even a member confirm that) and i update it as always!

Where do you think I should download the image this time - please give me a link.
How to confirm the sha256 hash?

How to upgrade over tftp?

http://downloads.openwrt.org/releases/18.06.1/targets/

(You sill see the sha256 sum beside the file on download page.)

sha256sum openwrt-18.06.1-ar71xx-generic-archer-c7-v2-squashfs-sysupgrade.bin

Also, please pick one thread to communication about this issue!!!

yes, that's the right place to download it. But sometimes downloads can get corrupted. Check your downloaded image with sha256 hashing.

I'm guessing you have a windows machine, so sha256 can be calculated from the shell, according to this thread: https://stackoverflow.com/questions/478722/what-is-the-best-way-to-calculate-a-checksum-for-a-file-that-is-on-my-machine

CertUtil -hashfile pathToFileToCheck [HashAlgorithm]

should do the trick, put SHA256 as the last argument

There isn't anything to log in - as i said only the "go to password....button" an following error

root@OpenWrt:~# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 2816 2816 0 100% /rom
tmpfs 62648 292 62356 0% /tmp
/dev/mtdblock3 12224 580 11644 5% /overlay
overlayfs:/overlay 12224 580 11644 5% /
tmpfs 512 0 512 0% /dev

I think there is enough free space.

CLI? Your mean to set a password with the command in putty? << no doesn't work:

passwd: /etc/passwd: No such file or directory
passwd: can't update password file /etc/passwd

This is why I think something got corrupted... if you have access to the router you could do:

cd /tmp/
wget http://downloads.openwrt.org/releases/18.06.1/targets/ar71xx/generic/openwrt-18.06.1-ar71xx-generic-archer-c7-v2-squashfs-sysupgrade.bin
sha256sum openwrt-18.06.1-ar71xx-generic-archer-c7-v2-squashfs-sysupgrade.bin
## check the sha sum against the one published online here: http://downloads.openwrt.org/releases/18.06.1/targets/ar71xx/generic/
# ONLY IF IT MATCHES:
sysupgrade -n openwrt-18.06.1-ar71xx-generic-archer-c7-v2-squashfs-sysupgrade.bin

Yes, you should re-flash then, as there should be an /etc/passwd file in the stock rootfs. Note that the password is actually stored in /etc/shadow.

Be sure to use the -n option on sysupgrade, as you want to remove any (intentional or unintentional) changes and get a clean new install.

1 Like

Ok i opened the link but i don't know what to download. There isn't a "bin-file" like the file image i downloaded before.

I don't see the sha256 sum and beside.... and which file?

sha256sum openwrt-18.06.1-ar71xx-generic-archer-c7-v2-squashfs-sysupgrade.bin << what should i do with it?

After running that command compare the output to the Sha sum on the openwrt site, in your case

5dc61dc4fc8f344d851ab38ddf3eec3309f62ee54c3c6e2db74bdd307e5fde55

Only after confirming, then run the sysupgrade

1 Like

I'm just getting mixed up :crazy_face:
Please tell me again exactly what I should do now so that the problem is resolved!

You're making this extremely difficult (you've been told about 4 times in 2 threads):

Screenshot%20from%202019-01-14%2015-47-46

cd /tmp
http://downloads.openwrt.org/releases/18.06.1/targets/ar71xx/generic/openwrt-18.06.1-ar71xx-generic-archer-c7-v2-squashfs-sysupgrade.bin
sha256sum openwrt-18.06.1-ar71xx-generic-archer-c7-v2-squashfs-sysupgrade.bin
#COMPARE THE ONE DISPLAYED HERE WITH THE ONE ON THE WEB BROWSER!!!
sysupgrade -n openwrt-18.06.1-ar71xx-generic-archer-c7-v2-squashfs-sysupgrade.bin

You're going to re-flash from the command line.

First copy another copy of the OpenWrt 18.06.1 sysupgrade file to the router's RAM disk under /tmp. You can do this directly with wget as @dlakelan described-- or download the file to your PC then use scp to push it to the router.

Use sha256sum to compute the "fingerprint" of the file. Manually compare that to the posted sha256 sum in the file on the openwrt download site. If it is the same you can be highly confident that the file was not damaged in transport.

Then run sysupgrade -n to put this file into the router's flash. The router will reboot with default settings.

1 Like

:man_facepalming:

PLEASE PICK ONE THREAD!!!

Did it flash and reboot yet?

Allow 5 minutes after the reboot before trying to log in. It needs to format the overlay filesystem in the flash before it is ready to use. Do not cut the power during this time.

ok this thread can be closed

@ALL >> THANK YOU SO MUCH 4 YOUR UNDERSTANDING PATIENCE and KIND HELP

.....how to close this thread?

1 Like

:+1: NO problem!

Glad you got it working.

If your problem is solved, feel free to mark the relevant post as the solution; and edit the title to add "[SOLVED]" to the beginning (click the pencil behind the topic).

grafik

1 Like