OPNsense Forum

Archive => 17.1 Legacy Series => Topic started by: tillsense on November 12, 2016, 10:23:38 am

Title: 17.1.a_531-amd64 - SSHd / PPoE libpam.so.5 Error
Post by: tillsense on November 12, 2016, 10:23:38 am
Code: [Select]
Nov 12 09:45:42 kernel: done.
Nov 12 09:45:42 lighttpd[38825]: (log.c.217) server started
Nov 12 09:45:41 opnsense: /usr/local/etc/rc.sshd: The command '/usr/bin/protect -i /usr/local/sbin/sshd' returned exit code '1', the output was 'Shared object "libpam.so.5" not found, required by "sshd"'
Nov 12 09:45:41 kernel: done.
Nov 12 09:45:41 kernel: done.
Nov 12 09:45:39 kernel: .done.
Nov 12 09:45:38 kernel: pflog0: promiscuous mode enabled
Nov 12 09:45:38 opnsense: /usr/local/etc/rc.bootup: The command '/usr/sbin/arp -d -i 'pppoe0' -a > /dev/null 2>&1' returned exit code '1', the output was ''
Nov 12 09:45:38 opnsense: /usr/local/etc/rc.bootup: The command '/sbin/ifconfig 'pppoe0' -staticarp' returned exit code '1', the output was 'ifconfig: interface pppoe0 does not exist'
Nov 12 09:45:30 configd.py: [5bd4a568-adaf-4230-9159-f205202c1fb0] Linkup starting re0
Nov 12 09:45:30 kernel: re0: link state changed to UP
Nov 12 09:45:29 configd.py: [796a35bd-401a-40d0-8d21-1b7894a2d4ca] Linkup starting re1
Nov 12 09:45:29 kernel: re1: link state changed to UP
Nov 12 09:45:27 configd.py: [8abb4dcf-0b66-4caf-bbb9-98308b7c8a56] Linkup stopping re1
Nov 12 09:45:27 kernel: re1: link state changed to DOWN
Nov 12 09:45:27 kernel: starting pppoe0 link...
Nov 12 09:45:27 opnsense: /usr/local/etc/rc.bootup: The command '/usr/local/sbin/mpd5 -b -k -d /var/etc -f mpd_opt1.conf -p /var/run/'pppoe'_opt1.pid -s ppp 'pppoe'client' returned exit code '1', the output was 'Shared object "libpam.so.5" not found, required by "mpd5"'
Nov 12 09:45:27 opnsense: /usr/local/etc/rc.bootup: The command '/sbin/ifconfig 'pppoe0' inet6 -accept_rtadv' returned exit code '1', the output was 'ifconfig: interface pppoe0 does not exist'
Nov 12 09:45:27 configd.py: [332fb4cf-a09d-42fa-be45-8cfde09a467c] Linkup stopping re0
Nov 12 09:45:27 kernel: re0: link state changed to DOWN
Nov 12 09:45:27 kernel:

cheers till - i make me a coffee
Title: Re: 17.1.a_531-amd64 - SSHd / PPoE lippam.so.5 Error
Post by: franco on November 12, 2016, 02:57:52 pm
Hi Till,

This looks like a half-finished update libpam was major version 5 on 10.x, it's major version 6 on 11.x. Can you run these for me:

# uname -a
# freebsd-version
# cat /usr/local/etc/pkg/repos/origin.conf
# pkg install -f openssh_portable
# ldd /usr/local/sbin/sshd


Cheers,
Franco
Title: Re: 17.1.a_531-amd64 - SSHd / PPoE libpam.so.5 Error
Post by: tillsense on November 12, 2016, 03:38:06 pm
Hi Franco, yes here's the output

