rPi Error

Hi all

Have installed the rpi image and all is working.. Well it was even the wifi..

I now get and error when going to the web page 

Can't connect to redis database, it may be that redis-server is not installed or started see readme for redis installation

It was working fine until i did an apt-get update.

Any ideas I'm not get with Linux so may need some baby steps.

Rob

robw's picture

Re: rPi Error

I get this when trying to connect to the db for info..

 

pi@raspberrypi ~ $ sudo redis-cli

Could not connect to Redis at 127.0.0.1:6379: Connection refused

Swuwe's picture

Re: rPi Error

Hello,

I get this error when redis service is not running. Maybe try to (re)start this service with:

1) Login via SSH

2) sudo service redis-server restart

After that I get a new error: Error message: "Can't connect to local MySQL server ..."

That is because MySQL is not running too.

1) Login via SSH

2) sudo /etc/init.d/mysql restart

And then finally everything works. But I have to do this every time my Raspberry reboots (see my post from yesterday...)

 

Swuwe

robw's picture

Re: rPi Error

Well thanks for that. Seems iv filled up the HDD

Only spotted when i tried to restart mysql...

root@raspberrypi:/var/lib/mysql# sudo df -h
Filesystem      Size  Used Avail Use% Mounted on
rootfs          2.6G  2.5G     0 100% /
/dev/root       2.6G  2.5G     0 100% /
devtmpfs        108M     0  108M   0% /dev
tmpfs            24M  268K   23M   2% /run
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs            47M     0   47M   0% /run/shm
/dev/mmcblk0p1   59M   19M   41M  32% /boot
tmpfs            47M     0   47M   0% /tmp

 

pi@raspberrypi ~ $ sudo parted /dev/sda
GNU Parted 2.3
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print                                                           
Model: FUJITSU MHY2160BH (scsi)
Disk /dev/sda: 160GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End     Size    Type     File system  Flags
1      4194kB  62.9MB  58.7MB  primary  fat16        lba
2      62.9MB  2962MB  2899MB  primary  ext4

 

Iv expanded the volume after much head scratching and googles help..

But its still not working...

mysql is running.

but still getting the error

Can't connect to redis database, it may be that redis-server is not installed or started see readme for redis installation
pi@raspberrypi ~ $  sudo redis-cli
Could not connect to Redis at 127.0.0.1:6379: Connection refused
not connected>

thanks

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.