* [sisyphus] systemd-networkd : Failed to execute operation: No such file or directory @ 2015-06-23 8:09 Eugene Prokopiev 2015-06-23 8:16 ` alexei 0 siblings, 1 reply; 8+ messages in thread From: Eugene Prokopiev @ 2015-06-23 8:09 UTC (permalink / raw) To: ALT Linux Sisyphus discussions Здравствуйте! Помню, что несколько месяцев назад настраивал сеть средствами systemd-networkd примерно так : # cat /etc/systemd/network/static.network [Match] Name=enp0s3 [Network] DNS=8.8.8.8 Domains=local Address=10.0.0.2/24 Gateway=10.0.0.1 На текущем сизифе (systemd-networkd-220-alt1) именно с такой конфигурацией я получаю: # systemctl enable systemd-networkd Failed to execute operation: No such file or directory # systemctl status -l systemd-networkd ● systemd-networkd.service - Network Service Loaded: loaded (/lib/systemd/system/systemd-networkd.service; enabled; vendor preset: enabled) Active: inactive (dead) since Вт 2015-06-23 10:19:34 MSK; 43min ago Docs: man:systemd-networkd.service(8) Process: 308 ExecStart=/lib/systemd/systemd-networkd (code=exited, status=0/SUCCESS) Main PID: 308 (code=exited, status=0/SUCCESS) Status: "Shutting down..." июн 23 10:19:02 localhost.localdomain systemd[1]: Starting Network Service... июн 23 10:19:02 localhost.localdomain systemd-networkd[308]: Enumeration completed июн 23 10:19:02 localhost.localdomain systemd[1]: Started Network Service. июн 23 10:19:02 localhost.localdomain systemd-networkd[308]: enp0s3: Configured июн 23 10:19:02 localhost.localdomain systemd-networkd[308]: enp0s3: enp0s3 : could not bring up interface: Invalid argument июн 23 10:19:02 localhost.localdomain systemd-networkd[308]: enp0s3: Gained carrier июн 23 10:19:02 localhost.localdomain systemd-networkd[308]: lo: Configured Чего не хватает? -- WBR, Eugene Prokopiev ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [sisyphus] systemd-networkd : Failed to execute operation: No such file or directory 2015-06-23 8:09 [sisyphus] systemd-networkd : Failed to execute operation: No such file or directory Eugene Prokopiev @ 2015-06-23 8:16 ` alexei 2015-06-23 8:18 ` Eugene Prokopiev 0 siblings, 1 reply; 8+ messages in thread From: alexei @ 2015-06-23 8:16 UTC (permalink / raw) To: ALT Linux Sisyphus discussions ----- Исходное сообщение ----- > От: "Eugene Prokopiev" <enp@altlinux.org> > Кому: "ALT Linux Sisyphus discussions" <sisyphus@lists.altlinux.org> > Отправленные: Вторник, 23 Июнь 2015 г 16:09:08 > Тема: [sisyphus] systemd-networkd : Failed to execute operation: No such file or directory > Здравствуйте! > > Помню, что несколько месяцев назад настраивал сеть средствами > systemd-networkd примерно так : > > # cat /etc/systemd/network/static.network > [Match] > Name=enp0s3 ^^^^^^^ Интерфейс точно так называется? Может все-таки "enp3s0"? Что говорит ip link ? ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [sisyphus] systemd-networkd : Failed to execute operation: No such file or directory 2015-06-23 8:16 ` alexei @ 2015-06-23 8:18 ` Eugene Prokopiev 2015-06-23 9:17 ` Eugene Prokopiev 0 siblings, 1 reply; 8+ messages in thread From: Eugene Prokopiev @ 2015-06-23 8:18 UTC (permalink / raw) To: ALT Linux Sisyphus discussions >> Name=enp0s3 > ^^^^^^^ > > Интерфейс точно так называется? Может все-таки "enp3s0"? Что говорит ip link ? # ip l sh enp0s3 2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000 link/ether 08:00:27:07:90:cf brd ff:ff:ff:ff:ff:ff Я допускаю, что дело в отсутствии у меня какого-то пакета/конфига, т.к. это такой минимальный livecd, куда я вполне мог чего-то не доложить. Как бы узнать чего? -- WBR, Eugene Prokopiev ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [sisyphus] systemd-networkd : Failed to execute operation: No such file or directory 2015-06-23 8:18 ` Eugene Prokopiev @ 2015-06-23 9:17 ` Eugene Prokopiev 2015-06-23 9:23 ` Eugene Prokopiev 0 siblings, 1 reply; 8+ messages in thread From: Eugene Prokopiev @ 2015-06-23 9:17 UTC (permalink / raw) To: ALT Linux Sisyphus discussions > Я допускаю, что дело в отсутствии у меня какого-то пакета/конфига, > т.к. это такой минимальный livecd, куда я вполне мог чего-то не > доложить. Как бы узнать чего? Однако та же проблема воспроизводится в http://nightly.altlinux.org/sisyphus/current/regular-mate-latest-i586.iso с выключенным NetworkManager и доустановленным systemd-networkd -- WBR, Eugene Prokopiev ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [sisyphus] systemd-networkd : Failed to execute operation: No such file or directory 2015-06-23 9:17 ` Eugene Prokopiev @ 2015-06-23 9:23 ` Eugene Prokopiev 2015-06-23 10:20 ` Eugene Prokopiev 2015-06-23 10:23 ` Евгений Терешков 0 siblings, 2 replies; 8+ messages in thread From: Eugene Prokopiev @ 2015-06-23 9:23 UTC (permalink / raw) To: ALT Linux Sisyphus discussions Любопытно, что в обоих случаях start отрабатывает, адрес на интерфейсе появляется, а вот enable приводит к 'Failed to execute operation: No such file or directory' -- WBR, Eugene Prokopiev ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [sisyphus] systemd-networkd : Failed to execute operation: No such file or directory 2015-06-23 9:23 ` Eugene Prokopiev @ 2015-06-23 10:20 ` Eugene Prokopiev 2015-06-23 10:23 ` Евгений Терешков 1 sibling, 0 replies; 8+ messages in thread From: Eugene Prokopiev @ 2015-06-23 10:20 UTC (permalink / raw) To: ALT Linux Sisyphus discussions А если livecd установить на жесткий диск, то после перезагрузки адрес на интерфейсе тоже появляется (как будто enable был сделан, хотя сделать его по прежнему не удается). После загрузки это выглядит так: # systemctl status systemd-networkd ● systemd-networkd.service - Network Service Loaded: loaded (/lib/systemd/system/systemd-networkd.service; enabled; vendor preset: enabled) Active: inactive (dead) since Вт 2015-06-23 12:59:34 MSK; 13min ago Docs: man:systemd-networkd.service(8) Process: 322 ExecStart=/lib/systemd/systemd-networkd (code=exited, status=0/SUCCESS) Main PID: 322 (code=exited, status=0/SUCCESS) Status: "Shutting down..." июн 23 12:59:03 localhost systemd[1]: Starting Network Service... июн 23 12:59:03 localhost systemd-networkd[322]: Enumeration completed июн 23 12:59:03 localhost systemd-networkd[322]: enp0s3: enp0s3 : could not bring up interface: Invalid argument июн 23 12:59:03 localhost systemd-networkd[322]: enp0s3: Gained carrier июн 23 12:59:03 localhost systemd-networkd[322]: enp0s3: Configured июн 23 12:59:03 localhost systemd[1]: Started Network Service. И похоже, что и раньше это выглядело точно так же - http://lists.altlinux.org/pipermail/sisyphus/2015-March/363535.html -- WBR, Eugene Prokopiev ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [sisyphus] systemd-networkd : Failed to execute operation: No such file or directory 2015-06-23 9:23 ` Eugene Prokopiev 2015-06-23 10:20 ` Eugene Prokopiev @ 2015-06-23 10:23 ` Евгений Терешков 1 sibling, 1 reply; 8+ messages in thread From: Евгений Терешков @ 2015-06-23 10:23 UTC (permalink / raw) To: ALT Linux Sisyphus discussions [-- Attachment #1: Type: text/plain, Size: 2907 bytes --] Eugene Prokopiev пишет: > Любопытно, что в обоих случаях start отрабатывает, адрес на интерфейсе > появляется, а вот enable приводит к 'Failed to execute operation: No > such file or directory' Воспроизвелось в virtualbox-е на server-systemd-20150224-x86_64.iso, обновлённом до текущего сизифа. На аэродинамику не влияет, всё работает, но неприятно. Звучит похоже на https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=734809 (но видимо не оно) По совету оттуда сделал strace -s 2048 -ff -p 1 -o ~/systemd.log и вот что там видно в конце (весь лог во вложении): =8<========================================================================= open("/etc/systemd/system/systemd-networkd.socket", O_RDONLY|O_NOCTTY|O_NOFOLLOW|O_CLOEXEC) = -1 ENOENT (No such file or directory) open("/run/systemd/system/systemd-networkd.socket", O_RDONLY|O_NOCTTY|O_NOFOLLOW|O_CLOEXEC) = -1 ENOENT (No such file or directory) open("/lib/systemd/system/systemd-networkd.socket", O_RDONLY|O_NOCTTY|O_NOFOLLOW|O_CLOEXEC) = -1 ENOENT (No such file or directory) open("/usr/lib/systemd/system/systemd-networkd.socket", O_RDONLY|O_NOCTTY|O_NOFOLLOW|O_CLOEXEC) = -1 ENOENT (No such file or directory) sendmsg(15, {msg_name(0)=NULL, msg_iov(2)=[{"l\3\1\1\36\0\0\0\1\0\0\0?\0\0\0\5\1u\0\1\0\0\0\4\1s\0'\0\0\0org.freedesktop.DBus.Error.FileNotFound\0\10\1g\0\1s\0\0", 80}, {"\31\0\0\0No such file or directory\0", 30}], msg_controllen=0, msg_flags=0}, MSG_DONTWAIT|MSG_NOSIGNAL) = 110 =8<========================================================================= Упоминания systemd-networkd.socket я нашел в /lib/systemd/system/{systemd-networkd.service,dbus-org.freedesktop.network1.service}: =8<========================================================================= [Install] WantedBy=multi-user.target Also=systemd-networkd.socket =8<========================================================================= Из всех юнитов в директивах Also= только systemd-networkd.socket у меня находится в состоянии not-found (остальные .socket и .path в норме). Документация на директиву Also= (systemd.unit(5)) ничего не говорит на тему того, должно ли игнорироваться неудачное действие с дополнительным юнитом или же об этом надо сообщить (что мы и наблюдаем). Так что, видимо, баг это или фича - решать апстриму :-) 2shaba: или я ошибаюсь где-то? [-- Attachment #2: systemd pid 1 strace --] [-- Type: application/x-bzip2, Size: 3825 bytes --] [-- Attachment #3: Type: text/plain, Size: 109 bytes --] -- С уважением, Терешков Евгений. Jabber ID: evg@altlinux.org, evg_krsk@jabber.ru ^ permalink raw reply [flat|nested] 8+ messages in thread
[parent not found: <CAEdvWkS-zbnQgrghWgozfJtTpFGAbRuR3HcFHYs7HuUocEb14Q@mail.gmail.com>]
* Re: [sisyphus] systemd-networkd : Failed to execute operation: No such file or directory @ 2015-06-25 8:52 ` Евгений Терешков 0 siblings, 0 replies; 8+ messages in thread From: Евгений Терешков @ 2015-06-25 8:52 UTC (permalink / raw) To: ALT Linux Sisyphus discussions Alexey Shabalin пишет: >> Eugene Prokopiev пишет: >> 2shaba: или я ошибаюсь где-то? > Я прошу прощения, прямо сейчас заняться проблемой не могу - занят. > Я в ближайшее время подготовлю systemd-v221, тогда уже и буду разбираться. Воспроизводится на systemd-221-alt2 -- С уважением, Терешков Евгений. Jabber ID: evg@altlinux.org, evg_krsk@jabber.ru ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2015-06-25 8:52 UTC | newest] Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2015-06-23 8:09 [sisyphus] systemd-networkd : Failed to execute operation: No such file or directory Eugene Prokopiev 2015-06-23 8:16 ` alexei 2015-06-23 8:18 ` Eugene Prokopiev 2015-06-23 9:17 ` Eugene Prokopiev 2015-06-23 9:23 ` Eugene Prokopiev 2015-06-23 10:20 ` Eugene Prokopiev 2015-06-23 10:23 ` Евгений Терешков 2015-06-25 8:52 ` Евгений Терешков
ALT Linux Sisyphus discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \ sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru public-inbox-index sisyphus Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.sisyphus AGPL code for this site: git clone https://public-inbox.org/public-inbox.git