Kitz Forum

Broadband Related => Broadband Hardware => Topic started by: Weaver on October 22, 2019, 10:22:10 AM

Title: VMG1312-B10A not responding
Post by: Weaver on October 22, 2019, 10:22:10 AM
I screwed up the config of one modem somehow last autumn; it doesn’t respond when you try to talk to the ordinary web server. But it does work normally as a modem and you can telnet into it. It has Johnson’s custom firmware in it - the version with the easy stats and graphing web server. The graphing web server works fine.

So because I can’t get into the normal web server, I can’t reflash it at the moment nor load new config into it. Is there a way of restoring control over it?

I don’t actually need to do anything to it because it just works. But if I were to need to make some changes then I would need to get back into it.

If I can’t get into it it’s not the end of the world because I have plenty of other modems and I could just flash one of those and substitute it putting it into active duty instead, and demoting the awkward one to being a spare.
Title: Re: VMG1312-B10A not responding
Post by: tubaman on October 22, 2019, 11:42:47 AM
@Weaver, if you follow @burakkucat's instructions in this thread - https://forum.kitz.co.uk/index.php/topic,20731.msg361030.html#msg361030 - you should be able to re-flash it.
 :)
Title: Re: VMG1312-B10A not responding
Post by: Weaver on October 22, 2019, 11:51:35 AM
Brilliant thanks tubaman- I was sure Burakkucat, Johnson, kitz or someone had given explicit recovery instructions before - something I have found very difficult. I am semi bed bound so I either get my wife to wrestle with the modem and talk her through it or run an enormously long ethernet cable to the switch and then plug the modem into mains while I am in bed still, then I can do the reset procedure myself.

I am so full of morphine today and I can’t see - everything is double - my eyes aren’t focusing properly. I shall leave this attempt until I am much more with it. But at some point I shall want to get control of this one back.

I don’t know what stupid thing I did to break the main admin web server in the thing; some attempt at fiddling around with network config that went wrong.
Title: Re: VMG1312-B10A not responding
Post by: tubaman on October 22, 2019, 02:54:22 PM
Weaver - you're welcome.
Perhaps you need to get yourself a cheap laptop so you can play around with this type of thing.
I have a really ancient one that I got secondhand and have loaded Lubuntu onto. I find it perfect for this type of 'playing' and I also don't worry too much about messing it up as if I do I just reload the OS and start again.
 :)
Title: Re: VMG1312-B10A not responding
Post by: burakkucat on October 22, 2019, 05:40:04 PM
I wonder if there is a Kitizen, relatively nearby (in Scotland), who would be willing to perform the deed?  :-\  (Assuming Mrs Weaver would be prepared to safely package up the device and take it into Broadford, for dispatch.)
Title: Re: VMG1312-B10A not responding
Post by: Weaver on October 22, 2019, 08:49:31 PM
Yes, I could always package the awkward devil up and post it to England or anywhere. I might as well have another go at it myself, possibly with a giant long ethernet cable, of which I have plenty. But that will have to be at a time when Mrs Weaver is good to help me for half an hour and I am sufficiently clearheaded to do the reset procedure that Burakkucat gave us. There’s no urgency at the moment which means that it is never getting done, and programming yet another one is easier than dealing with the real issue if sorting this beggar out.
Title: Re: VMG1312-B10A not responding
Post by: burakkucat on October 22, 2019, 11:26:47 PM
Actually I need to thank t*man for providing the link, as I recall typing it out (possibly more than once) but forgetting where it was. I've now bookmarked that particular post.

If I am correctly remembering what johnson mentioned, the act of taking the VMG1312-B10A to a solid red power LED is sufficient to revert the device back to the default configuration of the currently loaded firmware image.  :-\  That should be all that needs to be done as the current firmware image is good, the mangled configuration is not good.
Title: Re: VMG1312-B10A not responding
Post by: johnson on October 23, 2019, 02:36:48 AM
I screwed up the config of one modem somehow last autumn; it doesn’t respond when you try to talk to the ordinary web server. But it does work normally as a modem and you can telnet into it.

If you have telnet access you can perform a reset by issuing "restoredefault" from the zyxel shell.

