Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FAIL profile is active with netctl-auto #129

Open
arcan1s opened this issue Feb 12, 2016 · 5 comments
Open

FAIL profile is active with netctl-auto #129

arcan1s opened this issue Feb 12, 2016 · 5 comments
Labels

Comments

@arcan1s
Copy link

arcan1s commented Feb 12, 2016

If I type netctl-auto list it shows the following:

$ netctl-auto list
* FAIL
  273
  wifi0-437k
  c47
  exante
  543
  arcanis_ideapad
  arcanis
  home

(with and without sudo). But in my profile directory I see no such profile:

$ ls /etc/netctl
examples  hooks  interfaces  273  543  arcanis  arcanis_ideapad  c47  exante  home  server  sim  wifi0-437k

Currently enabled profile is c47 and here is profile details:

Description='c47 audience of Faculty of Chemistry inet'
Interface=wifi0
Connection=wireless
Security=wpa
ESSID=c-47
IP=dhcp
Key=<snip>
DNS=('8.8.8.8')

In my logs I see the following strings (with debug mode disabled):

-- Logs begin at Чт 2016-02-11 10:51:56 MSK, end at Пт 2016-02-12 13:15:44 MSK. --
фев 12 12:42:30 ARCANIS-T440 systemd[1]: Starting Automatic wireless network connection using netctl profiles...
фев 12 12:42:30 ARCANIS-T440 netctl-auto[505]: Included profile '273'
фев 12 12:42:30 ARCANIS-T440 netctl-auto[505]: Included profile 'wifi0-437k'
фев 12 12:42:30 ARCANIS-T440 netctl-auto[505]: Included profile 'c47'
фев 12 12:42:30 ARCANIS-T440 netctl-auto[505]: Included profile 'exante'
фев 12 12:42:30 ARCANIS-T440 netctl-auto[505]: Included profile '543'
фев 12 12:42:30 ARCANIS-T440 netctl-auto[505]: Included profile 'arcanis_ideapad'
фев 12 12:42:30 ARCANIS-T440 netctl-auto[505]: Included profile 'arcanis'
фев 12 12:42:30 ARCANIS-T440 netctl-auto[505]: Included profile 'home'
фев 12 12:42:31 ARCANIS-T440 netctl-auto[505]: Failed to initialize control interface '/run/wpa_supplicant'.
фев 12 12:42:31 ARCANIS-T440 netctl-auto[505]: You may have another wpa_supplicant process already running or the file was
фев 12 12:42:31 ARCANIS-T440 netctl-auto[505]: left by an unclean termination of wpa_supplicant in which case you will need
фев 12 12:42:31 ARCANIS-T440 netctl-auto[505]: to manually remove this file before starting wpa_supplicant again.
фев 12 12:42:31 ARCANIS-T440 wpa_actiond[752]: Starting wpa_actiond session for interface 'wifi0'
фев 12 12:42:31 ARCANIS-T440 systemd[1]: Started Automatic wireless network connection using netctl profiles.

After netctl-auto restart the issue has been resolved. If you need any logs and/or additional information just ask for it.

@joukewitteveen
Copy link
Owner

Maybe @gandro can take a look at this?

@gandro
Copy link
Contributor

gandro commented Feb 12, 2016

If you can reproduce it, the output of /bin/bash -x /usr/bin/netctl-auto list would be really helpful.

It's been a while since I worked on this, so I'm not sure what's going on. But I'll give it a closer look later.

@arcan1s
Copy link
Author

arcan1s commented Feb 15, 2016

Thank you for the response, I've looked once more on system stats (e.g. I was confused by several errors in journal) and found that at that moment I had enabled profile (mentioned c47), i.e. netctl-auto@wifi0 and netctl@c47 have been enabled at the same time.

So profile disabling solves the issue. In other hand I'm not sure that it is expected behaviour. Here is output of requested command.

@gandro
Copy link
Contributor

gandro commented Feb 17, 2016

I'm really confused by this. While it is clear the FAIL originates from wpa_cli -i wifi0 get_network 0 id_str, I don't understand how it can fail while all other calls before and after it succeed. I'm also not able to reproduce this on my machine.

Can you try reproduce the bug again and provide me the output of the wpa_cli -i wifi0 get_network 0 id_str command?

@arcan1s
Copy link
Author

arcan1s commented Feb 19, 2016

sure, it prints FAIL (from normal user and from root).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants