loosing wifi ?? connection to rune

Please report any bug found here

Re: loosing wifi ?? connection to rune

Postby hondagx35 » 30 May 2015, 21:50

Hi Ralf,

Any idea ?

Not really.

Does nginx run?
Code: Select all
systemctl status nginx


Please post the output from:
Code: Select all
df -h

and
Code: Select all
free


Frank
User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: loosing wifi ?? connection to rune

Postby rasti » 30 May 2015, 23:23

Hi Frank,

here's the result (in the status when http is not accessible anymore)

Regards

Ralf


============== RuneOS distribution ===============
____ _ _ _
| _ \ _ _ _ __ ___ / \ _ _ __| (_) ___
| |_) | | | | '_ \ / _ \ / _ \| | | |/ _` | |/ _ \
| _ <| |_| | | | | __// ___ \ |_| | (_| | | (_) |
|_| \_\\__,_|_| |_|\___/_/ \_\__,_|\__,_|_|\___/

================ http://www.runeaudio.com ================
RuneOs: 0.3-beta (build 20141029)
RuneUI: 1.3
Hw-env: RaspberryPi

Last login: Sat May 30 19:44:14 2015 from sti-1hf6ahmhpn9.fritz.box
[root@musicbox ~]# systemctl status nginx
* nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled)
Active: active (running) since Thu 1970-01-01 01:00:09 CET; 45 years 4 months ago
Process: 142 ExecStart=/usr/bin/nginx -g pid /run/nginx.pid; daemon on; master _process on; (code=exited, status=0/SUCCESS)
Process: 120 ExecStartPre=/usr/bin/nginx -t -q -g pid /run/nginx.pid; daemon o n; master_process on; (code=exited, status=0/SUCCESS)
Main PID: 145 (nginx)
CGroup: /system.slice/nginx.service
|-145 nginx: master process /usr/bin/nginx -g pid /run/nginx.pid; ...
`-146 nginx: worker process
[root@musicbox ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 1.7G 702M 839M 46% /
devtmpfs 238M 0 238M 0% /dev
tmpfs 242M 0 242M 0% /dev/shm
tmpfs 242M 308K 241M 1% /run
tmpfs 242M 0 242M 0% /sys/fs/cgroup
tmpfs 242M 4.0K 242M 1% /tmp
/dev/mmcblk0p1 90M 43M 48M 47% /boot
/dev/sda1 120G 83G 38G 69% /mnt/MPD/USB/sda1-usb-SanDisk_Cruzer_B
[root@musicbox ~]# free
total used free shared buffers cached
Mem: 494000 208804 285196 4960 29800 64404
-/+ buffers/cache: 114600 379400
Swap: 0 0 0
[root@musicbox ~]#
rasti
 
Posts: 40
Joined: 21 May 2015, 16:27

Re: loosing wifi ?? connection to rune

Postby rasti » 30 May 2015, 23:28

rune_check.JPG
rune_check.JPG (171.46 KiB) Viewed 1961 times
I guess this is easier to read....
rasti
 
Posts: 40
Joined: 21 May 2015, 16:27

Re: loosing wifi ?? connection to rune

Postby rasti » 31 May 2015, 12:27

I will try now to use a micro SD Card with Raspi Adapter
instead a normal SD-Card
http://www.ebay.de/itm/181727038883
This solved a mysterious sometimes not working problem
I had with my fhem home automatiion Raspberry half year ago

Ralf
rasti
 
Posts: 40
Joined: 21 May 2015, 16:27

SOLVED: loosing wifi ?? connection to rune

Postby rasti » 02 Jun 2015, 20:20

rasti wrote:I will try now to use a micro SD Card with Raspi Adapter
instead a normal SD-Card
http://www.ebay.de/itm/181727038883
This solved a mysterious sometimes not working problem
I had with my fhem home automatiion Raspberry half year ago

Ralf


I think that this problem is solved now :mrgreen:
I have been running the server for at least 2 days without accessing
the UI for 8h+ through a browser. It didn't freeze again

So the problem probably was the SD Card or a bad contact of its pins.
Maybe rune was trying to write to the log or whatever and
couldn't perform the write process.

Ralf
rasti
 
Posts: 40
Joined: 21 May 2015, 16:27

Re: loosing wifi ?? connection to rune

Postby hondagx35 » 02 Jun 2015, 22:05

Hi Ralf,

nice to hear that it works now.
Thank you for your feedback.

Frank
User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: loosing wifi ?? connection to rune

Postby rasti » 04 Jun 2015, 14:25

it happened again.

This time I ftp'd to the server and looked in the
runeui_error.log
Code: Select all
1970/01/01 01:00:08 [info] 117#0: Using 16384KiB of shared memory for push stream module on zone: push_stream_module in /etc/nginx/nginx.conf:27
2015/06/04 13:24:19 [alert] 146#0: *7002 socket() failed (24: Too many open files) while connecting to upstream, client: 127.0.0.1, server: , request: "GET //?cmd=playlist HTTP/1.0", upstream: "fastcgi://unix:/var/run/php-db.sock:", host: "127.0.0.1:81", referrer: "http://192.168.178.5/"
2015/06/04 13:24:39 [crit] 146#0: accept4() failed (24: Too many open files)
2015/06/04 13:24:40 [crit] 146#0: accept4() failed (24: Too many open files)
2015/06/04 13:24:40 [crit] 146#0: accept4() failed (24: Too many open files)
2015/06/04 13:24:41 [crit] 146#0: accept4() failed (24: Too many open files)
2015/06/04 13:24:41 [crit] 146#0: accept4() failed (24: Too many open files)
2015/06/04 13:24:42 [crit] 146#0: accept4() failed (24: Too many open files)
2015/06/04 13:24:42 [crit] 146#0: accept4() failed (24: Too many open files)
2015/06/04 13:24:43 [crit] 146#0: accept4() failed (24: Too many open files)
2015/06/04 13:24:43 [crit] 146#0: accept4() failed (24: Too many open files)
2015/06/04 13:24:44 [crit] 146#0: accept4() failed (24: Too many open files)
2015/06/04 13:24:44 [crit] 146#0: accept4() failed (24: Too many open files)
2015/06/04 13:24:45 [crit] 146#0: accept4() failed (24: Too many open files)
2015/06/04 13:24:46 [alert] 146#0: *7008 socket() failed (24: Too many open files) while connecting to upstream, client: 192.168.178.30, server: , request: "GET /db/?cmd=playlist HTTP/1.1", upstream: "http://127.0.0.1:81//?cmd=playlist", host: "192.168.178.5", referrer: "http://192.168.178.5/"
2015/06/04 13:24:46 [crit] 146#0: *7008 open() "/etc/nginx/html/50x.html" failed (24: Too many open files), client: 192.168.178.30, server: , request: "GET /db/?cmd=playlist HTTP/1.1", upstream: "http://127.0.0.1:81//?cmd=playlist", host: "192.168.178.5", referrer: "http://192.168.178.5/"
2015/06/04 13:25:02 [crit] 146#0: accept4() failed (24: Too many open files)
2015/06/04 13:25:02 [crit] 146#0: accept4() failed (24: Too many open files)
2015/06/04 13:25:03 [crit] 146#0: accept4() failed (24: Too many open files)
2015/06/04 13:25:03 [crit] 146#0: accept4() failed (24: Too many open files)
2015/06/04 13:25:04 [crit] 146#0: accept4() failed (24: Too many open files)
2015/06/04 13:25:04 [crit] 146#0: accept4() failed (24: Too many open files)

.....
this continues to write always the same until eternaty....

Runeui.log however stopped writing Here are the last lines
Code: Select all
192.168.178.30 - - [04/Jun/2015:13:23:40 +0200] "GET /lp/playback?&tag=&time=&eventid=&_=1433417007970 HTTP/1.1" 200 592 "http://192.168.178.5/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.34 Safari/534.24"
127.0.0.1 - - [04/Jun/2015:13:23:40 +0200] "GET //?cmd=playlist HTTP/1.0" 200 669 "http://192.168.178.5/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.34 Safari/534.24"
192.168.178.30 - - [04/Jun/2015:13:23:41 +0200] "GET /db/?cmd=playlist HTTP/1.1" 200 681 "http://192.168.178.5/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.34 Safari/534.24"
192.168.178.6 - - [04/Jun/2015:13:24:02 +0200] "HEAD / HTTP/1.1" 200 0 "-" "Wget/1.13.4 (linux-gnueabihf)"
127.0.0.1 - - [04/Jun/2015:13:24:09 +0200] "POST /pub?id=playback HTTP/1.1" 200 0 "-" "-"
192.168.178.30 - - [04/Jun/2015:13:24:09 +0200] "GET /lp/playback?&tag=&time=&eventid=&_=1433417027182 HTTP/1.1" 200 555 "http://192.168.178.5/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.34 Safari/534.24"
127.0.0.1 - - [04/Jun/2015:13:24:09 +0200] "GET //?cmd=playlist HTTP/1.0" 200 661 "http://192.168.178.5/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.34 Safari/534.24"
192.168.178.30 - - [04/Jun/2015:13:24:09 +0200] "GET /db/?cmd=playlist HTTP/1.1" 200 673 "http://192.168.178.5/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.34 Safari/534.24"
127.0.0.1 - - [04/Jun/2015:13:24:19 +0200] "POST /pub?id=playback HTTP/1.1" 200 0 "-" "-"
192.168.178.30 - - [04/Jun/2015:13:24:19 +0200] "GET /lp/playback?&tag=&time=&eventid=&_=1433417055855 HTTP/1.1" 200 596 "http://192.168.178.5/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.34 Safari/534.24"
127.0.0.1 - - [04/Jun/2015:13:24:19 +0200] "GET //?cmd=playlist HTTP/1.0" 500 594 "http://192.168.178.5/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.34 Safari/534.24"
192.168.178.30 - - [04/Jun/2015:13:24:19 +0200] "GET /db/?cmd=playlist HTTP/1.1" 500 594 "http://192.168.178.5/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.34 Safari/534.24"
192.168.178.30 - - [04/Jun/2015:13:24:45 +0200] "GET /lp/notify?&tag=&time=&eventid=&_=1433417089492 HTTP/1.1" 200 0 "http://192.168.178.5/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.34 Safari/534.24"
127.0.0.1 - - [04/Jun/2015:13:24:45 +0200] "POST /pub?id=playback HTTP/1.1" 200 0 "-" "-"
192.168.178.30 - - [04/Jun/2015:13:24:46 +0200] "GET /lp/playback?&tag=&time=&eventid=&_=1433417066097 HTTP/1.1" 200 555 "http://192.168.178.5/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.34 Safari/534.24"
192.168.178.30 - - [04/Jun/2015:13:24:46 +0200] "GET /db/?cmd=playlist HTTP/1.1" 500 594 "http://192.168.178.5/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.34 Safari/534.24"


Any suggestions what to do ? Webradio was playing and continued to play after rune UI has frozen

Ralf
rasti
 
Posts: 40
Joined: 21 May 2015, 16:27

Re: loosing wifi ?? connection to rune

Postby hondagx35 » 04 Jun 2015, 16:22

Hi Ralf,

it's hard to help you.

Your problems have nothing to do with wifi.
The error is self explaining (Too many open files).
The question is, why.

On a stock system without any changes and used as supposed by the developers this will not happen.

- Did you change nginx.conf to support httpd?
- Is FHEM calling rune continously?
- updates installed?
- ?????

Frank
User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: loosing wifi ?? connection to rune

Postby rasti » 04 Jun 2015, 17:38

hondagx35 wrote:Hi Ralf,

it's hard to help you.

Your problems have nothing to do with wifi.
The error is self explaining (Too many open files).
The question is, why.

On a stock system without any changes and used as supposed by the developers this will not happen.

- Did you change nginx.conf to support httpd?
- Is FHEM calling rune continously?
- updates installed?
- ?????

Frank


Well after reading that log it's obvious that it is a server problem
and not a wifi problem. I didn't know that when I sent the first posting.

- I didn't change nginx.conf.
-Rune works in http not https I was not able to set this up and
installed everything from scratch
- fhem calls rune once a minute
- I installed the file from http://www.runeaudio.com/download/
- no further changes,exept
a) in footer.php I set
<!-- loader -->
<div id="loader" style="display: none"></div> and
b) in header.php I created a link to FHEM and
c) I disabled power saving of the Edimax WLAN Dongle

So this is (almost) a stock system without any changes.
I didn't touch anything else, really ! :roll: I wouldn't even dare
as my linux knowledge is very limited....

Ralf
rasti
 
Posts: 40
Joined: 21 May 2015, 16:27

Re: loosing wifi ?? connection to rune

Postby rasti » 05 Jun 2015, 21:37

hondagx35 wrote:Hi Ralf,

it's hard to help you.

The error is self explaining (Too many open files).
The question is, why.

Frank


I googled a bit......and installed and run LSOF to find out why.

I get a list of open files. See file attached. This list increases steadily.

When I enter
cat /proc/sys/fs/file-nr I get
659 0 48521
where the first number also steadily increases,
while writing this post this increased to
cat /proc/sys/fs/file-nr
719 0 48521


I don't know which files should be opened, how many usually should be
opened, if 48521 is the maximum allowed number which causes
nginx to stop working, etc.

But maybe this information is useful to you for locating the culprit...

Ralf

PS : After 2 hours lsof results in many lines (files ?) which look like that:
nginx 144 root 474u IPv4 81725 0t0 TCP musicbox.fritz.box:http->Wohnzimmer--Tablet.fritz.box:38774 (CLOSE_WAIT)

See 2nd zip. Is that normal ?
Attachments
rune_lsof_after2h.zip
(19.61 KiB) Downloaded 352 times
lsof_rune.zip
(11.43 KiB) Downloaded 389 times
rasti
 
Posts: 40
Joined: 21 May 2015, 16:27

support RuneAudio Donate with PayPal

Previous

Return to Bug report

Who is online

Users browsing this forum: No registered users and 5 guests