ppp files are created one level too deep
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | Snappy |
Critical
|
Michael Vogt | ||
Bug Description
Starting with ubuntu-core 5 a systemd service pppd-dns.service is started on boot and it fails as the corresponding file /etc/ppp/
| Simon Eisenmann (longsleep) wrote : | #1 |
| Simon Eisenmann (longsleep) wrote : | #2 |
I did some digging and found that the ppp files are one level too deep
find /etc/ppp/ -type f
/etc/ppp/
/etc/ppp/
/etc/ppp/
/etc/ppp/
/etc/ppp/ppp/ip-up
/etc/ppp/
/etc/ppp/
/etc/ppp/
/etc/ppp/
/etc/ppp/
/etc/ppp/
/etc/ppp/
| summary: |
- Failed to start Restore /etc/resolv.conf if the system crashed before - the ppp link + ppp files are created one level too deep |
| Changed in snappy: | |
| status: | New → Triaged |
| importance: | Undecided → Critical |
| milestone: | none → 15.04.4 |
| Michael Vogt (mvo) wrote : | #3 |
This looks like a issue with the writable-paths in some way, both /etc/ppp and /etc/modprobe.d are at the wrong level. /writable/
"""
/etc/modprobe.d/ auto persistent transition none
/etc/ppp/ auto persistent tran
"""
Note the trailing "/". I suspect this confuses the writable-path code in the initramfs.
| Changed in snappy: | |
| status: | Triaged → In Progress |
| Michael Vogt (mvo) wrote : | #4 |
This is fixed for new image with the latest ubuntu-core-config upload. We also need a fixup script for existing users, I will add that next.
| Michael Vogt (mvo) wrote : | #5 |
The workaround is now also uploaded.
| Changed in snappy: | |
| assignee: | nobody → Michael Vogt (mvo) |
| status: | In Progress → Fix Committed |
| Leo Arias (elopio) wrote : | #6 |
I can confirm that the files are at the right level using 15.04 edge #179 on kvm.
But if I update from #178 to #179, the service still shows Active: failed and the ppp files are one level too deep.
| Leo Arias (elopio) wrote : | #7 |
No wait. It says failed, but the files are at the right level.
(amd64)
● pppd-dns.service - Restore /etc/resolv.conf if the system crashed before the ppp link was shut down.
Loaded: loaded (/lib/systemd/
Active: failed (Result: exit-code) since Wed 2015-09-23 20:17:44 UTC; 3min 58s ago
Process: 603 ExecStart=
Main PID: 603 (code=exited, status=203/EXEC)
$ find /etc/ppp/ -type f
/etc/ppp/ip-up
find: `/etc/ppp/peers': Permission denied
/etc/ppp/
/etc/ppp/
/etc/ppp/
/etc/ppp/ipv6-up
/etc/ppp/
/etc/ppp/options
/etc/ppp/ip-down
/etc/ppp/
/etc/ppp/
/etc/ppp/ipv6-down
| Leo Arias (elopio) wrote : | #8 |
After a restart, the service seems to be working.
So, #178 fails -> #180 fails -> restart service works.
(amd64)
-- Logs begin at Wed 2015-09-23 20:17:43 UTC, end at Wed 2015-09-23 20:23:57 UTC. --
Sep 23 20:17:44 localhost.
Sep 23 20:17:44 localhost.
Sep 23 20:17:44 localhost.
Sep 23 20:17:44 localhost.
Sep 23 20:17:44 localhost.
(amd64)
(amd64)
-- Logs begin at Wed 2015-09-23 20:17:43 UTC, end at Wed 2015-09-23 20:25:22 UTC. --
Sep 23 20:17:44 localhost.
Sep 23 20:17:44 localhost.
Sep 23 20:17:44 localhost.
Sep 23 20:17:44 localhost.
Sep 23 20:17:44 localhost.
Sep 23 20:25:19 localhost.
Sep 23 20:25:19 localhost.
(amd64)
● pppd-dns.service - Restore /etc/resolv.conf if the system crashed before the ppp link was shut down.
Loaded: loaded (/lib/systemd/
Active: inactive (dead) since Wed 2015-09-23 20:25:19 UTC; 21s ago
Process: 893 ExecStart=
Main PID: 893 (code=exited, status=0/SUCCESS)
| Michael Vogt (mvo) wrote : | #9 |
This sounds a lot like ppp is started before the snappy workarounds run. We need to run the fixes earlier I guess.
| Leo Arias (elopio) wrote : | #10 |
flashed 15.04 edge #178, the ppp service doesn't start. updated to #182, reboot, the service starts. All good now!
Thanks longsleep for the report. Thanks mvo for the fix. Beers for everybody!
| Leo Arias (elopio) wrote : | #11 |
ugh, there's something wrong with this in the alpha.
Flashed 15.04 alpha #11, the ppp service doesn't start. updated to alpha #12, reboot and it still doesn't start. Restart the service and it works. What could be missing in the alpha #12 that's present in edge #182?
| Michael Vogt (mvo) wrote : | #12 |
Thanks Leo! I found the issue why the workaround was not correctly applied in the right order and fixed with with the latest image. The fix should be in 15.04-alpha r185.
| Changed in snappy: | |
| status: | Fix Committed → Fix Released |


Details:
~$ systemctl status pppd-dns.service system/ pppd-dns. service; enabled; vendor preset: enabled) /etc/ppp/ ip-down. d/0000usepeerdn s (code=exited, status=203/EXEC)
● pppd-dns.service - Restore /etc/resolv.conf if the system crashed before the ppp link was shut down.
Loaded: loaded (/lib/systemd/
Active: failed (Result: exit-code) since Tue 2015-09-22 18:07:22 UTC; 6min ago
Process: 644 ExecStart=
Main PID: 644 (code=exited, status=203/EXEC)