2010/01/08 09:33

에러 발생 상황

bitnami로 설치한 redmine에서 htttp://url은 잘 보이는데 http://url/redmine에서 503 에러가 발생
서버를 비정상적으로 종료하면 발생

에러 메시지

[root@localhost ~]# /etc/init.d/bitnami-drupal start
/opt/redmine-0.8.7-0/mysql/scripts/ctl.sh : mysql  (pid 2884) already running
starting port 3001
** !!! PID file tmp/pids/mongrel.3001.pid already exists.  Mongrel could be running already.  Check your log/mongrel.3001.log for errors.
** !!! Exiting with error.  You must stop mongrel and clear the .pid before I'll attempt a start.

starting port 3002
** !!! PID file tmp/pids/mongrel.3002.pid already exists.  Mongrel could be running already.  Check your log/mongrel.3002.log for errors.
** !!! Exiting with error.  You must stop mongrel and clear the .pid before I'll attempt a start.

Syntax OK
/opt/redmine-0.8.7-0/apache2/scripts/ctl.sh : httpd (pid 2949) already running
/opt/redmine-0.8.7-0/subversion/scripts/ctl.sh : subversion  (pid 2962) already running

에러발생 원인

비정상적인 종료로 인해 PID 파일이 정상적으로 처리되지 않음


해결방법

간단하다. 문제가 되는 파일을 삭제하고 redmine을 다시 시작한다.

[root@localhost ~]# rm /opt/redmine-0.8.7-0/apps/redmine/tmp/pids/mongrel.3001.pid
rm: remove 일반 파일 `/opt/redmine-0.8.7-0/apps/redmine/tmp/pids/mongrel.3001.pid'? y
[root@localhost ~]# rm /opt/redmine-0.8.7-0/apps/redmine/tmp/pids/mongrel.3002.pid
rm: remove 일반 파일 `/opt/redmine-0.8.7-0/apps/redmine/tmp/pids/mongrel.3002.pid'? y
[root@localhost ~]# /etc/init.d/bitnami-drupal stop
/opt/redmine-0.8.7-0/subversion/scripts/ctl.sh : subversion stopped
Syntax OK
/opt/redmine-0.8.7-0/apache2/scripts/ctl.sh : httpd stopped
already stopped port 3001
already stopped port 3002
/opt/redmine-0.8.7-0/mysql/scripts/ctl.sh : mysql stopped
[root@localhost ~]# /etc/init.d/bitnami-drupal start
100108 09:30:08 mysqld_safe Logging to '/opt/redmine-0.8.7-0/mysql/data/mysqld.log'.
100108 09:30:08 mysqld_safe Starting mysqld.bin daemon with databases from /opt/redmine-0.8.7-0/mysql/data
/opt/redmine-0.8.7-0/mysql/scripts/ctl.sh : mysql  started at port 3306
starting port 3001
starting port 3002
Syntax OK
/opt/redmine-0.8.7-0/apache2/scripts/ctl.sh : httpd started at port 80
/opt/redmine-0.8.7-0/subversion/scripts/ctl.sh : subversion started at port 3690



크리에이티브 커먼즈 라이선스
Creative Commons License
1 ... 38 39 40 41 42 43 44 45 46 ... 82