Go Down

Topic: difficulties with web server (Read 2096 times) previous topic - next topic

zzyzxx

I'm having a bit of trouble getting the Yun web server running and need some help.

I have new Yun board and updated to openwrt-ar71xx-generic-yun-16M-squashfs-sysupgrade.bin with no issues.

Yun is on the correct network segment and the web panel can be reached with no problems. REST password is OFF.

I can upload sketches via serial and they work fine.

I can SSH to Yun with no issues.

However, the web server does not appear to be running. For example, http://local.arduino cannot reach the Yun ("server not found" error).

The SD card has arduino/www/index.html, but it cannot be reached, the error is "No such file or directory" using the Yun's address as: 192.168.2.72/sd, ("arduino.local/sd" returns "server not found").

The SD card is a 16 GB formatted Fat32.

Here is what the SD card looks like from SSH:
root@Arduino:/mnt/sda2/arduino/www# ls
index.html

Any help appreciated.






zzyzxx

#1
Jun 19, 2017, 01:00 am Last Edit: Jun 19, 2017, 01:05 am by zzyzxx
I started from scratch and reloaded the openwrt-ar71xx-generic-yun-16M-squashfs-sysupgrade.bin image. Yun is working fine now.

Except the http://arduino.local still comes back with "server not found".

ballscrewbob

local server has always tended to be a little hit and miss but via the YUN's IP seems to be the most reliable method.

Same thing in a different manner.
It may not be the answer you were looking for but its the one I am giving based on either experience, educated guess, google (who would have thunk it ! ) or the fact that you gave nothing to go with in the first place so I used my wonky crystal ball.

zzyzxx

The arduino.local issue is easy to fix - once you know how!
You must install Bonjour for Windows, see here https://forum.arduino.cc/index.php?topic=189081.0

lga

#4
Oct 14, 2017, 10:45 pm Last Edit: Oct 14, 2017, 10:57 pm by lga
I started from scratch and reloaded the openwrt-ar71xx-generic-yun-16M-squashfs-sysupgrade.bin image. Yun is working fine now.

Except the http://arduino.local still comes back with "server not found".
thank you, similar issue here and was able to resolve the same way. the config web page was very slow and strange looking. now works as expected.
remaining issue:
cannot just connect to the ip address but need to use the following url's:
http://192.168.10.112/cgi-bin/luci/;stok=cbe40abe7a81f7f9374542bbeaaad02a/webpanel/homepage
http://192.168.10.112/cgi-bin/luci/

P.S.
had to upgrade from command line:
(command found here: https://www.arduino.cc/en/Tutorial/YunSysupgrade)
run-sysupgrade /mnt/sda1/openwrt-ar71xx-generic-yun-squashfs-sysupgrade.bin
(bin file previously copied to usb stick here mounted as /mnt/sda1)

AgroMeInc

It's not hit and miss or any mystery .

.local domains use multicast DNS. Either your network, operating system, or browser is not supporting mDNS very well:

https://en.m.wikipedia.org/wiki/Multicast_DNS

Go Up