reactive-firewall / Pocket-PiAP

For Securing WiFi on the go
Other
2 stars 1 forks source link

ACL issue on older upgrades causes lockout by 406 error #98

Closed reactive-firewall closed 4 years ago

reactive-firewall commented 6 years ago

Basic Info

When reporting an issue, please list the version of Pocket you are using and any relevant information about your software environment: Version: Pocket v0.3.5 env: multiple

  • OS type uname -a
  • [x] linux
  • [x] Mac OS X (darwin)
  • piaplib version: sudo -u pocket-admin python3 -m piaplib.book.version --verbose --all output
    
    piaplib: 0.3.5
    Python: 3.4.2 (default, Oct 19 2014, 13:31:11) 
    [GCC 4.9.1]
    sys.flags(debug=0, inspect=0, interactive=0, optimize=0, dont_write_bytecode=0, no_user_site=0, no_site=0, ignore_environment=0, verbose=0, bytes_warning=0, quiet=0, hash_randomization=1, isolated=0)
    Copyright (c) 2001-2014 Python Software Foundation.
    All Rights Reserved.

Copyright (c) 2000 BeOpen.com. All Rights Reserved.

Copyright (c) 1995-2001 Corporation for National Research Initiatives. All Rights Reserved.

Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam. All Rights Reserved. Backend Python Library: /usr/bin/python3 Platform: linux


## Steps to Reproduce Issue:

>> Avoid vague language like "it doesn't work." Please describe as specifically as you can what behavior you are actually seeing (eg: an error message? a nil return value?).
1. run upgrade script as per https://github.com/reactive-firewall/Pocket-PiAP/wiki/Upgrading-Manually-while-in-Beta
2. reboot via `sudo shutdown -hr now`
3. wait for reboot and network to come back up
4. attempt to login to web UI via `https://pocket.piaplib.local` with valid user (previously working user)
5. get 406 error

## Logs (If Available):
>> Please attach any logs from Pocket-PiAP relevant to the bug.
**REDACTED**

## Additional Information:
>> Anything else relevant to this issue.
cause of this issue is a permissions issue on the backend
workaround:
```bash
sudo find /usr/local/lib/python3.4/dist-packages/ -type d -print0 2>/dev/null | xargs -0 -L 1 -I{} sudo chmod -v 755 {}
sudo find /usr/local/lib/python*/dist-packages/ -type f -iname "*.py" -print0 2>/dev/null | xargs -0 -L 1 -I{} sudo chmod -v 755 {}
# test
sudo -u pocket python3 -m piaplib.pocket keyring saltify --msg test -S test | grep -F "9ba1f63365a6caf66e46348f43cdef956015bea997adeb06e69007ee3ff517df10fc5eb860da3d43b82c2a040c931119d2dfc6d08e253742293a868cc2d82015" || echo "FAILED"