Tried it a couple times on the testing 1312, works every time for me.

Will need to be able to access it on the default 192.168.1.1 address after though.
Title: Re: VMG1312-B10A not responding
Post by: Weaver on October 23, 2019, 03:57:25 AM
Ah brilliant! What exactly does it do? Restores the default factory config?

And then as you say, the IP address will change to the default. The existing admin IP address happens to be 192.168.1.1 because it’s on duty ‘in slot 1’, acting as modem #1 in 192.168.n.1.

Then I should be able to get in to the normal web admin application on port 80.

If anything goes wrong, what, I then go for Burakkucat’s full reset procedure?

Apologies for being so obvious, nervous. Everything is a bit fuzzy now and thinking is very difficult.
Title: Re: VMG1312-B10A not responding
Post by: Chrysalis on October 23, 2019, 05:31:17 AM
hmmm, it seems this enhanced stats feature might not be worth it if it causes this problem?
Title: Re: VMG1312-B10A not responding
Post by: johnson on October 23, 2019, 05:45:55 AM
hmmm, it seems this enhanced stats feature might not be worth it if it causes this problem?

I have physically reconfigured a modem of Weavers before due to this kind of issue, it was long before installing the stats firmware.
Title: Re: VMG1312-B10A not responding
Post by: johnson on October 23, 2019, 05:48:42 AM
Ah brilliant! What exactly does it do? Restores the default factory config?

And then as you say, the IP address will change to the default. The existing admin IP address happens to be 192.168.1.1 because it’s on duty ‘in slot 1’, acting as modem #1 in 192.168.n.1.

Then I should be able to get in to the normal web admin application on port 80.

If anything goes wrong, what, I then go for Burakkucat’s full reset procedure?

Apologies for being so obvious, nervous. Everything is a bit fuzzy now and thinking is very difficult.

As far as I can tell "restoredefault" is the same as full pin reset with red lights. My 1312 comes back up after it at 192.168.1.1 and wifi enabled with default SSID.
Title: Re: VMG1312-B10A not responding
Post by: Chrysalis on October 23, 2019, 10:53:07 AM
I have physically reconfigured a modem of Weavers before due to this kind of issue, it was long before installing the stats firmware.

did you find out the cause then?
Title: Re: VMG1312-B10A not responding
Post by: Weaver on October 24, 2019, 12:39:27 AM
The other modems have stats firmware and are fine. The modem that is giving problems was ok until I fiddled around with it, doing medical experiments in the CLI and at some point I made it unhappy; I was trying to fix the networking config so it had a proper defined default gateway and sort dns out and so on. There is no way I can see that it’s anything to do with Johnson’s enhanced custom build.



I’ll try this good tip for recovery when I have got Janet available to help me then.
Title: Re: VMG1312-B10A not responding
Post by: burakkucat on October 24, 2019, 12:52:06 AM
It may be simpler to try the reset-button whist powering-on trick, as I suggested in my second paragraph of Reply #6 (https://forum.kitz.co.uk/index.php/topic,23974.msg404165.html#msg404165). No leads are required (apart of that from the PSU, obviously).
Title: Re: VMG1312-B10A not responding
Post by: Weaver on October 24, 2019, 12:57:34 AM
Superb. I have regained access to the normal web server !!

Thank you so much to all who have helped me. And I also have a reminder of Burakkucat’s serious reset procedure for the future.

But this easy reset procedure could all be done remotely with having to beg Mrs Weaver for help with physical intervention
Title: Re: VMG1312-B10A not responding
Post by: burakkucat on October 24, 2019, 01:04:34 AM
A purrfect result.  :)
Title: Re: VMG1312-B10A not responding
Post by: Weaver on October 24, 2019, 01:22:56 AM
 >:( >:( :-[ :'(

Not so fast, I’m afraid. I loaded up the latest config and stuffed everything up; I now have no access of any kind - no http on port 80, no telnet and not even Johnson’s http 8000 api works properly - can’t get stats from it any more on port 8000. So with no telnet it will have to be the full Burakkucat reset.

Damn - I went a long way backwards.

I need to difference that config against other versions too. Perhaps I should export a config from another modem and then difference that against what I’m using for this modem #1 - to see if I’ve done something really stupid.

A thought - maybe that latest config has evil in it backed up, the evil I introduced by hand is stored in that config!

I difference the config taken out of a good modem, and cannot see the problem.

I noticed that I cannot even ping the sickly modem #1.

It is however working as a modem, doing its job ok.

[Moderator edited to merge successive "tweet-like" posts.]
Title: Re: VMG1312-B10A not responding
Post by: johnson on October 24, 2019, 03:17:55 AM
What are the differences between the known good and one you uploaded?

I assume just IP? Super basic thought would be the sickly modem is no longer at 192.168.1.1 if it doesnt even respond to pings, but on a conflicting IP to one of the other modems.
Title: Re: VMG1312-B10A not responding
Post by: Weaver on October 24, 2019, 06:47:33 AM
There are quite a few differences, 53 differences in all: one or two which I don’t understand; encrypted passwords are different; lots of things to do with Wi-Fi as well; one thing to do with DSL config; some missing entries to do with VDSL profiles which would appear unimportant - I remember seeing them in the UI; there is one entry concerning versioning that has a zero length content in the one version and content which is the text string "(null)" in the other; there are a couple of dates which are different.

I have searched for all IPv4 addresses using a regex, nothing obviously wrong. There is a MAC address associated with the WAN i/f and that is different.

The only other address in that LAN is .254 which is the firebrick.

Can’t even ping it from my iPad. Nor can the firebrick ping it directly either.

I can either wrestle with this one with the Burakkucat full reset procedure and see what happens or I can pull a backup one and program that.

Perhaps I just did something really stupid like loading up the wrong config file, one for the wrong ‘slot’, which would put it in eg 192.168.2.1 instead of .1.1. Perhaps picked the wrong file with my poor eyesight.

The two files I’m considering are here attached.

[Moderator edited to merge successive "tweet-like" posts.]
Title: Re: VMG1312-B10A not responding
Post by: Chrysalis on October 24, 2019, 09:04:26 AM
The other modems have stats firmware and are fine. The modem that is giving problems was ok until I fiddled around with it, doing medical experiments in the CLI and at some point I made it unhappy; I was trying to fix the networking config so it had a proper defined default gateway and sort dns out and so on. There is no way I can see that it’s anything to do with Johnson’s enhanced custom build.



I’ll try this good tip for recovery when I have got Janet available to help me then.

ok thanks for clarifying.
Title: Re: VMG1312-B10A not responding
Post by: Weaver on October 24, 2019, 07:45:13 PM
There are other very minor differences: one date is in the distant past, a date in ISO format is terminated with a Z and has no time zone offset given in it.

It makes me wonder if there is some possibility that a very minor syntactic transgression, or illegality in the content of some field could crash the thing on startup when it digests the config file?

I noticed that you can specify four IPv4 addresses for the modem’s own admin i/f; I wonder if I could exploit that by having every modem at every one of four addresses. I would need to ensure that the firebrick’s own address in those lans is within the intersection of all of the netmasks. I’m not sure where the netmask is specified and I’m wondering if it defaults to /24. If so that’s not helpful with things laid out as they are. If I could set the netmask to something wide enough then that would be good. I don’t know what is going on with the IPv4 config in the thing. Maybe there are other XML elements which we should be using but aren’t currently.

When I try again with the full reset procedure or a fresh modem, I’ll use the config that is known-good pulled out of happy modem #2, I’ve converted all the addresses in that good modem #2 config file appropriately to 192.168.1.* for modem slot#1 instead of .2.* (using a thoroughly tested Shortcuts iPad program which uses regexes and whose results have been diffed to check them).
Title: Re: VMG1312-B10A not responding
Post by: burakkucat on October 24, 2019, 07:55:47 PM
b*cat nods in acknowledgement.

I have downloaded the two configuration files and compared them using a "sideways diff". Basically --

sdiff -s -w160 config-file-1 config-file-2 | less

I can see nothing intrinsically wrong . . .  :(
Title: Re: VMG1312-B10A not responding
Post by: Weaver on October 24, 2019, 08:35:58 PM
I will get hold of sdiff for the Pi / Debian Buster if I can then. I used the Kaleidoscope app for iOS as a sideways diff, which is very nice - not as powerful as Examdiff Pro which I have used a lot though.
Title: Re: VMG1312-B10A not responding
Post by: burakkucat on October 24, 2019, 09:01:57 PM
You could, of course, just use the -y flag to the standard diff utility --

diff -y config-file-1 config-file-2 | less
Title: Re: VMG1312-B10A not responding
Post by: Weaver on October 25, 2019, 12:26:24 AM
So I’m wondering - either there’s something intrinsically odd about modem 1, or else the config file (attached to an earlier post) is just plain bad and must crash the modem.

Perhaps I should just program a new modem?

I wonder what the story is about the MAC address stored in the config file?
Title: Re: VMG1312-B10A not responding
Post by: Weaver on October 28, 2019, 08:21:18 AM
I keep begging Mrs Weaver for some help with the physical business of resetting a modem using Burakkucat’s procedure given at :
    https://forum.kitz.co.uk/index.php/topic,20731.msg361030.html#msg361030

I don’t really want to replace the firmware though as it already has a version that I’m quite happy with.

Is there a way that I can skip that part of the above procedure?

Or will I be unable to regain control over it without going through the ritual in its entirety?

I want to put it into a known state regarding config. A though occurs to me. I have not even power-cycled it yet. I wonder what that would do? One way to find out. I can beg Mrs Weaver to do that for me at least. As things are, the main port 80 http server isn’t working, and the Johnson stats server on port 8000 is, I think, working but not properly - as I get a short prompt via http on port 8000, but the full port 8000 graphing functions are not working, a failure which I suspect is possibly due to a dependency no longer working.
Title: Re: VMG1312-B10A not responding
Post by: burakkucat on October 28, 2019, 04:51:20 PM
I don’t really want to replace the firmware though as it already has a version that I’m quite happy with.

Is there a way that I can skip that part of the above procedure?

Or will I be unable to regain control over it without going through the ritual in its entirety?

I want to put it into a known state regarding config.

I mentioned a simplified procedure in the second paragraph of Reply #6 (https://forum.kitz.co.uk/index.php/topic,23974.msg404165.html#msg404165), above. To reiterate --

If I am correctly remembering what johnson mentioned, the act of taking the VMG1312-B10A to a solid red power LED is sufficient to revert the device back to the default configuration of the currently loaded firmware image.  :-\  That should be all that needs to be done as the current firmware image is good, the mangled configuration is not good.
Title: Re: VMG1312-B10A not responding
Post by: Weaver on October 28, 2019, 09:23:46 PM
Brilliant - I just overlooked that at the time. Thank you very much indeed.  ;D  Free of pain now and so much clearer in my mind.
Title: Re: VMG1312-B10A not responding
Post by: Chrysalis on October 30, 2019, 06:52:25 PM
In same boat I think :/

The one I got from ebay, solid red light.

Got in with reset pin
Title: Re: VMG1312-B10A not responding
Post by: Weaver on October 31, 2019, 01:14:00 PM
 :drink: :drink: :drink:

I recruited my beloved because many hands were needed; one for reset tool, one for power lead, one to hold modem, one to hold iPad with instructions and keep encroaching cats out of the way. Used simplified procedure, solid red light. Success!

Got in, loaded a master config. All done.



Is there any chance that I could possibly have got into this trouble somehow by doing something that caused some kind of persistent state to get altered or deleted so that the device got into a borked state but where that bad state information was outside the normal xml config file?
Title: Re: VMG1312-B10A not responding
Post by: burakkucat on October 31, 2019, 04:16:51 PM
Got in, loaded a master config. All done.

That's a relief.  :)  (As you know, sending the device to "The Cattery" would have been the last resort. (If there was no member in Scotland who could have assisted.))

Quote
Is there any chance that I could possibly have got into this trouble somehow by doing something that caused some kind of persistent state to get altered or deleted so that the device got into a borked state but where that bad state information was outside the normal xml config file?

I guess that could have been possible, yes.

b*cat thinks of, but does not utter, a two word phrase: "No fiddling."  :-X