Code: [Select]
# uname -a
FreeBSD 11.0-RELEASE-p2 FreeBSD 11.0-RELEASE-p2 #0 850e1e9(master): Fri Oct 28 17:09:55 CEST 2016     root@sensey64:/usr/obj/usr/src/sys/SMP  amd64
# freebsd-version
11.0-RELEASE-p2
# cat /usr/local/etc/pkg/repos/origin.conf
OPNsense: {
  fingerprints: "/usr/local/etc/pkg/fingerprints/OPNsense",
  url: "pkg+http://pkg.opnsense.org/${ABI}/16.7/latest",
  signature_type: "fingerprints",
  mirror_type: "srv",
  priority: 11,
  enabled: yes
}
# pkg install -f openssh_portable
Updating OPNsense repository catalogue...
pkg: http://pkg.opnsense.org/FreeBSD:11:amd64/16.7/latest/meta.txz: No address record
repository OPNsense has no meta file, using default settings
pkg: http://pkg.opnsense.org/FreeBSD:11:amd64/16.7/latest/packagesite.txz: No address record
Unable to update repository OPNsense
All repositories are up-to-date.
pkg: Repository OPNsense cannot be opened. 'pkg update' required
pkg: No packages available to install matching 'openssh_portable' have been found in the repositories
# ldd /usr/local/sbin/sshd
/usr/local/sbin/sshd:
        libwrap.so.6 => /usr/lib/libwrap.so.6 (0x1f0b6eb6000)
        libpam.so.5 => not found (0)
        libcrypto.so.8 => /usr/local/lib/libcrypto.so.8 (0x1f0b7200000)
        libldns.so.1 => /usr/local/lib/libldns.so.1 (0x1f0b7654000)
        libz.so.6 => /lib/libz.so.6 (0x1f0b78ae000)
        libutil.so.9 => /lib/libutil.so.9 (0x1f0b7ac6000)
        libcrypt.so.5 => /lib/libcrypt.so.5 (0x1f0b7cda000)
        libc.so.7 => /lib/libc.so.7 (0x1f0b7ef9000)
        libthr.so.3 => /lib/libthr.so.3 (0x1f0b8295000)
#
via /dev/ttyUSB0 - Putty

WAN is off (pppoe) i can't install in this way.

cheers till
Title: Re: 17.1.a_531-amd64 - SSHd / PPoE libpam.so.5 Error
Post by: franco on November 15, 2016, 05:13:51 pm
Ok, base/kernel upgrade went fine, full packages reinstall failed for some reason.

What version did you upgrade from, which commands did you run?


Cheers,
Franco
Title: Re: 17.1.a_531-amd64 - SSHd / PPoE libpam.so.5 Error
Post by: tillsense on November 15, 2016, 08:49:12 pm
hi franco, i've tried the new howto on 16.7.7
Quote
On top of using the opnsense-devel package, it's now (as of 16.7.7) possible to upgrade to the next FreeBSD 11.0 underneath as well:

# opnsense-update -t opnsense-devel
# opnsense-update -ur 17.1.a
# /usr/local/etc/rc.reboot

after reboot looks like first post.

cheers till

-current a new install [OPNsense 17.1.a_663-amd64] is working-
Title: Re: 17.1.a_531-amd64 - SSHd / PPoE libpam.so.5 Error
Post by: franco on November 15, 2016, 10:28:58 pm
Was this a LibreSSL install by any chance?
Title: Re: 17.1.a_531-amd64 - SSHd / PPoE libpam.so.5 Error
Post by: tillsense on November 16, 2016, 06:48:31 pm
No this apu2 was never a LibreSSL install.
Title: Re: 17.1.a_531-amd64 - SSHd / PPoE libpam.so.5 Error
Post by: franco on November 16, 2016, 08:12:00 pm
We'll have to tag this as inconclusive for now and leave it here for others to find if the same problem occurs again.
Title: Re: 17.1.a_531-amd64 - SSHd / PPoE libpam.so.5 Error
Post by: franco on November 24, 2016, 05:14:15 pm
Till, we found this. Must install a fixed package manager before running the upgrade:

# https://pkg.opnsense.org/snapshots/amd64/pkg-1.9.3_1.txz
# opnsense-update -t opnsense-devel
# opnsense-update -ur 17.1.a
# /usr/local/etc/rc.reboot
Title: Re: 17.1.a_531-amd64 - SSHd / PPoE libpam.so.5 Error
Post by: tillsense on December 02, 2016, 07:39:29 pm
hi franco,

the link leads to the "404 Not Found" and the repo was so there neither for i386 nor amd64.
The requested URL /snapshots/amd64/pkg-1.9.3_1.txz was not found on this server.

cheers till