Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wired@desktop:/etc/init.d$ sudo /etc/init.d/postgresql restart
- + [ -r /usr/share/postgresql-common/init.d-functions ]
- + . /usr/share/postgresql-common/init.d-functions
- + . /lib/lsb/init-functions
- + FANCYTTY=
- + [ -e /etc/lsb-base-logging.sh ]
- + . /etc/lsb-base-logging.sh
- + LOG_DAEMON_MSG=
- + [ -n ]
- + get_versions
- + versions=
- + local v
- + ls /usr/lib/postgresql/
- + [ -x /usr/lib/postgresql/8.4/bin/pg_ctl ]
- + [ ! -x /etc/init.d/postgresql-8.4 ]
- + versions= 8.4
- + restart 8.4
- + do_ctl_all restart 8.4 Restarting PostgreSQL 8.4 database server
- + [ restart ]
- + [ 8.4 ]
- + [ -d /etc/postgresql/8.4 ]
- + ls /etc/postgresql/8.4
- + [ main ]
- + [ -x /usr/lib/postgresql/8.4/bin/postmaster ]
- + status=0
- + log_daemon_msg Restarting PostgreSQL 8.4 database server
- + [ -z Restarting PostgreSQL 8.4 database server ]
- + log_use_fancy_output
- + TPUT=/usr/bin/tput
- + EXPR=/usr/bin/expr
- + [ -t 1 ]
- + [ xxterm != x ]
- + [ xxterm != xdumb ]
- + [ -x /usr/bin/tput ]
- + [ -x /usr/bin/expr ]
- + /usr/bin/tput hpa 60
- + /usr/bin/tput setaf 1
- + [ -z ]
- + FANCYTTY=1
- + true
- + /usr/bin/tput xenl
- + /usr/bin/tput cols
- + COLS=118
- + [ 118 ]
- + [ 118 -gt 6 ]
- + /usr/bin/expr 118 - 7
- + COL=111
- + log_use_plymouth
- + [ n = y ]
- + plymouth --ping
- + printf * Restarting PostgreSQL 8.4 database server
- * Restarting PostgreSQL 8.4 database server + /usr/bin/expr 118 - 1
- + /usr/bin/tput hpa 117
- + printf
- + [ -e /etc/postgresql/8.4/main/postgresql.conf ]
- + basename /etc/postgresql/8.4/main
- + name=main
- + [ -e /etc/postgresql/8.4/main/start.conf ]
- + sed s/#.*$//; /^[[:space:]]*$/d; s/^\s*//; s/\s*$// /etc/postgresql/8.4/main/start.conf
- + start=auto
- + [ auto = auto ]
- + log_progress_msg main
- + :
- + set +e
- + [ restart = stop ]
- + [ restart = restart ]
- + pg_ctlcluster --force 8.4 main restart
- + ERRMSG=The PostgreSQL server failed to start. Please check the log output:
- 2011-05-22 02:34:58 EDT LOG: could not bind IPv4 socket: Address already in use
- 2011-05-22 02:34:58 EDT HINT: Is another postmaster already running on port 5432? If not, wait a few seconds and retry.
- 2011-05-22 02:34:58 EDT WARNING: could not create listen socket for "127.0.0.1"
- 2011-05-22 02:34:58 EDT FATAL: could not create shared memory segment: Invalid argument
- 2011-05-22 02:34:58 EDT DETAIL: Failed system call was shmget(key=5432001, size=37879808, 03600).
- 2011-05-22 02:34:58 EDT HINT: This error usually means that PostgreSQL's request for a shared memory segment exceeded your kernel's SHMMAX parameter. You can either reduce the request size or reconfigure the kernel with larger SHMMAX. To reduce the request size (currently 37879808 bytes), reduce PostgreSQL's shared_buffers parameter (currently 4096) and/or its max_connections parameter (currently 103).
- If the request size is already small, it's possible that it is less than your kernel's SHMMIN parameter, in which case raising the request size or reconfiguring SHMMIN is called for.
- The PostgreSQL documentation contains more information about shared memory configuration.
- + res=1
- + set -e
- + [ 1 -eq 0 ]
- + [ 1 -eq 2 ]
- + status=1
- + [ 1 -ne 0 -a -n The PostgreSQL server failed to start. Please check the log output:
- 2011-05-22 02:34:58 EDT LOG: could not bind IPv4 socket: Address already in use
- 2011-05-22 02:34:58 EDT HINT: Is another postmaster already running on port 5432? If not, wait a few seconds and retry.
- 2011-05-22 02:34:58 EDT WARNING: could not create listen socket for "127.0.0.1"
- 2011-05-22 02:34:58 EDT FATAL: could not create shared memory segment: Invalid argument
- 2011-05-22 02:34:58 EDT DETAIL: Failed system call was shmget(key=5432001, size=37879808, 03600).
- 2011-05-22 02:34:58 EDT HINT: This error usually means that PostgreSQL's request for a shared memory segment exceeded your kernel's SHMMAX parameter. You can either reduce the request size or reconfigure the kernel with larger SHMMAX. To reduce the request size (currently 37879808 bytes), reduce PostgreSQL's shared_buffers parameter (currently 4096) and/or its max_connections parameter (currently 103).
- If the request size is already small, it's possible that it is less than your kernel's SHMMIN parameter, in which case raising the request size or reconfiguring SHMMIN is called for.
- The PostgreSQL documentation contains more information about shared memory configuration. ]
- + log_failure_msg The PostgreSQL server failed to start. Please check the log output:
- 2011-05-22 02:34:58 EDT LOG: could not bind IPv4 socket: Address already in use
- 2011-05-22 02:34:58 EDT HINT: Is another postmaster already running on port 5432? If not, wait a few seconds and retry.
- 2011-05-22 02:34:58 EDT WARNING: could not create listen socket for "127.0.0.1"
- 2011-05-22 02:34:58 EDT FATAL: could not create shared memory segment: Invalid argument
- 2011-05-22 02:34:58 EDT DETAIL: Failed system call was shmget(key=5432001, size=37879808, 03600).
- 2011-05-22 02:34:58 EDT HINT: This error usually means that PostgreSQL's request for a shared memory segment exceeded your kernel's SHMMAX parameter. You can either reduce the request size or reconfigure the kernel with larger SHMMAX. To reduce the request size (currently 37879808 bytes), reduce PostgreSQL's shared_buffers parameter (currently 4096) and/or its max_connections parameter (currently 103).
- If the request size is already small, it's possible that it is less than your kernel's SHMMIN parameter, in wh+ [ -t 1 ]
- + [ xxterm != x ]
- + [ xxterm != xdumb ]
- + [ -x /usr/bin/tput ]
- + [ -x /usr/bin/expr ]
- + /usr/bin/tput hpa 60
- + /usr/bin/tput setaf 1
- + [ -z 1 ]
- + true
- + true
- + /usr/bin/tput setaf 1
- + RED=
- + /usr/bin/tput op
- + NORMAL=
- + echo * The PostgreSQL server failed to start. Please check the log output:
- 2011-05-22 02:34:58 EDT LOG: could not bind IPv4 socket: Address already in use
- 2011-05-22 02:34:58 EDT HINT: Is another postmaster already running on port 5432? If not, wait a few seconds and retry.
- 2011-05-22 02:34:58 EDT WARNING: could not create listen socket for "127.0.0.1"
- 2011-05-22 02:34:58 EDT FATAL: could not create shared memory segment: Invalid argument
- 2011-05-22 02:34:58 EDT DETAIL: Failed system call was shmget(key=5432001, size=37879808, 03600).
- 2011-05-22 02:34:58 EDT HINT: This error usually means that PostgreSQL's request for a shared memory segment exceeded your kernel's SHMMAX parameter. You can either reduce the request size or reconfigure the kernel with larger SHMMAX. To reduce the request size (currently 37879808 bytes), reduce PostgreSQL's shared_buffers parameter (currently 4096) and/or its max_connections parameter (currently 103).
- If the request size is already small, it's possible that it is less than your kernel's SHMMIN parameter, in which case raising the request size or reconfiguring SHMMIN is called for.
- The PostgreSQL documentation contains more information about shared memory configuration.
- * The PostgreSQL server failed to start. Please check the log output:
- 2011-05-22 02:34:58 EDT LOG: could not bind IPv4 socket: Address already in use
- 2011-05-22 02:34:58 EDT HINT: Is another postmaster already running on port 5432? If not, wait a few seconds and retry.
- 2011-05-22 02:34:58 EDT WARNING: could not create listen socket for "127.0.0.1"
- 2011-05-22 02:34:58 EDT FATAL: could not create shared memory segment: Invalid argument
- 2011-05-22 02:34:58 EDT DETAIL: Failed system call was shmget(key=5432001, size=37879808, 03600).
- 2011-05-22 02:34:58 EDT HINT: This error usually means that PostgreSQL's request for a shared memory segment exceeded your kernel's SHMMAX parameter. You can either reduce the request size or reconfigure the kernel with larger SHMMAX. To reduce the request size (currently 37879808 bytes), reduce PostgreSQL's shared_buffers parameter (currently 4096) and/or its max_connections parameter (currently 103).
- If the request size is already small, it's possible that it is less than your kernel's SHMMIN parameter, in which case raising the request size or reconfiguring SHMMIN is called for.
- The PostgreSQL documentation contains more information about shared memory configuration.
- + log_end_msg 1
- + [ -z 1 ]
- + [ 111 ]
- + [ -x /usr/bin/tput ]
- + log_use_plymouth
- + [ n = y ]
- + plymouth --ping
- + printf \r
- + /usr/bin/tput hpa 111
- + [ 1 -eq 0 ]
- + printf [
- [+ /usr/bin/tput setaf 1
- + printf fail
- fail+ /usr/bin/tput op
- + echo ]
- ]
- + return 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement