How to export from Redis to MongoDB? (My database got wiped)
-
Of course it has write access there, I've been running the forums for many months and I have taken backups along the way every now and then and the dump.rdb has been alive and well.
When the crash happened -> dump.rdb was suddenly 4 bytes in size instead of the usual ~13 mb.
Which config do you wish to see? /etc/redis/redis.conf?
It's 100% default except now after the second crash I switched appendonly to yes, ie. I'm now using appendonly.aof + dump.rdb both.
Do you still want to see it ... ?
-
We want to see all the configs!
-
Here is /etc/redis/redis.conf:
http://pastie.org/private/rehppriwl3yfgcmkk4gtqAnd it would be a lot more productive to say exactly which configs instead of "all of them" since I'm not power user - I don't know what you're talking about.
Like I said I have default settings except those which I've configured through ACP.
So tell me the config file names and paths and I'll see what I can pull up.
-
@Pilvinen I hope you have a password for Redis...
Otherwise I haven't found any issue.What you can also try is the following:
service redis-server stop
apt-get remove redis*
apt-get purge redis*apt-get install redis-server
So you have a fresh reinstall.
-
@AOKP said:
@Pilvinen I hope you have a password for Redis...
Otherwise I haven't found any issue.Well, since you can only connect to the database from the local machine I don't really see the point. If someone would compromise my system so far that they have access to the server's account then password protecting the database wouldn't really help at that point.
-
If there's no firewall it's completely possible
-
Hi @Pilvinen
I hope you didn't
purge
redis, already. That could have deleted the log file, as well.I'm curious about the contents of two files:
- /var/log/redis/redis-server.log
- /path/to/nodebb/log/nodebb.log
Like all the others, I suspect redis itself to be the source of failure here. NodeBB uses the DB's
flush
(wipe all data) only in its tests; even there on a test-databse you'd have to set up explicitly. -
@Kowlin I had exactly the same problem today.
overnight the redis db went empty.
persistence is enabled in the config as the config file is more or less the default one comming with the software. the only line changed is the name of the database file to save the data into. -
Hi guys,
Experienced the same last night too, and again today!
logs (redis,nginx,nodebb) says everything is fine, it's just amazing.
I wrote a blog article on this problem with all my configuration/log files and what I've done to investigate but with no luck
you can read full article here
Any ideas are welcome, since I'm not the 1st having this problem@Pilvinen would you share your bash backup scripts ?
-
@Charly86 @Pilvinen @wellenreiter What version of redis are you guys on?
-
I use Redis 3.0.5 and I got it running since May.
Never had a problem except once, but it was my own fold as I overwrote the database during a NodeBB upgrade.Do you guys all use OVH?
I cannot confirm any of this issues for me Redis seems to just work fine.