Uninett / nav-debian

Debian Package for NAV, based on a fork of the original repo
https://github.com/UNINETT/nav
GNU General Public License v3.0
4 stars 3 forks source link

Initialization of Postgree f**ks up upon installation. #7

Closed vegard1985 closed 4 years ago

vegard1985 commented 5 years ago

Postgree f**cks up on install (see logfile).

Reading package lists...
Building dependency tree...
Reading state information...
The following packages were automatically installed and are no longer required:
  icedtea-netx icedtea-netx-common linux-image-4.9.0-8-686-pae
Use 'sudo apt autoremove' to remove them.
Recommended packages:
  graphite-web
The following NEW packages will be installed:
  nav
Preconfiguring packages ...
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/42.1 MB of archives.
After this operation, 279 MB of additional disk space will be used.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 284086 files and directories currently installed.)
Preparing to unpack .../archives/nav_4.9.8-2_all.deb ...
Unpacking nav (4.9.8-2) ...
Setting up nav (4.9.8-2) ...
Adding group `nav' (GID 125) ...
Done.
Adding system user `navcron' (UID 121) ...
Adding new user `navcron' (UID 121) with group `nav' ...
Not creating home directory `/usr/share/nav'.
Adding user `navcron' to group `dialout' ...
Adding user navcron to group dialout
Done.
I: /etc/nav/db.conf updated
[?1049h[?25l(B






















Package configuration┌────────────────────────┤ Configuring nav ├─────────────────────────┐│                                                                    │ │ Database initialization failed                                     │ │                                                                    │ │ Script output:                                                     │ │                                                                    │ │ from: can't read /var/mail/nav.pgsync                              │ │ /usr/sbin/navsyncdb: line 4: syntax error: unexpected end of file  │ │                                                                    │ │                               <Ok>                                 │ │                                                                    │ └────────────────────────────────────────────────────────────────────┘                                                                       [?12l[?25h(B

[?1049lE: Database initialization failed, bailing out.
dpkg: error processing package nav (--configure):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for systemd (232-25+deb9u12) ...
Errors were encountered while processing:
 nav
lunkwill42 commented 5 years ago

I cannot reproduce this anywhere. It looks like your navsyncdb command isn't being run by Python at all, but by something else.

The first line of /usr/sbin/navsyncdb should read:

#!/opt/venvs/nav/bin/python

/opt/venvs/nav/bin/python should likely be a symlink to a binary named /opt/venvs/nav/bin/python2. Can you confirm this?

lunkwill42 commented 4 years ago

closing due to lack of feedback.