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
DietPi-Config | WiFi support for keys containing `"$ #2087
Comments
@sesshomaru86 Hi, thanks for the report 👍 I'll try to replicate. |
Confirmed bug with current image, redoing the image now (seems I missed this one in the update image ticket) |
@sesshomaru86 Image updated which resolves WiFi issues, please re-download and write the following image: NB: WiFi automation has changed in v6.16 images, please see below for info: |
Hmm..when i go to dietpi-config to change the network adapter settings im getting a message : [FAILED] DietPi-Config | DEBUG: /var/lib/dietpi/dietpi-wifi.db does not exist, unable to continue. If you did not manually remove this file, please report this issue to DietPi. It's a fresh install with the new image posted above without tinkering anything at all. |
@sesshomaru86 Thanks for the report. I'll get that resolved and update the image. EDIT:
Then re-run |
+ - DietPi-Config | If '/var/lib/dietpi/dietpi-wifi.db' has not been created yet, it will be generated automatically to allow for WiFi array init: https://github.com/Fourdee/DietPi/issues/2087#issuecomment-423836528
@sesshomaru86 Image updated which applies the fix automatically for this issue: Image: Completed. |
[ SUB2 ] DietPi-Services > stop Listening on LPF/eth0/(mac adress) Still it doesnt give me an ip the wifi . The new image was flashed with 0 modifications . Tried from an ethernet connection to enable the wifi and one more time with puting in the txt file name and password of the ssid. |
@sesshomaru86
Ok appears to be an issue with bringing up adapter, is the onboard WiFi the only connected WiFi adapter? Ideally, we need to check the system configuration at this state when the WiFi fails. Please can you ensure ethernet is connected, get the WiFi to fail as above, then send me a new bug report:
I can then check the logs etc, see where the issue is. |
Thanx for the reply ! In the raspberry pi 3 there's no adapter or anything else connected. Only the ethernet cable. I just download a new image from the site to be sure im not messing with the images reflash it test it again as new without any modifications. same problem. Bug report sent, reference code: 155689e2-5ada-4461-8d04-051cbfc8a627 |
+ Add WiFi details to bug report: https://github.com/Fourdee/DietPi/issues/2087#issuecomment-423978085
@sesshomaru86 Thanks 👍 Appears the WiFi chip is working fine:
Ok I believe the issue may be with the WiFi creds. I'll need to see these. I've updated the bugreport script to include them, please run the following commands to resend bug report:
Also, please can you confirm which WiFi encryption mode is setup on your router (eg: WPA-PSK)? |
Tried again and this time when i pressed scan doesnt do anything so i put my credentials again manually. I use a Unifi AP AC LR as acess point and the encryption is WPA2 -AES . Can it be that the wifi password includes these type of characters [ ` ? Tried with the above command dietpi-bugreport [ INFO ] DietPi-Bugreport | Packing upload archive, please wait... |
Tried just now with a hotspot from my phone and it works so it must be a problem with my router or my password. I'm sorry i didn't tested before. The selection of the network / Scan automatically is bugged and doesnt work anymore. |
@sesshomaru86
Yep, I believe is the issue, try escaping the single quote character when adding in the key: |
It worked ! Thanx a lot ! |
@sesshomaru86 Excellent 👍 i'll add some more info when entering WiFi keys, to mention backslash required for those chars. |
Testing with key:
Ok, its due to init array from file.
|
|
🈯️ With 3 backslashes for 1 being the magic item, when sourcing a file into a variable.
Users will still need to add the escapes manually, but after saving file and re-sourcing, its resolved. wpa_supplicant.conf needs testing.
|
Ok testing:
|
+ Backslash fix for dietpi-wifi.db: https://github.com/Fourdee/DietPi/issues/2087#issuecomment-425257019
@Fourdee However my suggestions:
|
+ Optimize WiFi DB code into 1 function: https://github.com/Fourdee/DietPi/issues/2087#issuecomment-425578607
**v6.17** (25/10/18) **Changes / Improvements / Optimisations:** - General | NanoPC T4: Image updated to include lastest kernel (4.4.154). Many thanks to @carlosedp for providing this kernel! https://github.com/Fourdee/DietPi/issues/1829#issuecomment-429324437 - General | DietPi now has 3 branches (master=stable, beta=public testing, dev=dev). By default, all users are on master/stable branch: https://github.com/Fourdee/DietPi/issues/2083#issuecomment-426842537 - General | Improved detection of permissions support during user data transfers: https://github.com/Fourdee/DietPi/issues/2096 - General | IPv6: Due to the requirements of various software titles available in dietpi-software (eg: nginx, redis-server), and that IPv6 is slowly becoming more common place, IPv6 is now disabled via sysctl on interface level, while it stays enabled on kernel level: https://github.com/Fourdee/DietPi/issues/2027 - DietPi-Autostart | Chromium: You will now be prompted to enter a homepage URL, which will be loaded when the application starts: https://github.com/Fourdee/DietPi/issues/2169#issuecomment-432297343 - DietPi-Config | RPi: Added support for LCD panel "Elecrow ESP01215E 7 inch HDMI IPS with touch input" (basically a cheaper RPi touchscreen): https://www.amazon.co.uk/gp/product/B07H79XMLT/ref=oh_aui_detailpage_o01_s00?ie=UTF8&psc=1 - DietPi-Config | Added ability to benchmark network LAN transfer rates using 2 DietPi systems. - DietPi-Config | RPi: Changing the display resolution, will also apply to Chromium under kiosk/autostart mode: https://github.com/Fourdee/DietPi/issues/2158 - DietPi-Config | Added an option to toggle preferring IPv4 connections with APT and wget, if IPv6 is enabled. This enhances compatibility and performance in some cases. - DietPi-Config | Online Benchmarks Database! Now available. Simply run the benchmark from the tools menu, to upload your scores and compare against others: https://dietpi.com/survey - DietPi-Automation | Added settings to dietpi.txt to toggle IPv6 and IPv4 preference on first boot. - DietPi-Update | You now have the option to view the changelog, prior to updating: https://github.com/Fourdee/DietPi/issues/2081 - DietPi-Software | Sabnzbd: Updated to 2.3.5 for new installations only. Now runs under its own limited user account, and, umask of 0775 for downloads: https://github.com/Fourdee/DietPi/issues/2172 - DietPi-Software | Card/CalDAV request redirection was added to new Baikal, ownCloud and Nextcloud installs. Now only the servers domain/IP need to be entered on Card/CalDAV clients, without any further path to the DAV endpoints: https://github.com/Fourdee/DietPi/issues/2057 - DietPi-Software | Plex Media Server and Transmission services run now as group "dietpi", to allow cross access with download managers and media software: https://github.com/Fourdee/DietPi/issues/2067#issuecomment-427579779 - DietPi-Set_Hardware | Odroid C2: When selecting USB DAC, smp affinity will be applied for USB IRQ's to improve stability: https://github.com/Fourdee/DietPi/issues/2101 - DietPi-Drive_Manager | Formatting: Now has the option to format the whole drive, or patition only, for drives with existing partitions. - DietPi-Drive_Manager | Mounting NTFS drives now enabled native linux permissions support (eg: you can use this as your userdata location). Many thanks to @Random90 for making this possible! https://github.com/Fourdee/DietPi/issues/2096#issuecomment-425553333 - DietPi-Drive_Manager | Improved detection and formatting for NVMe based drives: https://github.com/Fourdee/DietPi/issues/2102 - DietPi-Drive_Manager | Removed /proc from fstab. No longer required as this created at kernel/systemd level: https://github.com/Fourdee/DietPi/issues/2154 **Bug Fixes:** - General | G_THREAD_START: Resolved issue where this was running in blocking mode. Now uses exit code to indentify finished tasks instead of PID. - DietPi-Cloudshell | Resolved various issues with inability to run service via SSH on another screen, and, G_DIETPI-NOTIFY errors. Many thanks to @potter-91 for reporting this issue! https://github.com/Fourdee/DietPi/issues/2104 - DietPi-Config | WiFi-Monitor: Resolved an issue with syntax, and, incorrectly pinging the default gateway, instead of whats assigned to the wlan interface: https://github.com/Fourdee/DietPi/issues/2103 - DietPi-Config | dietpi-wifi.db code has been optimized, and, also resolves an issue where '/var/lib/dietpi/dietpi-wifi.db' was not generated automatically: https://github.com/Fourdee/DietPi/issues/2087#issuecomment-423836528 - DietPi-Config | Waveshare32b: Resolved inverted inputs under X11/Xorg: https://github.com/Fourdee/DietPi/issues/803 - DietPi-Config | PineA64: HDMI sound is now correctly enabled when selected. 3.5mm support is still under investigation: https://github.com/Fourdee/DietPi/issues/2153 - DietPi-Drive_Manager | Resolved an issue where swapfile would register as enabled when set to 0 size: https://github.com/Fourdee/DietPi/issues/2127 - DietPi-Survey | Resolved an issue where dietpi-survey under mode 1 would not generate the survey file. - DietPi-Software | MPD: Now runs under the group 'dietpi' and user 'root', allowing access to music directories when contained on samba networked drives: https://github.com/Fourdee/DietPi/issues/2092 - DietPi-Software | Fixed an issue where software uninstalls could have failed due to dependant packages. Thanks to @dynobot for reporting this issue: https://github.com/Fourdee/DietPi/issues/2091 - DietPi-Software | Webservers/PHP: Fixed an issue, where PHP was not installed when a webserver was installed directly via "dietpi-software install 8X". - DietPi-Software | Nextcloud: On Jessie systems, no newer version than latest NC13 will be installed, because PHP5 support was dropped with NC14: https://github.com/Fourdee/DietPi/issues/1778#issuecomment-419918372 - DietPi-Software | MyMPD: Resolved an issue where the service would fail to run: https://github.com/Fourdee/DietPi/issues/2088 - DietPi-Software | MyMPD: Resolved an issue where the installation would fail, due to a recent MyMPD update with new pre-reqs: https://github.com/Fourdee/DietPi/issues/2088#issuecomment-423852124 - DietPi-Software | SiCKRAGE: Resolved failing install due to changed capitalization of SiCKRAGE GitHub repo, and, various additional pre-reqs due to new install method required by SiCKRAGE. Thanks to @mdoary for reporting this issue: https://github.com/Fourdee/DietPi/issues/2126 - DietPi-Software | VNC Server: Resolved an issue where VNC server would fail to start under shared desktop mode, many thanks to @LieDanG for reporting this issue: https://github.com/Fourdee/DietPi/issues/2142#issuecomment-430492281 - DietPi-Process_tool | Resolved an issue where applying process settings on Plex Media Server failed, thanks to @symbios24 for reporting this issue: https://github.com/Fourdee/DietPi/issues/2089 - General | Sparky SBC: Resolved an issue where 'sparky_eth_controller.sh' could incorrectly reboot the device after 20 seconds. - General | Resolved an issue with Rock64 being unable to run xserver. Please note this device still runs under limited software rendering due to lack of available working drivers/installation method for Debian systems: https://github.com/Fourdee/DietPi/issues/2086 - General | Resolved an issue with Jessie failing to start networking with preboot script: https://github.com/Fourdee/DietPi/issues/2075 **Allo GUI v11:** - Minor update to add GUI support for new DietPi version codes. As always, many smaller code performance and stability improvements, visual and spelling fixes have been done, too much to list all of them here. **Known/Outstanding Core Issues:** - O!MPD and MyMPD fail to update libaries. YMPD is fine: https://github.com/Fourdee/DietPi/issues/2156 - Kodi shutdown options missing: https://github.com/Fourdee/DietPi/issues/2155 - DietPi-Config | RPi | OpenGL/VC4 causes soundcard selection to be invalid: https://github.com/Fourdee/DietPi/issues/2173 - PineA64: No sound over 3.5mm jack: https://github.com/Fourdee/DietPi/issues/2153 - For all additional issues that may appear after release, please see the following link and select the 'Next Version Milestone' to see active tickets: https://github.com/Fourdee/DietPi/milestones
Did further enhancements about this: https://github.com/Fourdee/DietPi/pull/2193
|
Test:
Legend, works a charm 👍 |
I am so confused about how to put the correct wifi key.. why should we need to type so weird character ? if my wifikey is "wakanda" how should i type ? |
@panjisn If your password contains one of $ ` " \ , then on current v6.17 your need to escape those via backslashes, e.g. " With v6.18 we changed the way the pw string is stored (from double quotes " to single quotes '), which allows more special characters, and do the remaining escaping script internally. So no manual escaping is required any more. |
We can actually mark this as completed. Testing passed, no need to escape chars in v6.18. |
When I'm upgrading from 6.14 to 6.16 the wifi adapter stopped working .I can't scan for a network through the GUI and even after i manually insert the wireless SSID and PASSWORD stil doesnt resolve it and it gives me no ip ( 0.0.0.0.). If i put a static one doesn't seem to work too.
I tried 2 more times (clean install) from the image with wifi preconfigured in the dietpi.txt as also with ethernet. Worked everything in the clean install of the 6.14 but after the initial update to the 6.16 the wifi adapter breaks. Ethernet still working without a problem. Is there a method to remain to the 6.14 as i need to use the raspi wirelessly. I tried putting CONFIG_CHECK_DIETPI_UPDATES=0 but it still update my initial 6.14 version. Should i try put a fake adress on the APT mirrors ?Also can i try to put on DEV_GITBRANCH=testing on the dietpi.txt to see if the problem is resoved on the 6.17 ? Thanx for your constant work and help !
DietPi version 6.16
Distro version Stretch 9.4
Kernel version Linux DietPi 4.14.70-v7+ Temporary directory /var/tmp/php_upload_tmp is not present or writable #1144 SMP Tue Sep 18 17:34:46 BST 2018 armv7l GNU/Linux
SBC device RPi 3 Model B (armv7l)
Power supply used 5V 2.5A
SDcard used Sansidk ultra 16gb class 10 a1
Additional Information (if applicable):
dietpi-bugreport
ID 19f71c42-ac59-462a-85ff-27e8fab4d517Steps to reproduce:
downlaod image from dietpi site flash it on the sd and then install normally
Expected behaviour:
Wireless should work
Actual behaviour:
it doesn't
The text was updated successfully, but these errors were encountered: