Reputation: 483
Appcelerator LiveView is not connecting to the emulator/device on a new development laptop. The connection error occurs when tested with 2 different WiFi networks.
The question is, how can I resolve/debug the [LiveView] File Server unavailable error message?
"[LiveView] File Server unavailable. Host Unreachable @ 192.168.0.7:8324"
"[LiveView] File Server unavailable. Host Unreachable @ 127.0.0.1:8324"
I have tried the following:
The only thing that seems suspicious is...
When requesting the IP:8324 from Safari on emulator I receive a quick JSON response. When requesting the IP:8323 from Safari on emulator I receive no reply in Safari but see [LiveView] Client connected
in the Appcelerator console.
My Environment is:
Console display when running app"
[LiveView] version 1.2.1
[LiveView] Alloy project monitor started
[LiveView] File Server Started on 0.0.0.0:8324
[LiveView] Event Server Started on 0.0.0.0:8323
[INFO] : KitchenSink/6.3.0 (6.3.0.3620088)
[ERROR] : Script Error {
[ERROR] : column = 223;
[ERROR] : line = 671;
[ERROR] : message = "[LiveView] File Server unavailable. Host Unreachable @ 192.168.0.7:8324\n[LiveView] Please ensure your device and computer are on the same network and the port is not blocked.";
Upvotes: 1
Views: 1190
Reputation: 483
RESOLVED
This issue has been resolved.
After setting up a new macbook I had imported Kitchen Sink v2 sample app from the appcelerator GIT repo to get up and running. Liveview never worked but running without Liveview worked fine.
This morning I suspected the problem may be a Node installation / permissions issue and I tried making the /usr/local directory writable by all.
Still no luck and yes I did..clean the project, restart appcelerator, killall, etc.
Finally I just simply created a new alloy project and LiveView works just fine on new projects.
Must be a fluke I thought so I went back to Kitchen-v2 project...cleaned the project...compiled and ran with LiveView - Still Not Working.
The issue appears to be (in my case) the Kitchen Sink v2 sample app.
Upvotes: 1