Hello, When I used nginx, I made sure the firewall was disabled (both Windows' and the antivirus'). I used another example to load a pickle and the same thing happened: I can access the file with my browser but the Pickle.load fails. I already tried looking into the log files (both access and error) and I noticed that only the access through the browser are recorded which makes it seem like the Pickle.load is not even attempting to access the server. I find this weird since I made sure I wrote the right URL. Could this be related to the fact that I'm working on Windows?
Thanks. 2011/12/21 <[email protected]> > Hi, > > first, the fact that you can't access the URL from machine B may indicate > that there is a firewall preventing the access. > Maybe a local firewall (like the built-in Windows firewall) or maybe some > system firewall. Are you using some university network or similar? If so, > you should speak with the administrator. > > > I just tried loading a pickle by http URL with nginx like this: > > declare F = {Pickle.load "http://127.0.0.1:8080/simplefun.ozf"} > declare [M] = {Module.apply [F]} > > and it worked okay. Not sure what could be going wrong on your machine. > Any error messages? Maybe something in the nginx logs? (access.log / > error.log) > > Cheers, > Wolfgang > > > On Dec 21, 2011 8:27pm, Khadija EL MAHRSI <[email protected]> > wrote: > > Hi, > > I've tried nginx like you suggested and managed to serve the file at a > given URL. I can access the .ozf file from my browser using the URL without > any problems but when I try to access the file using the URL for > Pickle.load, nothing > works and I have no idea why. I don't know if this has anything to do with > nginx or not (maybe I did something wrong because it's my first time using > it). I'm saying this because when I connected 2 machines (A and B) with A > running > nginx and serving the file, B couldn't access the .ozf from the browser > while A could (and I made sure I wasn't using localhost for A). Did I miss > something? > > > > > > Thanks. > > > > 2011/12/17 Khadija EL MAHRSI [email protected]> > > > > Hello, > > For files on the same machine, I had no problems. It is the remote > machine case that I'm having trouble with. Like you suggested, I'm trying > nginx but since I never did something similar before, it's taking me quite > sometime now to > achieve my goal (I'm still looking for a step by step tutorial on how to > use nginx to serve files). > > > > > > > > Thanks. > > > > 2011/12/15 Wolfgang Meyer [email protected]> > > > > > > Hi, > > > > > > > > the URL for "Pickle.load" can be a local filename like > "/usr/bla/bla/stuff.ozf" or "C:\\Users\\bla\stuff.ozf" (when on the same > machine) > > or a http address when accessing a remote machine. > > > > > > > > > > > > But you need a running web server that actually serves the file under > the given URL. Maybe that is the problem? > > > > > > Fortunately there a number of light-weight web servers, for example > nginx. Relatively easy to install, compared to the earlier web servers... > > > > > > > > > > > > Wolfgang > > > > > > > > On Thu, Dec 15, 2011 at 2:40 PM, Khadija EL MAHRSI > [email protected]> wrote: > > > > > > > > > > > > Hi, > > I wanted to know how to properly write the URL for loading pickles. I've > read the documentation but I'm afraid it still isn't clear enough for me. > > > > > > > > In case I had 2 connected machines and one of them is trying to load a > pickle which exists on the other, how do I write the URL? > > > > > > > > Thanks. > > > > > > > > > > > > > _________________________________________________________________________________ > > > > > mozart-users mailing list > [email protected] > > > > http://www.mozart-oz.org/mailman/listinfo/mozart-users > > > > > > > > > > > _________________________________________________________________________________ > > > > > mozart-users mailing list > [email protected] > > > > http://www.mozart-oz.org/mailman/listinfo/mozart-users > > > > > > > > > > > > > > > > > > > > > > > > > _________________________________________________________________________________ > mozart-users mailing list > [email protected] > http://www.mozart-oz.org/mailman/listinfo/mozart-users >
_________________________________________________________________________________ mozart-users mailing list [email protected] http://www.mozart-oz.org/mailman/listinfo/mozart-users
