Username
Forgot password?
Welcome to our site!
Or Join with FTTF

Error after Installation

0

2893 views
I installed everything to get LampCMS up and running but when I visit index.php I get the following error:

Exception class: MongoException
Message:size of BSON doc is 83 bytes, max is 0
 in file: /home/username/mydomain.com/lib/Lampcms/Cache/Mongo.php
 line: 155
 trace: #0 /home/username/mydomain.com/lib/Lampcms/Cache/Mongo.php(155): MongoCollection->ensureIndex(Array)
#1 /home/username/mydomain.com/lib/Lampcms/Cache/Mongo.php(113): Lampcms\Cache\Mongo->__construct(Object(Mongo), 'LAMPCMS', 'C_Cache')
#2 /home/username/mydomain.com/lib/Lampcms/Cache/Cache.php(146): Lampcms\Cache\Mongo::factory(Object(Lampcms\Registry))
#3 /home/username/mydomain.com/lib/Lampcms/Registry.php(227): Lampcms\Cache\Cache->__construct(Object(Lampcms\Registry))
#4 /home/username/mydomain.com/lib/Lampcms/Registry.php(506): Lampcms\{closure}(Object(Lampcms\Registry))
#5 /home/username/mydomain.com/lib/Lampcms/Registry.php(483): Lampcms\{closure}(Object(Lampcms\Registry))
#6 /home/username/mydomain.com/lib/Lampcms/Registry.php(211): Lampcms\Registry->__get('Cache')
#7 /home/username/mydomain.com/lib/Lampcms/Registry.php(506): Lampcms\{closure}(Object(Lampcms\Registry))
#8 /home/username/mydomain.com/lib/Lampcms/Registry.php(483): Lampcms\{closure}(Object(Lampcms\Registry))
#9 /home/username/mydomain.com/www/index.php(70): Lampcms\Registry->__get('Tr')
#10 {main}


This is using the zip distribution off of the website.

(I also tried to use the dev version off of GitHub but there appears to be some errors in the !inc.php file. I haven't tried to sort them out yet because they are in the debug functions so the error trace takes you in circles.)

EDIT:

Ok, some more investigating shows the following error in my server error log.

[error] File does not exist: /home/username/mydomain.com/www/{ _DIR_ }, referer: http://mydomain.com/index.php


Of course, username and mydomain.com both have valid values. I've stripped them here for privacy. It looks like that url part is not being resolved correctly.

EDIT 2

After fighting for a while, I decided to try out MongoHQ DB hosting to see if Mongo was the problem. Using MongoHQ I now get a brand new error:

Error: unauthorized db:ws_lampcms ns:ws_lampcms.C_Cache lock type:0


I'm using !config.ini settings like the following:

[MONGO]
server = "mongodb://<user>:<password>@alex.mongohq.com:10092"
db = "ws_lampcms"
; If you already have existing
; Mongo Database with existing collections
; you may want to set the prefix
; all collections used by this program will
; be prefixed with this word.
; For example you may set prefix to "Lampcms"
; then collection USERS will become LampcmsUSERS
; This will take care of possible name collisions with
; existing collections
prefix = "Lampcms"

[CACHE_MONGO]
; good option to use the same db as in "MONGO" section
db = "ws_lampcms"
collection = "C_Cache"


 
Edited Sep 1, 2012 06:26 PM
added new information
asked August 28, 2012 at 1:17 PM

 us
I've added a space in the url part because the forum is stripping the contents of the curly braces.
flag
Aug 29, 2012 09:45 AM
This error unauthorized db:ws_lampcms is not native mongo error. I guess it's generetad by a MongoHQ. Most likely you now using password OR maybe they don't like something about the connection? Have you asked them about this error?
flag
Sep 1, 2012 06:50 PM
I have not contacted them yet. I am able to connect with these settings using MongoVUE so I think it's fair to assume that the credentials are ok.
flag
Sep 1, 2012 07:15 PM

1 Answer

0
 
This is unusual error. It may have to do with the mongo server.
What version of MongoDB are you using? Also are you on some type of virtual server?
The error message about file does not exist is not related to mongo error. I am not sure what file it was actually looking for, but that's a different error.
flag
answered August 29, 2012 at 7:18 PM
I'm not sure how to check the Mongo version. I'm running this on a Dreamhost VPS. As for the file error, it's trying to find a file named "{ DIR }". It looks like a url part in the PHP is not getting replaced properly.
flag
Aug 29, 2012 09:19 PM
Ugh..it won't let me type the name....it's looking for "curly underscore DIR underscore curly"
flag
Aug 29, 2012 09:20 PM
@Nilpo
did you install mongodb or did dreamhost? In the terminal enter mongo and you should see something like MongoDB shell version: 2.0.6 connecting to: test >
flag
Aug 30, 2012 02:40 AM
Dreamhost installed it. It's running version 1.6.2
flag
Aug 30, 2012 02:10 PM
I Googled for this error, basically I found one similar discussion in which case it was somewhat outdated version of Mongo and also was hosted on server that uses virtualization package. Can you upgrade Mongo?
flag
Aug 30, 2012 06:57 PM
Let me see what I can do.
flag
Sep 1, 2012 02:01 PM
Dreamhost cannot upgrade Mongo right now. As an alternative I tried to use MongoHQ's free db hosting. Please see my edit above.
flag
Sep 1, 2012 06:28 PM

Your answer

Join with account you already have

FTTF

Preview

Alert