Hi
firstly, congrats on the new release.
I was about to post this ‘issue’ in the previous thread, but then I thought I’d check to see if it happened with this release.
I downloaded the ‘Mac’ Jar installer and ran it like I always have in the past, let it do the new ‘Default Install’ in a new directory in my Applications folder, then let it launch.
It then asked about creating database (with or without samples), I chose with, but the Postgres server & databases DO NOT get installed or created.
When I looked in the application_server/postgres_db folder, it appeared as if the install script (.sh) was still in there along with the tar.gz file etc., so the expansion & install of PG had not happened, even though I asked it to do it. If I quit Developer & re-opened it, the same question would appear, I’d say ‘install (samples)’ but it still wouldn’t happen.
I then fired up Terminal & tried to run it manually, like this
Rafi:postgres_db rafig$ /Applications/Servoy_2019_12_bss/application_server/postgres_db/install_postgres.sh
rmdir: illegal option -- -
usage: rmdir [-p] directory ...
The files belonging to this database system will be owned by user "rafig".
This user must also own the server process.
The database cluster will be initialized with locale "en_GB.UTF-8".
The default text search configuration will be set to "english".
Data page checksums are disabled.
fixing permissions on existing directory ../database ... ok
creating subdirectories ... ok
selecting default max_connections ... 100
selecting default shared_buffers ... 128MB
selecting dynamic shared memory implementation ... posix
creating configuration files ... ok
running bootstrap script ... ok
performing post-bootstrap initialization ... ok
syncing data to disk ... ok
WARNING: enabling "trust" authentication for local connections
You can change this by editing pg_hba.conf or using the option -A, or
--auth-local and --auth-host, the next time you run initdb.
Success. You can now start the database server using:
bin/pg_ctl -D ../database -l logfile start
waiting for server to start.... done
server started
waiting for server to shut down.... done
server stopped
BUT, when I now launch Developer, Postgres does not start & I get this in the log file
2020-01-23 15:56:45,224 ERROR [pool-3-thread-1] com.servoy.j2db.util.Debug - Cannot run program "/Applications/Servoy_2019_12_bss/Eclipse.app/Contents/Eclipse/../../../application_server//postgres_db/bin/pg_ctl" (in directory "/Applications/Servoy_2019_12_bss/Eclipse.app/Contents/Eclipse/../../../application_server"): error=0, posix_spawn failed [ ]
java.io.IOException: Cannot run program "/Applications/Servoy_2019_12_bss/Eclipse.app/Contents/Eclipse/../../../application_server//postgres_db/bin/pg_ctl" (in directory "/Applications/Servoy_2019_12_bss/Eclipse.app/Contents/Eclipse/../../../application_server"): error=0, posix_spawn failed
at java.lang.ProcessBuilder.start(Unknown Source) ~[?:?]
at java.lang.ProcessBuilder.start(Unknown Source) ~[?:?]
at java.lang.Runtime.exec(Unknown Source) ~[?:?]
at com.servoy.j2db.server.main.Zl.run(Zl.java:3) [j2db_server_2019.12.1.3543.jar:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:?]
at java.lang.Thread.run(Unknown Source) [?:?]
Caused by: java.io.IOException: error=0, posix_spawn failed
at java.lang.ProcessImpl.forkAndExec(Native Method) ~[?:?]
at java.lang.ProcessImpl.<init>(Unknown Source) ~[?:?]
at java.lang.ProcessImpl.start(Unknown Source) ~[?:?]
... 7 more
2020-01-23 15:56:59,369 ERROR [Worker-3: Loading servers/tables needed by current solution] persistence.Server - Final get connection failure for server repository_server in 1 times [ ]
2020-01-23 15:56:59,371 ERROR [Worker-3: Loading servers/tables needed by current solution] persistence.Server - Final get connection failure for server bug_db in 1 times [ ]
2020-01-23 15:56:59,375 ERROR [Worker-3: Loading servers/tables needed by current solution] persistence.Server - Final get connection failure for server example_data in 1 times [ ]
2020-01-23 15:56:59,377 ERROR [Worker-3: Loading servers/tables needed by current solution] persistence.Server - Final get connection failure for server log_data in 1 times [ ]
2020-01-23 15:56:59,379 ERROR [Worker-3: Loading servers/tables needed by current solution] persistence.Server - Final get connection failure for server pdf_forms in 1 times [ ]
2020-01-23 15:56:59,381 ERROR [Worker-3: Loading servers/tables needed by current solution] persistence.Server - Final get connection failure for server udm in 1 times [ ]
2020-01-23 15:56:59,383 ERROR [Worker-3: Loading servers/tables needed by current solution] persistence.Server - Final get connection failure for server user_data in 1 times [ ]
2020-01-23 15:57:31,996 ERROR [Framework stop] com.servoy.j2db.util.Debug - Cannot run program "/Applications/Servoy_2019_12_bss/Eclipse.app/Contents/Eclipse/../../../application_server//postgres_db/bin/pg_ctl" (in directory "/Applications/Servoy_2019_12_bss/Eclipse.app/Contents/Eclipse/../../../application_server"): error=0, posix_spawn failed [ ]
java.io.IOException: Cannot run program "/Applications/Servoy_2019_12_bss/Eclipse.app/Contents/Eclipse/../../../application_server//postgres_db/bin/pg_ctl" (in directory "/Applications/Servoy_2019_12_bss/Eclipse.app/Contents/Eclipse/../../../application_server"): error=0, posix_spawn failed
at java.lang.ProcessBuilder.start(Unknown Source) ~[?:?]
at java.lang.ProcessBuilder.start(Unknown Source) ~[?:?]
at java.lang.Runtime.exec(Unknown Source) ~[?:?]
at com.servoy.j2db.server.main.ApplicationServer.doNativeShutdown(ApplicationServer.java:494) [j2db_server_2019.12.1.3543.jar:?]
at com.servoy.j2db.server.main.ApplicationServer.doNativeShutdown(ApplicationServer.java:733) [j2db_server_2019.12.1.3543.jar:?]
at com.servoy.eclipse.core.Activator.stop(Activator.java:639) [com.servoy.eclipse.core_2019.12.1.3543.jar:?]
at org.eclipse.osgi.internal.framework.BundleContextImpl$4.run(BundleContextImpl.java:899) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
at org.eclipse.osgi.internal.framework.BundleContextImpl$4.run(BundleContextImpl.java:1) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
at java.security.AccessController.doPrivileged(Unknown Source) [?:?]
at org.eclipse.osgi.internal.framework.BundleContextImpl.stop(BundleContextImpl.java:891) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
at org.eclipse.osgi.internal.framework.EquinoxBundle.stopWorker0(EquinoxBundle.java:1027) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.stopWorker(EquinoxBundle.java:370) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
at org.eclipse.osgi.container.Module.doStop(Module.java:653) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
at org.eclipse.osgi.container.Module.stop(Module.java:515) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.decStartLevel(ModuleContainer.java:1861) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1753) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
at org.eclipse.osgi.container.SystemModule.stopWorker(SystemModule.java:275) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle$EquinoxSystemModule.stopWorker(EquinoxBundle.java:202) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
at org.eclipse.osgi.container.Module.doStop(Module.java:653) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
at org.eclipse.osgi.container.Module.stop(Module.java:515) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
at org.eclipse.osgi.container.SystemModule.stop(SystemModule.java:207) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle$EquinoxSystemModule$1.run(EquinoxBundle.java:220) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
at java.lang.Thread.run(Unknown Source) [?:?]
Caused by: java.io.IOException: error=0, posix_spawn failed
at java.lang.ProcessImpl.forkAndExec(Native Method) ~[?:?]
at java.lang.ProcessImpl.<init>(Unknown Source) ~[?:?]
at java.lang.ProcessImpl.start(Unknown Source) ~[?:?]
... 23 more
It’s a bit frustrating as I was hoping to start off a new project with it, but luckily I can get by using a Mac app called ‘postgres.app’ that acts as a standalone Postgres DB Server.
I hope you can fix this, or tell me what is wrong (the 2019.09 install worked fine)
[I am currently on macOS Mojave 10.14.6, with Java 8 Update 231, but am attaching the Installation details, Error Log & Servoy log as a zip]
Servoy2019121Issues.zip (50.8 KB)