[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Building mirage-www



removing the relevant "sudo" line from the makefile

After removing 'sudo' from the goal 'run'

run:
        cd src && sudo mirari run www.conf $(FLAGS)

the make went ahead and stopped here:
...
...
Devices: [templates] waking
Devices: [templates] waking
Devices: [templates] waking
Devices: [static] provider start
Devices: [static:static] provider plug
Devices: [static:static] no waiters
listening to HTTP on port 80\nFatal error: exception Unix.Unix_error(1, "bind", "")
make[1]: *** [run] Error 2
make[1]: Leaving directory `/home/phiho/mirage-www'
make: *** [unix-socket-run] Error 2
 
you could try changing the port in www.conf 

Please find my 'src/www.conf' is appended below, which port do I need to change?

'http-port' was changed from '80' to '81' and the same result as above

Thanks,

PhiHo

# IP of the app
ip-address: 10.0.0.2
ip-netmask: 255.255.255.0
ip-gateway: 10.0.0.1
#ip-use-dhcp: true

# TCP settings
http-port: 80
http-address: *

# Filesystem
fs-static: ../files
fs-templates: ../tmpl

# Main function
main-http: Dispatch.t

# Dependencies
depends: cohttp.mirage, uri, re, cow.syntax, cow, ulex, uri, xmlm
packages: cohttp, cow, mirage-fs, mirage-net, uri, xmlm




On Mon, Aug 5, 2013 at 3:00 PM, Richard Mortier <Richard.Mortier@xxxxxxxxxxxxxxxx> wrote:

On 5 Aug 2013, at 16:00, Phiho Hoang wrote:

> > what does "which mirari" say when *not* running as sudo?
>
> phiho@mirage:~/mirage-www$ which mirari
> /home/phiho/.opam/4.00.1+xen/bin/mirari
>
> > are you sure you ran "eval $(opam config env)"?
>
> I think so.
> I just did it again, and the same result.

ok, i guess it'll be a sudo path inheritance thing then.

you could try changing the port in www.conf and removing the relevant "sudo" line from the makefile to check i guess...

--
Cheers,

R.




This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system, you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.






 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.