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

0.3-1 not working #2

Closed
eson57 opened this Issue Nov 6, 2016 · 18 comments

Comments

Projects
None yet
2 participants
@eson57
Contributor

eson57 commented Nov 6, 2016

0.3-1 not working on any of my Jolla devices (J1, JC). App is stuck on "Loading..." and I can't add trusted network. What can I do to debug?

@theyosh theyosh self-assigned this Nov 6, 2016

@theyosh theyosh closed this in 11a97fc Nov 6, 2016

@theyosh

This comment has been minimized.

Show comment
Hide comment
@theyosh

theyosh Nov 6, 2016

Owner

Thanks for this bug. Forgot to create the home folders where the data is being stored. An update is in the openrepos warehouse.

Owner

theyosh commented Nov 6, 2016

Thanks for this bug. Forgot to create the home folders where the data is being stored. An update is in the openrepos warehouse.

@eson57

This comment has been minimized.

Show comment
Hide comment
@eson57

eson57 Nov 6, 2016

Contributor

Sorry, but the problem is still there. I also tried a complete reinstall.
Can't save trusted network and can't activate KilL3r.

Contributor

eson57 commented Nov 6, 2016

Sorry, but the problem is still there. I also tried a complete reinstall.
Can't save trusted network and can't activate KilL3r.

@theyosh

This comment has been minimized.

Show comment
Hide comment
@theyosh

theyosh Nov 6, 2016

Owner

Ok, then we need to manually figure this out. I hope that you know how to SSH to your phone with user nemo.

  1. Is there a folder at location: /home/nemo/.WiFiKilL3r (hidden folder)
  2. If so, which files are inside?
  3. Are the following files at the following locations: /home/nemo/.local/share/systemd/user/WiFiKilL3r.service and /home/nemo/.local/share/systemd/user/WiFiKilL3r.timer
  4. The pythons script should be located at:
    /usr/share/WiFiKilL3r/qml/python/WiFiKilL3r.py

I am not sure if my systemd setup is standard. Could be that you don't have the folders for systemd

Owner

theyosh commented Nov 6, 2016

Ok, then we need to manually figure this out. I hope that you know how to SSH to your phone with user nemo.

  1. Is there a folder at location: /home/nemo/.WiFiKilL3r (hidden folder)
  2. If so, which files are inside?
  3. Are the following files at the following locations: /home/nemo/.local/share/systemd/user/WiFiKilL3r.service and /home/nemo/.local/share/systemd/user/WiFiKilL3r.timer
  4. The pythons script should be located at:
    /usr/share/WiFiKilL3r/qml/python/WiFiKilL3r.py

I am not sure if my systemd setup is standard. Could be that you don't have the folders for systemd

@eson57

This comment has been minimized.

Show comment
Hide comment
@eson57

eson57 Nov 6, 2016

Contributor
    1. /home/nemo/.WiFiKilL3r is missing
    1. /home/nemo/.local/share/systemd/user/ is there but no WiFiKilL3r.service or WiFiKilL3r.timer
    1. pythons script are present
Contributor

eson57 commented Nov 6, 2016

    1. /home/nemo/.WiFiKilL3r is missing
    1. /home/nemo/.local/share/systemd/user/ is there but no WiFiKilL3r.service or WiFiKilL3r.timer
    1. pythons script are present
@theyosh

This comment has been minimized.

Show comment
Hide comment
@theyosh

theyosh Nov 6, 2016

Owner

Hm, missing the WiFiKilL3r folder is probably a result of a python code issue. I try to determent the nemo user home folder. Could be that is not working somehow.

Could you try the following as root! (devel-su):
edit file /usr/share/WiFiKilL3r/qml/python/WiFiKilL3r.py
and change HOME_FOLDER = os.path.expanduser('~') to HOME_FOLDER = '/home/nemo'

That should also to the trick for the systemd files.

Then just start my app as normal, and see if the .WiFiKilL3r folder is created. And also the systemd files are copied

Owner

theyosh commented Nov 6, 2016

Hm, missing the WiFiKilL3r folder is probably a result of a python code issue. I try to determent the nemo user home folder. Could be that is not working somehow.

Could you try the following as root! (devel-su):
edit file /usr/share/WiFiKilL3r/qml/python/WiFiKilL3r.py
and change HOME_FOLDER = os.path.expanduser('~') to HOME_FOLDER = '/home/nemo'

That should also to the trick for the systemd files.

Then just start my app as normal, and see if the .WiFiKilL3r folder is created. And also the systemd files are copied

@theyosh

This comment has been minimized.

Show comment
Hide comment
@theyosh

theyosh Nov 6, 2016

Owner

Or could it be, that in the /root/ folder is a .WiFiKilL3r folder? Then you are running the apps as root?

Owner

theyosh commented Nov 6, 2016

Or could it be, that in the /root/ folder is a .WiFiKilL3r folder? Then you are running the apps as root?

@eson57

This comment has been minimized.

Show comment
Hide comment
@eson57

eson57 Nov 6, 2016

Contributor

Nope, didn't work. No .WiFiKilL3r, WiFiKilL3r.service or WiFiKilL3r.timer... and no .WiFiKilL3r in root.

Contributor

