Forum OpenACS Q&A: Win2k Installation

Collapse
Posted by John Holroyd on
Ok, I realise that I am a total pedant, but never mind.
I have managed to install OACS 4.5b1 on a win2k server/oracle box
using the aol33ad13 and patched to 'allow' file upload. It took me a
little while but it largely works. I do however have a few problems
that I could do with words of wisdom on...

File upload, only works in some modules, eg. I can upload my own
photograph in my profile, but I can't upload it to a photograph album
that I create. Nor can I use file storage or filemanager. Also E-
commerce wont allow me to upload any product data.
In my browser I get:

We had a problem processing your entry:
You specified a path to a file that is not allowed on the system.

Now, knowing from reading previous posts that there are some serious
issues with AOL server on win32 and file uploading, I am wondering if
anybody has a workaround for this?

Also has anybody compiled nsopenssl.dll?

With thanks,

John

Collapse
Posted by Don Baccus on
It sounds like a file system permission problem ... you might want to talk to Jamie Rasmussen. He's got the most experience of any one around here when it comes to AOLserver, OpenACS and Windows.
Collapse
Posted by John Holroyd on
Thanks Don, I'll mail him with my requests.
Collapse
Posted by Jamie Rasmussen on
Here I am! Feel free to email me as well, or drop by the AOLserver chat later today and every Thursday.

There are a couple of problems with file uploads. Some are in AOLserver, some are in OpenACS. It sounds like you may have fixed some of the ones in AOLserver yourself. I'm really working exclusively with AOLserver 4 now, but most of these problems are also in 3.x I believe.

  1. AOLserver's NsTclTmpNamCmd C function (implements ns_tmpnam) uses the tmpnam function when it should really be using GetTempFileName and other Win32 API funcs.
  2. nspostgres is missing O_BINARY flags in the open() function calls.
  3. Ns_ConnGetQuery is broken. I think it had to do with spaces in filenames. Another function had to be modified as well.
  4. In OpenACS, look at ad_page_contract_filter tmpfile and check_for_form_variable_naughtiness. These functions validate that the temporary directory used is "/var/tmp" or "/tmp", which, of course, is not the temporary directory on Windows. I think that is the primary cause of the error you are getting.
I've patched all of the AOLserver file upload bugs I know of in the 4b1 version that I'm distributing at http://empoweringminds.mle.ie/openacs/installer/. I'd be happy to compare patches with you. (The source is there too, but it is from 4...) I haven't used the ecommerce module myself, so you might be running into a problem I'm unfamiliar with. I haven't been able to compile nsopenssl with AOLserver 4 but unless I'm gravely mistaken, it is a cross-platform problem. I've been talking with Scott G. who maintains it. He's very busy but also extremely friendly. He often drops in on the AOLserver chats. I know nsopenssl *used* to compile on Windows, but I don't know if it still does or if there are binaries available somewhere.

I've been really busy lately so I haven't had time to properly document all of these problems on this bboard. For the OpenACS temp dir problem (and there are a few other minor Win32 problems I'm aware of) I'll be submitting patches as soon as I find the time to clean and document them. (Done in time for OpenACS 4.7, I hope.)

Collapse
Posted by John Holroyd on
Thanks for that Jamie, I will have a good look at your installation, as soon as I can download it, my ISP seems to be blocking .msi and .exe files at present. The patch I mentioned is not my work, its available from the AOL server sourceforge site. My problems were largely to figure out why oracle wouldn't do this or that and then correct it.
Collapse
Posted by Jamie Rasmussen on
I've added a zip file of the binaries that you could try to download. I'm only using PostgreSQL so you would have to modify the init file to use them with Oracle. Please let me know how it goes! Or if you would rather recompile 3.3, I can email you patches.

In the AOLserver chat last night, Scott said he has made changes to nsopenssl so that it will work with AOLserver 4, but he hasn't merged the code into the CVS tree yet.

Collapse
Posted by John Holroyd on
Whew, thanks Jamie. I'll give that a good look over and see if it takes care of my problems. The ssl news is good news from my point of view and I look forward to trying it. You have been a great help, thank you