Tuesday, October 9, 2007

Ubuntu iFolder Server

Today's experiment: iFolder on Ubuntu Gutsy Gibbon.

The result: a mixed success. The web service allows web users and I can create users, folders, and files, and retrieve them again. However, the iFolder clients of various versions for Windows (and presumably Mac, Linux also) report strange error messages, and so does the Apache log.

The client reports a bad username/password pair, when the same pair works perfectly from the web login. The server logs indicate a misconfigured mod_mono which points to the .exe assembly rather than a native binary. These may or may not be related; I read an article on this same procedure that says Ubuntu's mod_mono is broken, and this may all be symptoms of that problem.

I've downloaded a Novell NetWare 6.5SP6 installation CD, and I'm going to give it a go on some real iron and give my VMWare servers a break. Hopefully I can use blackruby to see how a properly configured iFolder server should behave, and perhaps I will be able to narrow down my own problems in this way.

Notes from the Gutsy Gibbon installation are included below:

Follow the instructions from Edgy Eft. Peruse the instructions for Dapper Drake also, as some steps have been omitted and may still be relevant. Compiling from the iFolder SVN Trunk was rife with issues on a vanilla Gutsy Gibbon.

First step is to install libflaim, seemingly the database manager of choice for Novell products, or at least iFolder. You will probably need to download the source, I haven't found any working binaries for Ubuntu. Remember to install flex, libncurses-dev, and pkg-config! This was not mentioned in the Edgy Eft installation guide.

Your iFolder compilation will probably fail if you neglect to update configure.in with the following change, something about the Stat namespace:

CSCFLAGS='/d:MONO /d:MONONATIVE /warn:4 /d:TRACE'

If you're installing into /usr/local don't forget to update your PKG_CONFIG_PATH and /etc/ld.so.conf with the appropriate directories. gSOAP will give you a hard time if you have very limited memory; 128MB was not enough for me, the compilation would hang indefinitely on the first large file until I increased the memory to 384MB.

Now I'm hung up on Apache configuration and mod_mono. One can only hope that the configuration is easier on Novell's own platform, NetWare Server. If not, I'll have to live without iFolder for a couple of weeks while I tie up some loose ends with RIT Administration.

Some relevant articles:

Also I should mention, I am in the market for an experienced Novell Linux OES system administrator with good oral and written communication skills. Contact me however you like, nowadays I'm mostly lurking on the RIT Facebook and Gmail.

Yours truly, Kingdon
(thursday.nerdland.org
RSA 0c:d9:e0:c1:8b:da:6d:62:06:ca:0a:3f:9d:85:23:4a)

10 comments:

Kingdon said...
This comment has been removed by the author.
Kingdon said...
This comment has been removed by the author.
Kingdon said...
This comment has been removed by the author.
Kingdon said...

Also install pkg-config or you will run into syntax errors and unexpected tokens in the configure script. Update your C# Compile Flags as specified in the Edgy tutorial to resolve the namespace issue

CSCFLAGS='/d:MONO /d:MONONATIVE /warn:4 /d:TRACE'

Be sure to set libdir on autogen.sh or configure especially if you have followed my example and are managing your libraries with stow, or if you have a 64 bit processor and have installed your flaim library into the lib64 directory. Finally proceed with make and hopefully you will not have any errors compiling or linking.

Kingdon said...
This comment has been removed by the author.
Kingdon said...
This comment has been removed by the author.
Kingdon said...
This comment has been removed by the author.
Kingdon said...
This comment has been removed by the author.
Kingdon said...
This comment has been removed by the author.
Kingdon said...
This comment has been removed by the author.