eson57 commented Nov 6, 2016

Nope, didn't work. No .WiFiKilL3r, WiFiKilL3r.service or WiFiKilL3r.timer... and no .WiFiKilL3r in root.

@eson57

This comment has been minimized.

Show comment
Hide comment
@eson57

eson57 Nov 6, 2016

Contributor

I'm running openVPN but that shouldn't affect should it? I noticed openvpn.service in systemd.
I did try to disable vpn with no change.

Contributor

eson57 commented Nov 6, 2016

I'm running openVPN but that shouldn't affect should it? I noticed openvpn.service in systemd.
I did try to disable vpn with no change.

@theyosh

This comment has been minimized.

Show comment
Hide comment
@theyosh

theyosh Nov 6, 2016

Owner

Ok, this will be harder to fix then expected. Last thing I can think of is running manually, but that will shutdown your wifi, because you don't have valid networks yet.

Try as nemo user:
python3 /usr/share/WiFiKilL3r/qml/python/WiFiKilL3r.py -d 1 -a run_check
It should at least produce some output

Owner

theyosh commented Nov 6, 2016

Ok, this will be harder to fix then expected. Last thing I can think of is running manually, but that will shutdown your wifi, because you don't have valid networks yet.

Try as nemo user:
python3 /usr/share/WiFiKilL3r/qml/python/WiFiKilL3r.py -d 1 -a run_check
It should at least produce some output

@eson57

This comment has been minimized.

Show comment
Hide comment
@eson57

eson57 Nov 6, 2016

Contributor
[root@Sailfish nemo]# python3 /usr/share/WiFiKilL3r/qml/python/WiFiKilL3r.py -d 1 -a run_check
Traceback (most recent call last):
  File "/usr/share/WiFiKilL3r/qml/python/WiFiKilL3r.py", line 3, in <module>
    import dbus
ImportError: No module named 'dbus'

Seems something is missing...

Contributor

eson57 commented Nov 6, 2016

[root@Sailfish nemo]# python3 /usr/share/WiFiKilL3r/qml/python/WiFiKilL3r.py -d 1 -a run_check
Traceback (most recent call last):
  File "/usr/share/WiFiKilL3r/qml/python/WiFiKilL3r.py", line 3, in <module>
    import dbus
ImportError: No module named 'dbus'

Seems something is missing...

@eson57

This comment has been minimized.

Show comment
Hide comment
@eson57

eson57 Nov 6, 2016

Contributor

Sorry, I was running as root, but running as user gave the same output.

Contributor

eson57 commented Nov 6, 2016

Sorry, I was running as root, but running as user gave the same output.

@theyosh

This comment has been minimized.

Show comment
Hide comment
@theyosh

theyosh Nov 6, 2016

Owner

Ok, uploaded a new package to openrepos. It is missing a dependency. I hope that with the new version 3-3 this dependency will be installed (dbus-python3)

Owner

theyosh commented Nov 6, 2016

Ok, uploaded a new package to openrepos. It is missing a dependency. I hope that with the new version 3-3 this dependency will be installed (dbus-python3)

@eson57

This comment has been minimized.

Show comment
Hide comment
@eson57

eson57 Nov 6, 2016

Contributor

dbus-python3 seems to be missing in repo.

skarmbild_20161106_002

Contributor

eson57 commented Nov 6, 2016

dbus-python3 seems to be missing in repo.

skarmbild_20161106_002

@theyosh

This comment has been minimized.

Show comment
Hide comment
@theyosh

theyosh Nov 6, 2016

Owner

hmm, this is strange. Because it is known. Could be that the packages are outdated? Not sure how that happens, but try:

pkcon refresh as nemo or zypper refresh as root

Else I have to try to make it working on Python 2, but thought that Python 3 was/is default on Jolla

Owner

theyosh commented Nov 6, 2016

hmm, this is strange. Because it is known. Could be that the packages are outdated? Not sure how that happens, but try:

pkcon refresh as nemo or zypper refresh as root

Else I have to try to make it working on Python 2, but thought that Python 3 was/is default on Jolla

@eson57

This comment has been minimized.

Show comment
Hide comment
@eson57

eson57 Nov 6, 2016

Contributor

Great! After clean reinstall, it is finally working. Thanks! 👍

Contributor

eson57 commented Nov 6, 2016

Great! After clean reinstall, it is finally working. Thanks! 👍

@theyosh

This comment has been minimized.

Show comment
Hide comment
@theyosh

theyosh Nov 6, 2016

Owner

hmm, so how to fix the outdated packages.....?

Owner

theyosh commented Nov 6, 2016

hmm, so how to fix the outdated packages.....?

@theyosh

This comment has been minimized.

Show comment
Hide comment
@theyosh

theyosh Nov 6, 2016

Owner

But cool that it is working. And it should be in Swedish also now

Owner

theyosh commented Nov 6, 2016

But cool that it is working. And it should be in Swedish also now

@eson57

This comment has been minimized.

Show comment
Hide comment
@eson57

eson57 Nov 6, 2016

Contributor

Yes, Swedish is working fine, and looking good. :)

Contributor

eson57 commented Nov 6, 2016

Yes, Swedish is working fine, and looking good. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment