Can't login as 'admin'

2 views
Skip to first unread message

Ben Aurel

unread,
Aug 7, 2008, 4:58:51 PM8/7/08
to nurp...@googlegroups.com
hi

According to wiki:
-------------------
Test it!
Point your browser to http://localhost:8080/view?p=WikiStart and login
as "admin" (leave the password field empty).
-------------------

this doesn't work. I get an ERROR 500

ben

Janne Hellsten

unread,
Aug 7, 2008, 5:04:52 PM8/7/08
to nurp...@googlegroups.com
This is very strange. I've never seen this problem and I haven't
heard anyone report this. Can you post what the error log looks like?
What browser do you use?

I haven't tried Nurpawiki on the latest Ocsigen, the last version I
tested with was Ocsigen 1.0.x. I guess I should test Nurpawiki with
the latest Ocsigen and see if I can reproduce.

Sorry to hear you've needed to go through so much trouble to get this
stuff working. It would be so much nicer to have just a Debian
package for it.

Janne

Janne Hellsten

unread,
Aug 7, 2008, 5:30:03 PM8/7/08
to nurp...@googlegroups.com
What happens if you try admin and password 'foo'? Do you get the same
error or are you taken back to the same login screen?

Janne

On Thu, Aug 7, 2008 at 11:58 PM, Ben Aurel <ben....@gmail.com> wrote:
>

Ben Aurel

unread,
Aug 7, 2008, 5:32:50 PM8/7/08
to nurp...@googlegroups.com
no I get the same error

Janne Hellsten

unread,
Aug 7, 2008, 5:34:43 PM8/7/08
to nurp...@googlegroups.com
What's in the Ocsigen log?

I just tried Nurpawiki using all the latest libraries from GODI but I
cannot reproduce this.

Janne

Ben Aurel

unread,
Aug 7, 2008, 5:42:31 PM8/7/08
to nurp...@googlegroups.com
I've attached the log files from /nurpawiki/nurpawiki-read-only/var/log
access.log
errors.log
warnings.log

Ben Aurel

unread,
Aug 7, 2008, 5:44:53 PM8/7/08
to nurp...@googlegroups.com
I think in one pointer to the solution is in warnings.log:

2008-08-07 17:44:03 - Exn during page generation: Sqlite3.Error("error
opening database: unable to open database file") (sending 500)

Ben Aurel

unread,
Aug 7, 2008, 5:51:00 PM8/7/08
to nurp...@googlegroups.com
this whats installed in godi:

[157] godi-sqlite3 1.0.3 1.0.3 Bindings for SQLite3
database clients

this whats installed with apt:

$ aptitude search libsqlite3-dev
i libsqlite3-dev - SQLite 3
development files

Janne Hellsten

unread,
Aug 8, 2008, 3:47:25 AM8/8/08
to nurp...@googlegroups.com
It looks as if Ocsigen is not able to create its SQLite database file
in var/lib directory. Does this directory exist? From the
http://code.google.com/p/nurpawiki/wiki/NurpawikiGodiInstallation:

8<
Start Nurpawiki!

Provided everything installed the right way and you configured
everything the right way, you can now start Nurpawiki:

* mkdir -p var/run var/lib var/log
* ocsigen -v -c path/to/your/local/nurpawiki.conf

Trouble shooting

* No database found? Need to install database. See
DatabaseInstallationDebian.
* Cannot authenticate? See above.
* Can't find var/log or var/run directories? You need to have them
in whichever directory you choose to start nurpawiki/ocsigen from.
Creating:
o mkdir -p var/lib
o mkdir -p var/run
o mkdir -p var/log
o Or you can edit your nurpawiki.conf to point these to an
existing directory.
8<

My trouble shooting section didn't include var/lib but the mkdir part
under starting nurpawiki did mention this.

I think Ocsigen could issue a more readable error message for this
case. E.g., it could tell where did it try to create this file
instead of just saying it's unable to open it. I'll file a bug report
to Ocsigen's trac.

Janne

Ben Aurel

unread,
Aug 9, 2008, 9:23:21 AM8/9/08
to nurp...@googlegroups.com
>mkdir -p var/lib
this line was missing in the wiki at the time I was installing
nurpawiki. After creating that folder nurpawiki allow the login for
'admin' (pw: empty).

thanks
ben

Janne Hellsten

unread,
Aug 9, 2008, 9:44:35 AM8/9/08
to nurp...@googlegroups.com
Yes, this was missing from the troubleshooting section. A better way
to attack this problem would be to somehow automate installation so
that users wouldn't need to do so many steps to get the wiki working.
A Debian package for Nurpawiki would get rid of many of these
problems. Unfortunately I'm not familiar with developing Debian
packages and haven't been willing to put the time and effort into
learning how to do that.

Thanks for your patience and hope Nurpawiki works out for you now :)

Janne

Reply all
Reply to author
Forward
0 new messages