Page 1 of 1

Can't connect to web-interface?

Posted: 20 Feb 2012 19:22
by ribboo
Before upgrading to 2.0 I had a web-interface that worked flawless. After a fresh install (with previous settings erased and whatnot), I cannot seem to get the web-interface to work.

First of all I need to run it on a port other than 8080. Before upgrading I used 8085, so I've been trying with the same port. When I press "view > Add interface > Web", nothing happens. Previously on 1.2.5 (I believe that was the version) a check mark used to show up right after web. Now it doesn't. But that solution wouldn't have worked anyway, because I need to change the port it runs on. So what I've done is this:

I've added "--extraintf http" at the end of my shortcuts target field. Under "Preferences > All > Interface > Main interfaces" Lua interpreter is checked. Under "Main interfaces > Lua" the following settings has been added:
Lua interface: http
Lua interface configuration: http={host='0.0.0.0:8085',dir='lua/http'} (I've also tried with 127.0.0.1 and localhost)

But I still can't seem to get it working. I've googled and tried a couple of other solutions but have so far found nothing to work. What can I do?

Re: Can't connect to web-interface?

Posted: 20 Feb 2012 22:16
by nkoriyama
You have to edit lua\http\.hosts.
viewtopic.php?f=14&t=98243#p328292
On default setting, you can access only from local ip(localhost, 127.0.0.1).
If you want to access the http interface from another computer on your private LAN, you need to modify lua/http/.hosts file.
If your private address is 192.168.x.x, you need to uncomment the line
192.168.0.0/16
And you can access the http interface from another computer.

Re: Can't connect to web-interface?

Posted: 20 Feb 2012 23:12
by genfester
I am in the same boat I have tried to edit the .hosts file with no luck, wondering if anyone has gotten it to work? I wonder if doing both the preferences and editing .host file will work? ive been testing for days.

Re: Can't connect to web-interface?

Posted: 21 Feb 2012 23:37
by Credomo
The same : .host file edited and the web interface still doesn't work.

In Console view I have this message :

Code: Select all

[0065dcc8] oldrc interface: VLC media player - 2.0.0 Twoflower [0065dcc8] oldrc interface: Copyright © 1996-2012 VLC authors and VideoLAN [0065dcc8] oldrc interface: Attention : si vous n'avez plus accès à l'interface graphique, ouvrez une invite de commande, allez dans le dossier où vous avez installé VLC, et lancez « vlc -I qt ». Interface de commande à distance initialisée, tapez « help » pour obtenir de l'aide. [0065d9a8] [http] lua interface: Lua HTTP interface [0065d9a8] [http] lua interface error: Error loading script C:\Prog\Video\Player\VLC\lua\intf\http.luac: ...xtras/package/win32/../../../share/lua/intf/http.lua:198: Failed to create HTTPd file.

Re: Can't connect to web-interface?

Posted: 22 Feb 2012 01:54
by Jean-Baptiste Kempf
Seems like weird preferences to me.

Re: Can't connect to web-interface?

Posted: 22 Feb 2012 21:00
by VLC_help
luac should not have any knowledge of extras/package/win32/ (unless compilation is done incorrectly)

Re: Can't connect to web-interface?

Posted: 25 Feb 2012 07:45
by tubelight
I'm having this exact same issue. Cannot enable web interface at all. Might go back to 1.xx :/

Re: Can't connect to web-interface?

Posted: 25 Feb 2012 14:33
by Jean-Baptiste Kempf
Failed to create HTTPd file.
means configuration issue. Read all the logs.

Re: Can't connect to web-interface?

Posted: 04 Mar 2012 07:34
by vestig
I had the same issue after I upgraded to 2.0. I deleted the %appdata%/vlc and restarted vlc and the error was gone. Might be worth a try

Re: Can't connect to web-interface?

Posted: 31 Mar 2012 21:34
by alexrenzi
I'm having the same problem here, the output of messages window is:

main debug: auto hiding mouse cursor
main debug: looking for interface module: 0 candidates
main debug: no interface module matched "http,none"
main debug: TIMER module_need() : 0.104 ms - Total 0.104 ms / 1 intvls (Avg 0.104 ms)
main error: no suitable interface module
main error: interface "http" initialization failed
main debug: auto hiding mouse cursor

Re: Can't connect to web-interface?

Posted: 01 Apr 2012 11:07
by VLC_help
You have .hosts file in lua\http folder?

Re: Can't connect to web-interface?

Posted: 01 Apr 2012 23:32
by alexrenzi
Ops, sorry, I am on linux, I found this topic with the search function and I didn't noticed that was a windows oriented one.
I will open a topic in the linux section.

Re: Can't connect to web-interface?

Posted: 01 May 2012 06:16
by dynamitemedia
is there anyway to fix this error?

Code: Select all

[033c4508] oldrc interface: VLC media player - 2.0.1 Twoflower [033c4508] oldrc interface: Copyright c 1996-2012 VLC authors and VideoLAN [033c4508] oldrc interface: Warning: if you cannot access the GUI anymore, open a command-line window, go to the directory where you installed VLC and run "vlc -I qt" Remote control interface initialized. Type `help' for help. [01b8e3a8] [http] lua interface: Lua HTTP interface [01b8e3a8] [http] lua interface error: Error loading script C:\Program Files\Vid eoLAN\VLC\lua\intf\http.luac: ...xtras/package/win32/../../../share/lua/intf/htt p.lua:198: Failed to create HTTPd file. [034f89b8] [http] lua interface: Lua HTTP interface [034f89b8] [http] lua interface error: Error loading script C:\Program Files\Vid eoLAN\VLC\lua\intf\http.luac: ...xtras/package/win32/../../../share/lua/intf/htt p.lua:198: Failed to create HTTPd file.
or in the error mode or messages

Code: Select all

lua info: Lua HTTP interface lua error: Error loading script C:\Program Files\VideoLAN\VLC\lua\intf\http.luac: ...xtras/package/win32/../../../share/lua/intf/http.lua:198: Failed to create HTTPd file.
i have googled for days about this but no luck what so ever.

i did a whole new install of VLS that i downloaded here from main site no Nighly build.... If i need a nightly build i would be ok with that if if someone

Re: Can't connect to web-interface?

Posted: 03 May 2012 18:34
by dynamitemedia
this error exits VLC so it wont work with HTTP interface as soon as you try it does this and exits the VLC when using a BAT file


EDIT: so if it an error in creating the httpd file, is there a working version that will work? i have downloaded the version on the front page. not a nightly build

Re: Can't connect to web-interface?

Posted: 08 May 2012 04:48
by dynamitemedia
sorry to bump this but is there any help on this? it is a VLC error

Failed to create HTTPd file.

why is it doing this and how can i fix it?

Re: Can't connect to web-interface?

Posted: 25 Jul 2012 11:20
by JohnLMBrennan
- open the "C:\Documents and Settings\john\Application Data\vlc\vlcrc" file.
- find [lua]
- change #http-src to http-src=C:\Program Files\VideoLAN\VLC\lua\http (make sure you remove the # at start of line)
- save the file
- restart vlc

It looks as though, when you set the http source directory option from the vlc preferences GUI, it sets the OLD http source setting not the NEW lua one.
I use linux not windows so I'm not sure if this helps you here, but give it a go.

Re: Can't connect to web-interface?

Posted: 25 Nov 2012 18:50
by ledadu
i'v got this error on Vlc 2.0.4 x64 on windows.
i fix it :
1 - install vlc 2.0.4 x32
2 - copy C:\Program Files(x86)\VideoLAN\VLC\lua => C:\Program Files\VideoLAN\VLC\lua ( lua 32bit => lua 64bit)
3 - unistall vlc 32bit..
4 - reopen video file with vlc 64bit..
i hope that help you..