GoogleCodeArchive / tapirwiki

Automatically exported from code.google.com/p/tapirwiki
1 stars 0 forks source link

First access (install) failes #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I followed the instructions to install the couchapp
2. My /etc/couchdb/local.ini has an admin user defined in it
3. I used the user:password in the URL to access the wiki

What is the expected output? What do you see instead?
The new front page is what I expected to see, this is what I got:-

Installing TapirWiki
Before you use TapirWiki for the first time, a few default pages need to be 
loaded:
TAPIRWIKISETTINGS failed. Please delete this database and try again. If the 
problem persists, please log an issue here.
Index failed. Please delete this database and try again. If the problem 
persists, please log an issue here.
Help failed. Please delete this database and try again. If the problem 
persists, please log an issue here.
HelpOnReplication failed. Please delete this database and try again. If the 
problem persists, please log an issue here.
HelpOnGettingStarted failed. Please delete this database and try again. If the 
problem persists, please log an issue here.
FrontPage failed. Please delete this database and try again. If the problem 
persists, please log an issue here.
HelpOnFormattingNotes failed. Please delete this database and try again. If the 
problem persists, please log an issue here.
HelpOnAttachments failed. Please delete this database and try again. If the 
problem persists, please log an issue here.
HelpOnFormatting failed. Please delete this database and try again. If the 
problem persists, please log an issue here.
HelpOnMacros failed. Please delete this database and try again. If the problem 
persists, please log an issue here.
Installation complete
Congratulations, TapirWiki has been set up correctly. Please refresh this page 
to access your new wiki or click here.

What version of the product are you using? On what operating system?
the latest download, with couchdb 0.11.0

Please provide any additional information below.

Original issue reported on code.google.com by david.go...@btconnect.com on 23 Aug 2010 at 3:00

GoogleCodeExporter commented 9 years ago
Hi,
Strange, I also have a password in couch.ini and have not experienced this 
problem (I am using couchdb 0.10 though).
But then I usually open a fresh database from futon 
(http://localhost:5984/_utils) If you try to open the wiki page from futon (by 
clicking on the database you created -> _design/tapir ->  wiki.html under 
_attachments) do you then experience the same problem?
Jeroen

Original comment by jeroen....@gmail.com on 23 Aug 2010 at 4:20

GoogleCodeExporter commented 9 years ago
Hi again,
I installed latest CouchDB 1.0.1 on a fresh server but could not repeat your 
problem. TapirWiki initialized fine, even when pushing the app as one user and 
initializing as another using user:passw in the url.
Is the problem still persisting for you?

Original comment by jeroen....@gmail.com on 24 Aug 2010 at 4:26

GoogleCodeExporter commented 9 years ago
I have seen this hanging problem on first run of tapir wiki as well. The 
following is the workaround/fix. The log is under /var/log/couchdb/couch.log. 
This is a good place to snoop around. It sort of just says an Erlang process 
has crashed.

My setup:
Ubuntu 10.04
Erlang14B 
CouchDB 1.0.1
Couchapp 0.7.2
Tapir: wiki.zip

Please check the xulrunner documentation on the page 

http://wiki.apache.org/couchdb/Installing_on_Ubuntu

HERE IS THE WORKAROUND FOR xulrunner issue.

sudo vi /etc/ld.so.conf.d/xulrunner.conf

Note: To check what XULRunner version you have installed use xulrunner -v

Then add the following lines to the file (You may need to change the library 
version to match whats installed):

/usr/lib/xulrunner-x.x.x.x
/usr/lib/xulrunner-devel-x.x.x.x
Once the configuration files is created and saved, you will need to run 
ldconfig:

sudo /sbin/ldconfig

This solution is referenced in this bug report @ 
https://bugs.launchpad.net/ubuntu/+source/xulrunner-1.9/+bug/557275

On a browser http://127.0.0.1:5984/wiki/_design/tapir/wiki.html it should now 
be working.

This should be a pre-requisite step before you manually run ./configure on 
couchdb for Ubuntu 10.04.

Original comment by jmoisesr...@gmail.com on 2 Nov 2010 at 6:22

GoogleCodeExporter commented 9 years ago
Hi,
Thanks for that fix! I hope this solves the problem. Can't test it since I 
couldn't reproduce the problem myself.
BTW I uploaded a new version in a zip file (it is the same as the current 
latest revision) because it appears that people are downloading the zip more 
than cloning the repository. The other zip was quite old already.

Original comment by jeroen....@gmail.com on 5 Nov 2010 at 11:26

GoogleCodeExporter commented 9 years ago
Below are enhanced instructions to the workaround. I was able to reproduce it 
with a Ubuntu 10.04 install and also build everything (erlang, couchdb, 
couchapp, tapirwiki) from source code and not from aptitude. I was able to 
reproduce it on a physical machine as well as in a virtual environment. The 
main culprit is xulrunner. I am glad I can contribute this fix. Tapirwiki is 
great. I use it all the time to document. It is a minimalist design, fast, and 
gets the wiki job done.

Enhanced workaround instructions:

Before fixing, one should always first stop couchdb

> sudo /etc/init.d/couchdb stop

HERE IS THE WORKAROUND FOR xulrunner issue.

http://wiki.apache.org/couchdb/Installing_on_Ubuntu

> sudo vi /etc/ld.so.conf.d/xulrunner.conf

Note: To check what XULRunner version you have installed use xulrunner -v

Then add the following lines to the file (You may need to change the library 
version to match whats installed):

/usr/lib/xulrunner-x.x.x.x
/usr/lib/xulrunner-devel-x.x.x.x
Once the configuration files is created and saved, you will need to run 
ldconfig:

> sudo /sbin/ldconfig

Now start couchdb again to see different behavior.

> sudo /etc/init.d/couchdb start

This solution is referenced in this bug report @ 
https://bugs.launchpad.net/ubuntu/+source/xulrunner-1.9/+bug/557275

On a browser go to 
http://127.0.0.1:5984/wiki/_design/tapir/wiki.html

Original comment by jmoisesr...@gmail.com on 5 Nov 2010 at 2:34