Whistle Master Posted August 10, 2014 Author Share Posted August 10, 2014 (edited) Well, right-click on the link and "Save as" will do the trick but I will issue a 1.2 version in a few minutes with a fix (leveraging HTML5 force download attribute). v1.2 is out with fix ! Download for the pineapplestats.tar when clicked on opens the tar ball up showing jibberish i think you might have left out target="_blank"> in the code for that download or something else is up. I'll have to do a video showing people how to download it from WinSCP till you fix this. Edited August 10, 2014 by Whistle Master Quote Link to comment Share on other sites More sharing options...
ZaraByte Posted August 10, 2014 Share Posted August 10, 2014 (edited) EDIT #1: Downloaded the 1.2 still having a problem with this ip.php file not found error the ip.php is on the server any needed permissions for this file or what? i put in the URL/ip.php still says missing ip.php If you need to make a folder called pineapplestats and have the files in that folder or will it work without having the files in pineapplestats. i'll try moving the files into pineapplestats and see if maybe that fixes it. ------- I haven't tried the new release but i wanted to mention im having a problem when i click Test it says file ip.php not found however the pineapple is connected to the internet and i can access the ip.php from other computers however the infusion said its not found. i put in the url i have setup but it says ip.php not found. Edited August 10, 2014 by ZaraByte Quote Link to comment Share on other sites More sharing options...
Whistle Master Posted August 10, 2014 Author Share Posted August 10, 2014 You have to save first the configuration and then test it. Quote Link to comment Share on other sites More sharing options...
ZaraByte Posted August 10, 2014 Share Posted August 10, 2014 Well i just bugged my pineapple again with this infusion some something i did under the pineapplestats infusion section is making my pineapple reboot loop guess im have to factory flash it yet again. Quote Link to comment Share on other sites More sharing options...
Whistle Master Posted August 11, 2014 Author Share Posted August 11, 2014 In the configuration section, disable "Check internet connectivity". If the pineapple does not have internet connection, it will reboot. This is an option to be activated when used with 3G connection: very useful if you plan to leave the pineapple somewhere remotely and can't access it anymore due to internet connectivity issues. It will reboot automatically. Quote Link to comment Share on other sites More sharing options...
m40295 Posted August 11, 2014 Share Posted August 11, 2014 (edited) zara check the begenning of this thread we figured it out , i belive the ip.php issue was permissions Edited August 11, 2014 by m40295 Quote Link to comment Share on other sites More sharing options...
ZaraByte Posted August 11, 2014 Share Posted August 11, 2014 Na can't be a permission issue i've tried making the folder pineapplestats folder to chmod 777 -R /var/www/html/ changes all the permissions on all the files tried the Test still says ip.php not found. Site works fine just can't Test keeps saying ip.php not found Even tried just setting chmod 777 ip.php that didn't work. Quote Link to comment Share on other sites More sharing options...
m40295 Posted August 12, 2014 Share Posted August 12, 2014 my pi worked for found ip.php but mysql I couldn't get working my laptop webserver couldn't find the ip.php. I feel ya its been a fun challenge hence the other thread. I will keep trying. its got to be server permissions. allowing access from www.blabla.bla to server Quote Link to comment Share on other sites More sharing options...
ZaraByte Posted August 12, 2014 Share Posted August 12, 2014 (edited) I have connectivity check Unchecked im facing these problems now.... No Reboots with These Settings:AutoReboot InstalledDaemon not set on StartAutostart not EnabledReboots with These Settings:Watchdog InstalledDaemon not set on StartAutostart not EnabledLoop Reboot with These Settings:Watchdog InstalledDaemon set on StartAutostart EnabledWith justDaemon set on StartAutostart Enabled I got SQL and the site setup my only fear is bad code in the pineapplestats might lead to the site getting hacked if not careful http://www.matthewhknight.com/pineapplestats shows the site is working fine. Edited August 12, 2014 by ZaraByte Quote Link to comment Share on other sites More sharing options...
Whistle Master Posted August 12, 2014 Author Share Posted August 12, 2014 (edited) Well...bad code... I've put a lot of effort to make sure security requirements for the dashboard were met: protection against bruteforce, sha512 password hashed in db, password hash transmission only in form, httponly cookie, sql injection protection, user input sanitised, and so on ! Up to you to put a strong password then for the authentication. You can also add http auth in top of that. Now, that said, if you don't want to use it, up to you Don't forget that we are all doing that during our free time for free... I got SQL and the site setup my only fear is bad code in the pineapplestats might lead to the site getting hacked if not careful http://www.matthewhknight.com/pineapplestats shows the site is working fine. Edited August 12, 2014 by Whistle Master Quote Link to comment Share on other sites More sharing options...
ZaraByte Posted August 12, 2014 Share Posted August 12, 2014 And no comment on... No Reboots with These Settings:AutoReboot InstalledDaemon not set on StartAutostart not EnabledReboots with These Settings:Watchdog InstalledDaemon not set on StartAutostart not EnabledLoop Reboot with These Settings:Watchdog InstalledDaemon set on StartAutostart EnabledWith justDaemon set on StartAutostart Enabled I'm, only trying to get them working to try and save you and everyone else the hassle of setting it up. I guess i can just skip this infusion then i only thought i'd get some help with my problems so i can help address others out. I can't fix something i didn't make if its bugs in your code i can't fix them all i know is i've tested them settings even on the factory firmware and the same thing happens. Moving on to the next infusion i'll come back to this one another time. Quote Link to comment Share on other sites More sharing options...
Whistle Master Posted August 13, 2014 Author Share Posted August 13, 2014 (edited) Could you please send me the log from the infusion ? There is also the AutoReboot feature, which installs a cron with the defined frequency in the configuration. If you don't want AutoReboot, do not install the cron. Just try to install the watchdog and start the daemon only. Then send me the log. Edited August 13, 2014 by Whistle Master Quote Link to comment Share on other sites More sharing options...
ZaraByte Posted August 13, 2014 Share Posted August 13, 2014 (edited) Could you please send me the log from the infusion ? There is also the AutoReboot feature, which installs a cron with the defined frequency in the configuration. If you don't want AutoReboot, do not install the cron. Just try to install the watchdog and start the daemon only. Then send me the log. EDIT: Either i have a bad RJ57 port on my MK5 or this infusion causes a boot loop when connected over Ethernet. Can Anyone confirm if they have the same problem connect your pc to the MK5 download the infusion and try to enable the settings i have in the picture below and tell me if your pineapple gos into a boot loop or now mine keeps going into a boot loop being connected over Ethernet with Ethernet not connected this infusion works fine no problems. So either my Ethernet port is bugged on my MK5 or something with the Ethernet makes this infusion go into a reboot loop cycle. Try Connecting a Ethernet Cable to Your PC/Laptop and to the Pineapple using these settings and tell me if you go into a reboot loop after a few seconds being connected over Ethernet. Infusion works fine! Btw just not with me being connected over Ethernet. I got it working finally but it appears when i go to my website and check the stats the pineapple shuts off the Wireless so the pineapple is no longer showing up as a network to connect to. By the way i think their might be a bug with using Ethernet when using this infusion i managed to get everything working doing this over WiFi my problem now if the Pineapple stops showing up as an AP for devices to connect. I will edit this post with the log if i can locate it i always have to unplug my desktop from the router and connect it to the wifi pineapple to access the pineapple since all my tools i use are on that desktop long process. Edited August 13, 2014 by ZaraByte Quote Link to comment Share on other sites More sharing options...
Whistle Master Posted August 13, 2014 Author Share Posted August 13, 2014 (edited) Yes, that's right, the pineapple do not show anymore the SSID as I have to put the interface in monitor mode to "sniff" around, which disable the SSID broadcast. Log is in the main text area. I made a quick tuto in the first post of the thread. Edited August 13, 2014 by Whistle Master Quote Link to comment Share on other sites More sharing options...
ZaraByte Posted August 13, 2014 Share Posted August 13, 2014 Uhhh! then the only way to access the pineapple is over Ethernet which makes the pineapple go into reboot loop at least for me it does not sure if its a bug with the infusion or if i have a bad RJ57 port on my MK5 Quote Link to comment Share on other sites More sharing options...
Whistle Master Posted August 14, 2014 Author Share Posted August 14, 2014 No the infusion is using wlan0 to "sniff" around, but you can use wlan1 to connect to an other AP, and then access the pineapple UI. This is how I'm using it. I will make some test with the ethernet and keep you posted. Quote Link to comment Share on other sites More sharing options...
ZaraByte Posted August 14, 2014 Share Posted August 14, 2014 Well I pretty much got it covered then if all i gotta do is use wlan1 for internet i'll try using wlan1 for the AP then just needs you need an extra wireless card to give internet then! I gotta wait on hak5 to ship that new Wireless Adapter will none of my current adapters seem to work with the MK5 due to i guess power issue or something. Quote Link to comment Share on other sites More sharing options...
BeNe Posted September 28, 2014 Share Posted September 28, 2014 (edited) I installed the infusion on my webserver and found a bug. If you use a Password with an "$" in it - it will be used as a variable and the user creating / login does not work. Notice: Undefined variable: XNvb22x in /var/www/virtual/mydomain.tld/htdocs/pineapplestats/includes/db_connect.php(6) : eval()'d code on line 12 Warning: mysqli::mysqli(): (HY000/1045): Access denied for user '77_pineapplestat'@'localhost' (using password: YES) in /var/www/virtual/mydomain.tld/htdocs/pineapplestats/includes/db_connect.php on line 13 The password was "F1$XNvb22x". The part behind the "$" was the undefined variable Edited September 28, 2014 by BeNe Quote Link to comment Share on other sites More sharing options...
Whistle Master Posted September 28, 2014 Author Share Posted September 28, 2014 (edited) Thanks for the report. I will correct it in the next version. Can you send me by PM the content of your pineapplestats.cfg (in the includes folder) ? Edited September 28, 2014 by Whistle Master Quote Link to comment Share on other sites More sharing options...
BeNe Posted January 10, 2015 Share Posted January 10, 2015 (edited) Hi, i installed the Pineapple Stats 1.3 under Firmware 2.1.1. Directly after starting the daemon the pineapple reboots. Is there a way to debug this problem for me ? Thanks! //EDIT Here is the UART output/debug. [ 226.670000] br-lan: port 2(wlan0) entered disabled state [ 226.720000] br-lan: port 2(wlan0) entered forwarding state [ 226.720000] br-lan: port 2(wlan0) entered forwarding state [ 226.780000] skb_under_panic: text:80259a30 len:310 put:14 head:83b24c00 data: 83b24bf2 tail:0x83b24d28 end:0x83b24d40 dev:wlan0-1 [ 226.790000] Kernel bug detected[#1]: [ 226.790000] Cpu 0 [ 226.790000] $ 0 : 00000000 80310000 0000008a 00000001 [ 226.790000] $ 4 : 00000001 802caba4 ffffffff 8019e45c [ 226.790000] $ 8 : 00000020 00000001 00000001 00000000 [ 226.790000] $12 : 00000000 00000000 802800b0 00000000 [ 226.790000] $16 : 831d1240 83b24c00 00000000 82cb8380 [ 226.790000] $20 : 82c10d00 83933b10 802c0b28 83bd5d54 [ 226.790000] $24 : 00000000 80259ae0 [ 226.790000] $28 : 83932000 839339f0 00000000 801e1218 [ 226.790000] Hi : 00000000 [ 226.790000] Lo : b61f0000 [ 226.790000] epc : 801e1218 0x801e1218 [ 226.790000] Tainted: G O [ 226.790000] ra : 801e1218 0x801e1218 [ 226.790000] Status: 1000dc03 KERNEL EXL IE [ 226.790000] Cause : 10800024 [ 226.790000] PrId : 00019374 (MIPS 24Kc) [ 226.790000] Modules linked in: spidev spi_gpio pl2303 option sg rndis_host us b_wwan cdc_ether asix usbserial usbnet cdc_acm ath9k_htc(O) ath79_wdt ledtrig_us bdev ledtrig_netdev nf_nat_irc nf_conntrack_irc nf_nat_ftp nf_conntrack_ftp xt_H L xt_hl xt_ecn ipt_ECN xt_CLASSIFY xt_time xt_tcpmss xt_statistic xt_mark xt_len gth xt_DSCP xt_dscp ipt_REDIRECT ipt_NETMAP ipt_MASQUERADE iptable_nat nf_nat pp poe xt_conntrack xt_CT xt_NOTRACK iptable_raw xt_state nf_conntrack_ipv4 nf_defr ag_ipv4 nf_conntrack pppox ipt_REJECT xt_TCPMSS ipt_LOG xt_comment xt_multiport xt_mac xt_limit iptable_mangle iptable_filter ip_tables xt_tcpudp x_tables nfs t un rt2800usb(O) ppp_async ppp_generic slhc lockd sunrpc button_hotplug(O) rtl818 7(O) ath9k(O) rtl8180(O) rt73usb(O) rt2800lib(O) ath9k_common(O) ath9k_hw(O) rt2 x00usb(O) ath(O) nls_utf8 rt2x00lib(O) mac80211(O) crc_itu_t crc_ccitt input_pol ldev eeprom_93cx6 cfg80211(O) compat(O) input_core arc4 aes_generic crypto_blkci pher cryptomgr aead usb_storage uhci_hcd ohci_hcd ehci_hcd sd_mod ext4 jbd2 mbca che usbcore usb_common scsi_mod nls_base crc16 crypto_hash crypto_algapi ledtrig _timer ledtrig_default_on leds_gpio gpio_button_hotplug(O) [ 226.790000] Process kworker/0:1 (pid: 232, threadinfo=83932000, task=839110a0 , tls=00000000) [ 226.790000] Stack : 00000000 80259a30 00000136 0000000e 83b24c00 83b24bf2 83b 24d28 83b24d40 [ 226.790000] 8334e000 82e61440 831d1240 80259a30 00000000 82cb8380 831 d1240 831d1240 [ 226.790000] 831d1240 80259d7c 00000000 83872010 831d1240 83b24c00 000 00001 82cb8380 [ 226.790000] 82c10d00 8025a9c8 00000002 802ccfd8 00000001 00000001 000 00080 80330000 [ 226.790000] 8028f0ac 800a41c0 831d1240 8334c000 82c10d00 83b24c00 833 4c000 8025ad80 [ 226.790000] ... [ 226.790000] Call Trace:[<80259a30>] 0x80259a30 [ 226.790000] [<80259a30>] 0x80259a30 [ 226.790000] [<80259d7c>] 0x80259d7c [ 226.790000] [<8025a9c8>] 0x8025a9c8 [ 226.790000] [<800a41c0>] 0x800a41c0 [ 226.790000] [<8025ad80>] 0x8025ad80 [ 226.790000] [<8026f93c>] 0x8026f93c [ 226.790000] [<8025aac0>] 0x8025aac0 [ 226.790000] [<802e0000>] 0x802e0000 [ 226.790000] [<801e8078>] 0x801e8078 [ 226.790000] [<801e15c8>] 0x801e15c8 [ 226.790000] [<8319f6b8>] 0x8319f6b8 [ 226.790000] [<831c2a2c>] 0x831c2a2c [ 226.790000] [<801e04d8>] 0x801e04d8 [ 226.790000] [<831670f4>] 0x831670f4 [ 226.790000] [<800928a4>] 0x800928a4 [ 226.790000] [<83160680>] 0x83160680 [ 226.790000] [<831643c0>] 0x831643c0 [ 226.790000] [<80076b70>] 0x80076b70 [ 226.790000] [<80094e08>] 0x80094e08 [ 226.790000] [<80077094>] 0x80077094 [ 226.790000] [<801c0c98>] 0x801c0c98 [ 226.790000] [<801c0c98>] 0x801c0c98 [ 226.790000] [<800772a0>] 0x800772a0 [ 226.790000] [<800774d4>] 0x800774d4 [ 226.790000] [<80091b98>] 0x80091b98 [ 226.790000] [<800928a4>] 0x800928a4 [ 226.790000] [<8006316c>] 0x8006316c [ 226.790000] [<801c0c98>] 0x801c0c98 [ 226.790000] [<801d145c>] 0x801d145c [ 226.790000] [<801d18f0>] 0x801d18f0 [ 226.790000] [<801d18fc>] 0x801d18fc [ 226.790000] [<801d20d0>] 0x801d20d0 [ 226.790000] [<801d14bc>] 0x801d14bc [ 226.790000] [<801d14bc>] 0x801d14bc [ 226.790000] [<801f1c3c>] 0x801f1c3c [ 226.790000] [<801c2444>] 0x801c2444 [ 226.790000] [<801c1db8>] 0x801c1db8 [ 226.790000] [<801c1e74>] 0x801c1e74 [ 226.790000] [<80094648>] 0x80094648 [ 226.790000] [<801c0e78>] 0x801c0e78 [ 226.790000] [<80094804>] 0x80094804 [ 226.790000] [<80092214>] 0x80092214 [ 226.790000] [<80085ee0>] 0x80085ee0 [ 226.790000] [<80095144>] 0x80095144 [ 226.790000] [<80086990>] 0x80086990 [ 226.790000] [<80271be4>] 0x80271be4 [ 226.790000] [<80086764>] 0x80086764 [ 226.790000] [<80086764>] 0x80086764 [ 226.790000] [<8008a2b4>] 0x8008a2b4 [ 226.790000] [<800836b0>] 0x800836b0 [ 226.790000] [<80064b70>] 0x80064b70 [ 226.790000] [<8008a22c>] 0x8008a22c [ 226.790000] [<80064b60>] 0x80064b60 [ 226.790000] [ 226.790000] [ 226.790000] Code: afa90018 0c09b9c5 afa8001c <0200000d> 8fbf002c 03e00008 27bd0030 27bdffd0 afbf002c [ 227.220000] ---[ end trace fa431494a24772af ]--- [ 227.220000] Kernel panic - not syncing: Fatal exception in interrupt [ 227.230000] Rebooting in 3 seconds.. Edited January 10, 2015 by BeNe Quote Link to comment Share on other sites More sharing options...
m40295 Posted January 11, 2015 Share Posted January 11, 2015 Try to deactivate the connectivity check in the options. Quote Link to comment Share on other sites More sharing options...
BeNe Posted January 11, 2015 Share Posted January 11, 2015 Connectivity check is disabled. Problem is the same. But thanks for your help. Quote Link to comment Share on other sites More sharing options...
m40295 Posted January 11, 2015 Share Posted January 11, 2015 Another thing I believe is it has to be getting internet from eth0. I had this issue while using wlan1 client mode. But after I did ICS with my laptop. It seemed to stop rebooting Quote Link to comment Share on other sites More sharing options...
BeNe Posted January 11, 2015 Share Posted January 11, 2015 (edited) Enabled eth0 and set the PA in Client Wired Mode: But the error is exactly the same. Edited January 11, 2015 by BeNe Quote Link to comment Share on other sites More sharing options...
BeNe Posted January 13, 2015 Share Posted January 13, 2015 Just for info, same behaviour in 2.2.0. Directly after i enabled the daemon the pinapples reboots. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.