knowledgetree suddenly stopped working (cannot login)
Im at wits' end with my knowledgetree install. Its been working flawlessly for years, then suddenly it stopped working. It stopped within the last 2 months or so since Ive used it around September and was working more than fine.
Basically, I cant login. I can access the login page, enter my username & password, and if I either click "Login" or press enter, the credentials disappears and I just stay on the login page. No "wrong username/password" error messages, nothing. Before when I mistyped something, I would see a yellow box saying "Wrong username or password" but now there is nothing. Searching my server's logs, I cant find anything useful (or out of the ordinary). The only thing I can think of is fiddling with Apache's config about 3 weeks ago to install newznab which somehow required a virtualhost to run.. The php log file has tons or warnings and deprecated stuff from knowledgetree but if I recall correctly, there warnings were there since install about 2 years ago so I dont think they are related. My apache VH file looks like: Code:
NameVirtualHost *:80 Code:
[31-Dec-2012 14:56:01] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/zend/lib/php_extensions/imap.so' - libgssapi_krb5.so.2: cannot open shared object file: No such file or directory in Unknown on line 0 If there are people out there who could help me, Id appreciate more than you can imagine.. |
I haven't touched KT for years but you could try adding custom logging to your vhost config to separate out any KT stuff:
Code:
<VirtualHost *:80> |
Unfortunately, adding these lines for the logs doesnt work. The logs are staying empty. Nothing in them..
Strange, maybe I am paranoid, but would the fact that KT has become commercial only had something to do with this???? |
I think it may have something to do with the requirement for newznab for innodb databases... Since I installed KT, I was using slackware's default mysqld configuration (MyISAM I suppose???) until I installed newznab. Then I changed the "default-storage-engine" parameter within /etc/my.cnf to InnoDB and restarted mysqld.
All seems to have worked fine for my 9 other databases... No application has reported problems so far and I am using them profusely (Horde, rssLounge, MediaWiki, zoneminder...) From an old cached thread on KT's forums: Quote:
Is there any way to determine if its not the database creating problems?? If I could eliminate the mysql/database side, that would help.. Thanks!! |
Around Dec. 20, I ran out of disk space where the databases were stored. I have found this in mysql's logs:
Code:
121216 12:45:43 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql |
Assuming you've freed up space the db should recover .. is there anything further in the logs ?
|
I went through the whole log line by line and prior to the code below, nothing to flag, but since the 16th of dec (which includes the log output of my first post):
Code:
121216 12:45:43 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql If there are no significant problems with mysql or if the database backend is not to blame, next I am suspecting that KT got screwed up and confused when I put it in a virtualhost in apache. When I installed KT about 2 years ago, I had no idea how apache worked.. I simply used the default slackware config (I guess no VH, just a webroot). During the install wizard of KT it probably created symlinks and other variables that were formulated to match my apache's config back then. An old forum thread on KT's forums indicated the fact that even changing the values in config.ini did not do anything as this file was only used for install wizard at setup time and not to actually run KT. If you want to change settings or parameters, you have to modify them in KT's database under the "config_settings" table... I am there at this point.. What do you guys think?? |
Hmm .. I think there have been too many things going on, quickest resolution may be to export the db, back up the data and go for a reinstall.
|
oK I have *managed* to find the source files (the install files) somewhere on the web, and extracted everything in the server's webroot. Then if I remember correctly, I installed KT by accessing knowledgetree/setup which would give me a setup wizard and steps to follow. Now I get
Code:
Notice: Use of undefined constant APP_NAME - assumed 'APP_NAME' in /var/www/htdocs/knowledgetree/setup/precheckup.php on line 272 Code:
Forbidden Can you (or anyone else) provide some help?? This is causing a major disruption in my work.. :( I wish I would NEVER tried that KT crap... |
Ok Ive found some interesting info on KT's forum cached forum threads (thanks Google), adding
Code:
AddType text/html .php .phps Then I follow the wizard, and I am offered 3 options: Install KnowledgeTree (Default) Upgrade KnowledgeTree Stack Install Upgrade KnowledgeTree Source Only Install The first option (Install KT) will not allow me to reuse the existing database... The setup wizard says Code:
Database Already Exists, specify a different name The second option (Upgrade KT stack install) ask me to enter the full path of the installation I wish to upgrade... I enter the current directory of the former KT install (in my case /var/www/htdocs/ktree) but I get a red error message saying: Code:
KnowledgeTree installation configuration file not found Code:
/var/www/htdocs/ktree/config Finally, the third option (Upgrade KT Source Only Install) ask me for admin credentials to upgrade the DB. I tried every combination of credentials I could think of (mysql's admin user, KT, admin user, KT's normal user, the server's root account) but I always get an error saying: Code:
Could Not Authenticate User |
Fixed.... I destroyed everything (created backups prior to doing so), and re-installed KT, reimported the database and the documents folder, and its working fine now... Not sure though why KT did not like the Apache's config changes. Poorly coded application I am thinking but Im not a coder myself so I am restricting my comments.
|
All times are GMT -5. The time now is 12:52 AM. |