Closed ealemda2 closed 7 months ago
After the fix you can run docker-compose down
and docker-compose up --force-recreate -d
to have the server working.
The openpim logs should now look like this:
Check: http://www.postgresql.org/docs/9.4/static/datatype.html
openpim-1 | 2024/03/28 09:05:14.525 [info]: Serverversion: 2.0.240108392
openpim-1 | 2024/03/28 09:05:14.525 [info]: Arguments: /usr/local/bin/node,/server/dist/src/index.js
openpim-1 | 2024/03/28 09:05:14.631 [info]: RunningaGraphQLAPIserver at http://localhost:8080/graphql
openpim-1 | 2024/03/28 09:05:14.649 [info]: Data models were loaded
Also, sometimes on the first docker-compose up --force-recreate -d
, my openpim logs give the error: Error: connect ECONNREFUSED 172.31.0.2:5432
. This issue strangely is fixed when I run docker-compose up --force-recreate -d
again while the containers are already up and running.
This is old version of sql script, please use version that is described at our site
@openpim Thanks for the response. Why doesn't the init.sql file referenced in the link match the one in the master branch? Does the master branch not include the most up to date code?
Steps to recreate:
master
branchopenpim/production:1.3
toopenpim/production:2.0
docker-compose -f docker-compose.yaml up --remove-orphans -d
localhost
and open dev toolsObserve 502 Bad Gateway error:
:
Upon looking at the logs in server.log
docker-compose logs openpim
you can see that the server errors out with:This is due to a table reference issue in init.sql. The issue was fixed when I changed the last two ALTER TABLE references from
"actions"
and"references"
topublic."actions"
andpublic."references"
like below: