reso
New Member
Posts: 2
|
Post by reso on Jun 3, 2010 23:35:40 GMT 7
I have been using my N5200pro for a couple of years but recently did a little cleanup. I uninstalled a few modules which I no longer use with the idea to add some new ones... Unfortunately I am now unable to get any modules to install.
I have tried about 10 different modules (some old, some new) and can't get a single one to install. The .mod file uploads perfectly fine but the modules fail to show up. Luckily I still have ssh & sys installed so can look inside the raid folder however this is providing little relief as there appears to be nothing out of place.
Is there anyone with a thought on what could be causing the problem? Or if there is a log file I should look at?
Regards,
|
|
reso
New Member
Posts: 2
|
Post by reso on Jun 4, 2010 0:17:16 GMT 7
Solved. However here is some information for people this happens to in the future! There is 2 issues which caused my own personal problems: make sure that there is a "tmp" folder in "/raid/data/" and that it's owner and group are both "root" (from your sys account use the 'su' command to become root) if there is a problem with your module database becoming corrupt do the following: /opt/bin/sqlite /raid/data/module/cfg/module.db
sqlite> .output /raid/data/module/cfg/sql sqlite> .dump mod sqlite> .dump module sqlite> .quit
mv /raid/data/module/cfg/module.db /raid/data/module/cfg/module.db-old
/opt/bin/sqlite /raid/data/module/cfg/module.db
sqlite> .read /raid/data/module/cfg/sql sqlite> .quit that will basically re-build the database. If it's more broken that that then you can basically ignore all that above and do the following: mv /raid/data/module /raid/data/module.old mkdir /raid/data/module mkdir /raid/data/module/bin mkdir /raid/data/module/cfg mkdir /raid/data/module/lib mkdir /raid/data/module/log mkdir /raid/data/module/cfg/module.rc /opt/bin/sqlite /raid/data/module/cfg/module.db "create table mod (module text, gid numeric, predicate text, object text);" /opt/bin/sqlite /raid/data/module/cfg/module.db "create table module (name text, version text, description text, enable text, updateurl text, icon text, mode text, homepage text, ui text);" this should create a new module directory ready for your to make use of (you will loose all your previous modules of course!) Regards,
|
|