Falha na instalação do MongoDB via SoftwareCenter

0

Instalei o mongodb no Ubuntu Software Center, mas quando quero executá-lo a partir da linha de comando, recebo uma mensagem de erro como:

mongod --help for help and startup options
Sun Feb 12 10:51:14 [initandlisten] MongoDB starting : pid=2613 port=27017                  dbpath=/data/db/ 64-bit 
Sun Feb 12 10:51:14 [initandlisten] db version v1.8.2, pdfile version 4.5
Sun Feb 12 10:51:14 [initandlisten] git version: nogitversion
Sun Feb 12 10:51:14 [initandlisten] build sys info: Linux allspice 2.6.24-28-server #1 SMP Wed Aug 18 21:17:51 UTC 2010 x86_64 BOOST_LIB_VERSION=1_46_1
Sun Feb 12 10:51:14 [initandlisten] exception in initAndListen std::exception: Unable to create / open lock file for lockfilepath: /data/db/mongod.lock errno:13 Permission denied, terminating
Sun Feb 12 10:51:14 dbexit: 
Sun Feb 12 10:51:14 [initandlisten] shutdown: going to close listening sockets...
Sun Feb 12 10:51:14 [initandlisten] shutdown: going to flush diaglog...
Sun Feb 12 10:51:14 [initandlisten] shutdown: going to close sockets...
Sun Feb 12 10:51:14 [initandlisten] shutdown: waiting for fs preallocator...
Sun Feb 12 10:51:14 [initandlisten] shutdown: closing all files...
Sun Feb 12 10:51:14 closeAllFiles() finished
Sun Feb 12 10:51:14 [initandlisten] shutdown: removing fs lock...
Sun Feb 12 10:51:14 [initandlisten] couldn't remove fs lock errno:9 Bad file descriptor
Sun Feb 12 10:51:14 dbexit: really exiting now

Eu tentei criar um repertório / data / db da minha raiz, mas por alguma razão não está funcionando. Alguém tem um ponteiro?

    
por S4M 12.02.2012 / 11:06

1 resposta

2

Que tipo de sistema de arquivos está usando em /data/.. ? Eu imagino que poderia ser um problema se você estiver usando NTFS nesse ponto de montagem.

Outro problema pode ser a versão do BOOST que você instalou. Não tenho certeza se o MongoDB funcionará com o BOOST 1.46. Na descrição da versão para o Windows , eles afirmam:

% bl0ck_qu0te%     
por JJD 28.04.2012 / 16:30
yii\base\ErrorException
Copied! Copy Stacktrace Search Stackoverflow Search Google Error

PHP Core Warning – yii\base\ErrorException

PHP Startup: Unable to load dynamic library 'memcached.so' (tried: /usr/lib/php/20190902/memcached.so (/usr/lib/php/20190902/memcached.so: undefined symbol: igbinary_serialize), /usr/lib/php/20190902/memcached.so.so (/usr/lib/php/20190902/memcached.so.so: cannot open shared object file: No such file or directory))

$_GET = [
    'id' => '173028',
    'url' => 'installation-of-mongodb-via-softwarecenter-failed',
];

$_COOKIE = [
    'advanced-frontend' => 'dcrfhjr3a4908fga2frke4lnrq',
    '_csrf-frontend' => 'fa68e7e2b959a82c0a043643c37420c8e0a208b94e4cea1e00edeefe5f774252a:2:{i:0;s:14:"_csrf-frontend";i:1;s:32:"P4O_gr7DHWYjkdtecyOEyF1uhbYjOysT";}',
];

$_SESSION = [
    '__flash' => [],
];