-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Description
NixOS is a different Linux. I won't go into detail here, instead I refer to the documentation: How NixOS works.
Suffice to say is that the bundled Postgres-server won't work here. It can be made to work by patching the ELF-binary, however I would prefer to provide my own installation of Postgres.
I've changed my ultorg.conf to the following:
default_userdir="${DEFAULT_USERDIR_ROOT}/prod1"
default_mac_userdir="${DEFAULT_USERDIR_ROOT}/prod1"
default_cachedir="${DEFAULT_CACHEDIR_ROOT}/prod1"
default_options="--branding ultorg -J-Xms512m -J-Xmx3072m -J-Dnetbeans.ps.noHelpButton=true -J-Dpolyglot.engine.WarnInterpreterOnly=false -J-Djdk.gtk.version=2.2 -J-Dultorg.pgbin=/nix/store/h99i948qzkhwlwk9rv1szcg50235ki29-postgresql-and-plugins-13.7/bin -J--add-opens=java.base/java.net=ALL-UNNAMED -J--add-opens=java.base/java.lang.ref=ALL-UNNAMED -J--add-opens=java.base/java.lang=ALL-UNNAMED -J--add-opens=java.base/java.security=ALL-UNNAMED -J--add-opens=java.base/java.util=ALL-UNNAMED -J--add-opens=java.desktop/javax.swing.plaf.basic=ALL-UNNAMED -J--add-opens=java.desktop/javax.swing.text=ALL-UNNAMED -J--add-opens=java.desktop/javax.swing=ALL-UNNAMED -J--add-opens=java.desktop/java.awt=ALL-UNNAMED -J--add-opens=java.desktop/java.awt.event=ALL-UNNAMED -J--add-opens=java.prefs/java.util.prefs=ALL-UNNAMED -J--add-exports=java.desktop/sun.awt=ALL-UNNAMED -J--add-exports=java.desktop/java.awt.peer=ALL-UNNAMED -J--add-exports=java.desktop/com.sun.beans.editors=ALL-UNNAMED -J--add-exports=java.desktop/sun.swing=ALL-UNNAMED -J--add-exports=java.desktop/sun.awt.im=ALL-UNNAMED -J--add-exports=jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED -J--add-exports=java.management/sun.management=ALL-UNNAMED -J--add-exports=java.base/sun.reflect.annotation=ALL-UNNAMED -J--add-opens=java.desktop/sun.awt.X11=ALL-UNNAMED"
jdkhome="/nix/store/6jxg5lqsw6w6dh6an8cpqrc1ykgwxz9k-openjdk-17.0.3+7/"
In theory this should work, however I'm still stuck. Here's the Application.log, hopefully there is something more that can be done?
My diagnosis is that I need to provide some extra arguments to postgres to make it use a different database from the system wide which is owned by the postgres user. I don't see how to do that.
Metadata
Metadata
Assignees
Labels
No labels