Am trying to link postgresql database to strapi V4 and my postgresql database has postgis extensions installed. When I run my application I get the following error . Is there a way to fix this ?
Any suggestion or resolution would be of great help
error: drop table if exists “public”.“us_gaz” - cannot drop table us_gaz because extension address_standardizer_data_us requires it
This is the system information
Strapi Version: Strapi V4
Operating System: windows 10
Database: posgresql 14
Node Version: v14.17.5
NPM Version: 6.14.14
Yarn Version: 1.22.11
Thanks
Related
I use Centos 7 and Postgresql 12. I installed already PostGIS and created successfully its extension. I'm now tring to install semver extension with create extension semver and get following error:
ERROR: incompatible library »/usr/pgsql-12/lib/semver.so«: version
does not match
According to developer this version should work with my Postgresql 12. Why am i getting this error?
Thanks!
An extension's .so binaries are specific to a major release of Postgres.
If you're installing the extension through yum, there would typically be a different package for each Postgres version. For example, if you installed Postgres 12 using the postgresql12-server package, then you would install PostGIS 3.0 using the postgis30_12 package.
If the package name is just pg-semver, without a Postgres version number, then it's probably intended for your distribution's default postgresql-server package. In CentOS 7, this appears to be Postgres 9.2, so these files won't work on a Postgres 12 server.
If you can't find a PG12-specific package, you'll need to build it yourself, using the instructions here.
postgres upgrade from 10.9 to 11.4 on aws rds failure with below reason
Database instance is in a state that cannot be upgraded: PreUpgrade
checks failed: The instance could not be upgraded because there are
one or more databases with an older version of PostGIS installed.
Please upgrade all installations of PostGIS and try again.
i have postgis 2.4.4 installed and command
ALTER EXTENSION postgis UPDATE;
fails with message
NOTICE: version "2.4.4" of extension "postgis" is already installed
and command
ALTER EXTENSION postgis UPDATE TO "2.5.1"
fails with this message
extension "postgis" has no update path from version "2.4.4" to version
"2.5.1"
In order to upgrade to version 2.5.* you need to run the following command
ALTER EXTENSION postgis UPDATE TO "2.5.2";
It gives you that error because there is no upgrade from 2.4.4 to 2.5.1. You can only move to 2.5.2 as next step.
Refer to this page under section "PostgreSQL version 10.x extensions supported on Amazon RDS".
And similarly if you wanted to go to 3.1.4 from 2.4.4, you must first go to 2.5.2 and then to 3.1.4.
I installed MongoDB community edition following its doc on ubuntu. Then installed strapi following its doc. Started MongoDb in terminal from command-mongod
Getting the entry
...
[initandlisten] waiting for connections on port 27017
While creating the project with default values using strapi new myStrapiProject throws the error:
and mongod log details:
it goes till connection id: 62 I don't know why. I've tried creating the project by starting MongoDb using its start, stop command but no change. I'm completely new to MongoDb and Strapi. Any help would be appreciated. I have referred this but it didn't solve my issue.
Version details:
$ mongod --version
db version v3.6.4
$ strapi --version
3.0.0-alpha.12
$ node --version
v9.11.1
$ npm --version
5.6.0
$ git --version
git version 2.7.4
check your minimum requirements for the strapi alpha 3.0.0
From the official site:
Node.js >= 10.x
NPM >= 6.x
MongoDB >= 3.x
I have upgraded from OS X 10.9 to 10.10 Yosemite. I was running postgresql 9.3.3 with postgis 2.1. I did not do a pgdump before upgrading to OS X 10.10 (I know, I know, kill me...) but I have the original data directory. I did a brew install postgresql and got 9.4.4. So I installed Postgresql 9.3.9 (the only 9.3 version I could find) with Homebrew. Also brew install postgis. I then got a version 2.1 Postgis for Postgresql 9.4.4. I tried to install postgis20 but that does not work with my database.
When I start Postgresql 9.3.3 I can see all my databases but when I browse I get the error:
ERROR: could not access file "$libdir/postgis-2.1": No such file or directory
I tried to link to posts-2.1 in the $libdir directory but then I get this message:
ERROR: incompatible library "/usr/local/Cellar/postgresql93/9.3.9/lib/postgis-2.1.so": version mismatch
DETAIL: Server is version 9.3, library is version 9.4.
So obviously I need a postgis-2.1 for Postgresql 9.3 but I don't know how to fix that.
If I try to run a pg_dumpall I get this error (obvious I guess):
➜ ./pg_dumpall >> old_backup.sql
pg_dump: Dumping the contents of table "darwin_test" failed: PQgetResult() failed.
pg_dump: Error message from server: ERROR: could not load library "/usr/local/Cellar/postgresql/9.3.3/lib/postgis-2.1.so": dlopen(/usr/local/Cellar/postgresql/9.3.3/lib/postgis-2.1.so, 10): Symbol not found: _json_tokener_errors
Referenced from: /usr/local/Cellar/postgresql/9.3.3/lib/postgis-2.1.so
Expected in: /usr/local/lib/libjson-c.2.dylib
in /usr/local/Cellar/postgresql/9.3.3/lib/postgis-2.1.so
So how do I get postgis-2.1 to work again with postgresql 9.3.3?
In homebrew I only find a postgis-2.1 for postgresql94.
Use brew edit postgis to change the postgresql references to postgresql93 in the install script and then run brew install postgis. You might also have to link/unlink postgresql using brew link postgresql93 or brew unlink postgresql.
I want to generate models with bake terminal command. CakePhp 3 is able to connect to my postgres database. All PHP extensions for postgres are activated (php_pdo_pgsql, php_pgsql). I checked php.ini.
When I run the command: cake bake model
I have this error:
Exception: Database driver Cake\Database\Driver\Postgres cannot be used due to a missing PHP extension or unmet dependency in [C:\wampPI\www\ticketHellocom\vend
or\cakephp\cakephp\src\Database\Connection.php, line 171]
You need to install the pdo_pgsql module for your php installation and activate the extension in your php.ini.