Page MenuHomeVyOS Platform

1.2.6-S1 -> 1.2.7-epa1 fails - broken system
Closed, ResolvedPublic

Description

Attempting to go from 1.2.6-S1 to 1.2.7-epa1 this morning breaks my system.

The problem manifests itself as a router that's VERY quick to issue the "Mounting Vyos Config...done" statement, while 1.2.6-S1 usually takes ~60 seconds before it shows this.

I am left with a debian login: prompt, instead of the name of my router. No user/pass combination that I try works, so I'm unable to login. I booted back to 1.2.6-S1 and looked at the contents of

/lib/live/mount/persistence/boot/1.2.7-epa1/rw/var/log/vyatta/vyatta-config-loader.log and it contains:

2021-02-27 20:08:20  == begin boot-config-loader
2021-02-27 20:08:20  -- begin load
Invalid config file (syntax error): error at line 1256, text [.]
Failed to parse specified config file
2021-02-27 20:08:20  -- load finished with failure(s)
2021-02-27 20:08:20  -- begin commit
2021-02-27 20:08:20  -- commit succeeded
2021-02-27 20:08:20  -- teardown succeeded
2021-02-27 20:08:20  -- exiting
2021-02-27 20:13:52  == begin boot-config-loader
2021-02-27 20:13:52  -- begin load
Invalid config file (syntax error): error at line 1256, text [.]
Failed to parse specified config file
2021-02-27 20:13:53  -- load finished with failure(s)
2021-02-27 20:13:53  -- begin commit
2021-02-27 20:13:53  -- commit succeeded
2021-02-27 20:13:53  -- teardown succeeded
2021-02-27 20:13:53  -- exiting
2021-02-27 20:15:53  == begin boot-config-loader
2021-02-27 20:15:53  -- begin load
Invalid config file (syntax error): error at line 1256, text [.]
Failed to parse specified config file
2021-02-27 20:15:54  -- load finished with failure(s)
2021-02-27 20:15:54  -- begin commit
2021-02-27 20:15:54  -- commit succeeded
2021-02-27 20:15:54  -- teardown succeeded
2021-02-27 20:15:54  -- exiting

My config, with line numbers:

1248      name-server "192.168.0.1"
1249      ntp {
1250          allow-clients {
1251              address "192.168.0.0/16"
1252          }
1253          listen-address "192.168.0.1"
1254          listen-address "192.168.0.251"
1255          server {
1256              nz.pool.ntp.org {
1257                  prefer {
1258                  }
1259              }
1260          }
1261      }

I assume there's a problem in 1.2.7-epa1 parsing the ntp server name?

Happy to provide whatever debug/outputs required, but keep in mind this is system I can't login to, so that makes live debug of the running system hard.

Details

Difficulty level
Unknown (require assessment)
Version
1.2.7-epa1
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)

Event Timeline

tjh created this object in space S1 VyOS Public.

Is there anything else I can do to help debug this issue?

I can't reproduce it. Updated successfully. from 1.2.6-s1 to 1.2.7-epa1

[email protected]:~$ show conf com | match ntp
set system ntp listen-address '192.168.122.12'
set system ntp server nz.pool.ntp.org prefer
[email protected]:~$ 
[email protected]:~$ show version 
Version:          VyOS 1.2.7-epa1

@tjh Can you delete image 1.2.7-epa1 and update again?

Sure thing, I'll try it again tomorrow.

Same issue. I'm happy to send my config file (not publically) for further debug if that'll help?

So I have found a workaround/fix for this.

Before upgrade I did "delete system ntp"

And then post-upgrade I just re-pasted all the commands that were under system ntp.

The system works, and reboot works just fine. It's very odd.