Sto costruendo una VM di MongoDB e non riesco nemmeno a farlo funzionare. L'uscita è la seguente:Errore di Mongodb su Debian
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
[master 462b01d] saving uncommitted changes in /etc prior to apt run
Author: root <[email protected]>
1 files changed, 5 insertions(+), 5 deletions(-)
Setting up mongodb-10gen (2.4.5) ...
Starting database: mongodb failed!
invoke-rc.d: initscript mongodb, action "start" failed.
dpkg: error processing mongodb-10gen (--configure):
subprocess installed post-installation script returned error exit status 1
configured to not write apport reports
Errors were encountered while processing:
mongodb-10gen
E: Sub-process /usr/bin/dpkg returned an error code (1)
[email protected]:~#
ho seguito il funzionario install instructions dal sito MongoDB. Ho trovato this patch fix ma questo non risolve l'errore, ma ne getta uno nuovo. Ho anche visto rimuovere un pacchetto errato da dpkg/status in grado di correggere l'errore ma non saprei nemmeno da dove cominciare.
EDIT 1
ho seguito la procedura descritta nella parte superiore voted answer here e ora posso accedere alla shell mongo, ma quando ho service mongodb start
ancora dice fallito. Non ero in grado di accedere alla shell prima, quindi è qualcosa, sì?
[email protected]:~# service mongodb start
Starting database: mongodb failed!
[email protected]:~# mongo
MongoDB shell version: 2.4.5
connecting to: test
Welcome to the MongoDB shell.
For interactive help, type "help".
For more comprehensive documentation, see
http://docs.mongodb.org/
Questions? Try the support group
http://groups.google.com/group/mongodb-user
> ^C
bye
[email protected]:~#
Perché sarebbe questo aiuto? Questo potrebbe rompere altre cose che richiedono il nome host localhost giusto? – UpTheCreek
Beh, se lo commentate per installare Mongo, allora cambiatelo non sta davvero distruggendo nulla. Per me è stato utile 6 o 7 volte quando stavo creando il mio cluster. Teoricamente potrebbe rompere altre cose, ma d'altra parte perché ogni applicazione dovrebbe avere fiducia in un valore che chiunque può cambiare? Anche le app usano 127.0.0.1 e :: 1 e non localhost per un motivo. –