Apache web server and mysql both making issues
I am trying to run a software called devstack which has been configured
with apache and mysql as one of its service. Firstly my machine space is
full with /dev/sda1 (100% usage) as below
df: `/var/lib/lightdm/.gvfs': Permission denied
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 20G 19G 32K 100% /
udev 494M 4.0K 494M 1% /dev
tmpfs 201M 792K 200M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 502M 4.0K 502M 1% /run/shm
cgroup 502M 0 502M 0% /sys/fs/cgroup
student@csvm2C4D:~$
I had my apache and mysql working very well for more days all of a sudden
I found no response from apache for a django project link that I ran. It
showed me a mod_wsgi version change error.
Then as a step towards sorting it out, I tried restarting the devstack
software, which did not get stacked. It gave me an error stating that
mysql need to be restart as follows.
++ sudo mysql -uroot -pbakya -h127.0.0.1 -e 'GRANT ALL PRIVILEGES ON *.*
TO '\''root'\''@'\''%
'\'' identified by '\''bakya'\'';'
ERROR 2003 (HY000): Can't connect to MySQL server on '127.0.0.1' (111)
++ sudo sed -i '/^bind-address/s/127.0.0.1/0.0.0.0/g' /etc/mysql/my.cnf
++ sudo grep -q default-storage-engine /etc/mysql/my.cnf
++ sudo bash -c 'source /home/student/devstack/functions; iniset
/etc/mysql/my.cnf mysqld defa
ult-
storage-engine InnoDB'
++ sudo sed -i /log.slow.queries/d /etc/mysql/my.cnf
++ sudo sed -i -e '/^\[mysqld\]/ a log-slow-queries =
/var/log/mysql/mysql-slow.log' /etc/mysq
l/my.cnf
++ sudo sed -i /long.query.time/d /etc/mysql/my.cnf
++ sudo sed -i -e '/^\[mysqld\]/ a long-query-time = 0' /etc/mysql/my.cnf
++ sudo sed -i /log.queries.not.using.indexes/d /etc/mysql/my.cnf
++ sudo sed -i -e '/^\[mysqld\]/ a log-queries-not-using-indexes'
/etc/mysql/my.cnf
++ restart_service mysql
++ is_ubuntu
++ [[ -z deb ]]
++ '[' deb = deb ']'
++ sudo /usr/sbin/service mysql restart
stop: Unknown instance:
start: Job failed to start
+++ failed
+++ local r=1
++++ jobs -p
+++ kill
+++ set +o xtrace
Can someone please tell me if both the error is due to lack of memory ?
And please suggest me with some advice on how to free the space in my VM ?
and how to get these two issues sorted ?
Thank you in advance!!
No comments:
Post a Comment