Added by Piotr F almost 4 years ago
Hi,
I am not too familiar with LAMP, but here is what happened just an hour ago:
did the regular update from 12.0.2 to 12.0.3,
all fine, admin center output correct: 12.0.3, postgresql 13.5
then VPS, Ubuntu 20.04 LTS, demanded reboot.
Did it.
And bang, the website with OP does not work at all: ERR_CONNECTION_REFUSED
So I did this:
sudo cat /etc/openproject/installer.dat | grep postgres/autoinstall
and got:
postgres/autoinstall skip
But this output is very strange then:
pg_lsclusters
Ver Cluster Port Status Owner Data directory Log file
10 main 5432 online postgres /var/lib/postgresql/10/main /var/log/postgresql/postgresql-10-main.log
13 main 5432 down postgres /var/lib/postgresql/13/main /var/log/postgresql/postgresql-13-main.log
Why aye? Why aye man?!
Anybody could help?
I realize I have to turn off v.10, and turn on v.13, but how to do it?
Will be very grateful for any clues and hints.
Cheers,
Piotr
Replies (4)
Would be happy if I could do some typing changes in any of conf files, instead of going through all reconfigure stuff.
I stopped postgresql 10, ran 13, still nothing, same result as above.
Here we go:
pg_lsclustersVer Cluster Port Status Owner Data directory Log file10 main 5432 down postgres /var/lib/postgresql/10/main /var/log/postgresql/postgresql-10-main.log13 main 5432 online postgres /var/lib/postgresql/13/main /var/log/postgresql/postgresql-13-main.logsudo openproject configADMIN_EMAIL=xxAPP_GROUP=xxAPP_HOME=xxAPP_NAME=xxAPP_RUNNER_CLI=systemctlAPP_RUNNER_TYPE=systemdAPP_SAFE_NAME=xxAPP_USER=xxAPP_WIZARDS=legacy-installer,openproject-edition,postgres,apache2,repositories,smtp,memcached,openprojectATTACHMENTS_STORAGE_PATH=/var/db/openproject/filesDATABASE_URL=postgres://xx:xx@127.0.0.1:**5432**/xxEMAIL_DELIVERY_METHOD=smtpEXECJS_RUNTIME=NodeGEM_PATH=/opt/openproject/vendor/bundle/ruby/2.7.0:GIT_REPOSITORIES=HOME=/home/openprojectHOST=127.0.0.1LANG=en_US.UTF-8MALLOC_ARENA_MAX=2MEMORY_AVAILABLE=14336NODE_ENV=productionNODE_HOME=/opt/openproject/.heroku/nodeOLDPWD=/OPENPROJECT_INSTALLATION__TYPE=packagerOPENPROJECT_RAILS__FORCE__SSL=trueORIGINAL_PWD=/rootPATH=bin:/opt/openproject/vendor/bundle/bin:/opt/openproject/vendor/bundle/ruby/2.7.0/bin:/opt/openproject/.heroku/node/bin:/opt/openproject/.heroku/yarn/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/sbin:/opt/openproject/bin:/opt/openproject/node_modules/.binPORT=6000PWD=/opt/openprojectRACK_ENV=productionRAILS_CACHE_STORE=file_storeRAILS_ENV=productionRAILS_LOG_TO_STDOUT=enabledRAILS_RELATIVE_URL_ROOT=/xxRAILS_SERVE_STATIC_FILES=enabledRECOMPILE_RAILS_ASSETS=ROOT_PATH=/SECRET_KEY_BASE=xxSECRET_TOKEN=xxSERVER_GROUP=www-dataSERVER_HOSTNAME=xxSERVER_PATH_PREFIX=/xxSERVER_PATH_PREFIX_PREVIOUS=/xxSERVER_PROTOCOL=httpsSERVER_USER=www-dataSHLVL=0SMTP_AUTHENTICATION=xxSMTP_DOMAIN=xxSMTP_HOST=xxSMTP_PASSWORD=xxSMTP_PORT=xxSMTP_URL=xxSMTP_USERNAME=xxSVN_REPOSITORIES=SYS_API_KEY=xxWEB_CONCURRENCY=28WEB_MEMORY=512WEB_TIMEOUT=300Looks like openproject listens to port 5432, and postgreSQL 13 uses it.
Despite, I used the commands from here to set postgresql 13 to port 45432.
Does anyone have clue how to solve it?
Cheers,
Piotr
Solved.
Had to re-run reconfigure, along with Apache2 settings again.
Looks like so far so good.
Unfortunately, similar problem:
after the update to 12.0.5, unsuccessful, PostgreSQL showed, AGAIN, 10.19.