cannot use 'j' option when a host does not have journaling enabled

411 views
Skip to first unread message

Muhammad ALi

unread,
Jul 16, 2014, 6:27:00 AM7/16/14
to formh...@googlegroups.com
Hello ,

I have just downloaded the formhub VM and tried to upload a form . I am getting this error . Please help .

Thanks,
Muhammad Ali



cannot use 'j' option when a host does not have journaling enabled

Request Method: POST
Django Version: 1.5.6
Exception Type: OperationFailure
Exception Value:

cannot use 'j' option when a host does not have journaling enabled

Exception Location: /usr/local/lib/python2.7/dist-packages/pymongo/helpers.py in _check_command_response, line 147
Python Executable: /usr/local/bin/uwsgi
Python Version: 2.7.3
Python Path:

['.',
 '',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-linux2',
 '/usr/lib/python2.7/lib-tk',
 '/usr/lib/python2.7/lib-old',
 '/usr/lib/python2.7/lib-dynload',
 '/usr/local/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages/PIL',
 '/usr/lib/pymodules/python2.7']

Server time: Thu, 17 Jul 2014 06:14:15 -0400

Andrew Team

unread,
Jul 21, 2014, 9:52:15 AM7/21/14
to formh...@googlegroups.com
I am encountering the same problem were you able to fix it? Thanks.

Muhammad ALi

unread,
Jul 22, 2014, 1:42:41 AM7/22/14
to formh...@googlegroups.com
Hi Andrew ,

Yes i have been able to fix this issue . It was causing due to j option set to true in settings.py file . In 32-bit version of mongo db it is disabled by default and its enabled in 64-bit of version . Either you can enable the jornaling (which i have not discovered yet ) or set this option to False in settings .Following are the steps .

Go to /home/fhuser/formhub/formhub/settings.py  at the end of the file you will see j=True in mongo db settings option . Change this to j=False . This should work except when you will try to delete a form , you will get the same error  . Again you will need to edit logger_tools.py and set j=False (i forgot the path of this file , you can see that in stack trace )  . These changes are working atleast for me .Hope this works for you as well .


Thanks,
Muhammad Ali

Denis Papathanasiou

unread,
Jul 22, 2014, 6:54:09 AM7/22/14
to formh...@googlegroups.com
Thanks, Muhammad!

I hadn't had time to look into it, but I'll update the public VDI file accordingly.


--
You received this message because you are subscribed to the Google Groups "Formhub Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to formhub-dev...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Regards,

Denis Papathanasiou
646.789.5470

Andrew Team

unread,
Jul 22, 2014, 9:50:31 AM7/22/14
to formh...@googlegroups.com
Thank you very much Muhammad! That did solve the issue for me to. Another question, is it taking the ip address a long time to connect to? In my case I have disconnected the internet and have set up a static ip and this is taking a good few minutes to load. I would have thought that setting it up in a offline enviroment (LAN) would be as fast as or faster than a cloud.

Cheers,
Jay.

Muhammad ALi

unread,
Jul 23, 2014, 1:16:22 AM7/23/14
to formh...@googlegroups.com
Hi Andrew ,

It is working fine for me . No it should not take minutes to load . The page should be rendered in secs . There might be some problem with your network . Or may be you have not allocated enough ram and processors to your virtual machine . Try increasing Ram to 2048 MB and atleast 2 processors . Are you using bridge mode or NAT mode in your network settings ? .If you are using bridge mode then virtual machine will be assigned a new local IP from your DHCP . your can check your IP with this command .ifconfig eth0 .
Then try the same ip with another computer attached on the LAN .

Thanks,
Muhammad Ali

Andrew Team

unread,
Jul 23, 2014, 6:07:08 AM7/23/14
to formh...@googlegroups.com
Hi Muhammad,

When I am connected to the local wi-fi network it does render in seconds but when I connect it to my router (to create a LAN without internet) it takes much longer and I get the messages of 'waiting for ip' followed by 'resolving hosts'. 
I suspect that the formhub page needs the internet for some of it's features and the page tries to connect to it until it times out, which causes the delay. I am looking around for solutions to maybe disable the dns resolution or reducing the timeout somehow. Hopefully there will be an easy solution.I might also look into ethtools and follow the instruction on this page just in case. http://scottbarnham.com/blog/2007/08/23/vmware-on-ubuntu-linux-with-bridged-network-to-xp/

Thanks for your help!
Jay.

aristide thomas mendo'o

unread,
Feb 19, 2015, 12:17:51 PM2/19/15
to formh...@googlegroups.com

Hi!!

I had the same issue  today when i was testing formhub.  But what i did instead of modifying any setting or python file, was to enable journaling on mongodb like this:   mongod --dbpath formhub --journal 

Anything wrong with that ?
Reply all
Reply to author
Forward
0 new messages