TrueNas fresh install plugin/zpool issue

nikkon

Contributor
Joined
Dec 16, 2012
Messages
171
Hello all,
I have a fresh Truenas 12 install. For Jails I created a zpool from an ssd disk.
Everytime I try installing any plugin (plex, clamav, or others) during plugin installations (around 50% completetion) the web UI disconnects and I see the message in the attached picture. It comes back after a few moments, but the plugin is deleted (or probably not completed)
Any clue what may be the problem?
 

Attachments

  • Screenshot 2020-11-15 at 22.50.06.png
    Screenshot 2020-11-15 at 22.50.06.png
    49 KB · Views: 199

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
That looks like the middleware crashing.

Have a look at /var/log/middlewared.log and see if it's got anything useful to say.
 

nikkon

Contributor
Joined
Dec 16, 2012
Messages
171
It looks like the nas is completly loosing connections during the plugin instalation.

[2020/11/16 14:07:47] (DEBUG) freenasOS.Configuration.CheckFreeSpace():77 - CheckFreeSpace(path=/tmp/tmpdwq89l_c, pool=None, required=185)
[2020/11/16 14:07:47] (DEBUG) freenasOS.Configuration.TryGetNetworkFile():745 - TryGetNetworkFile(['https://update.ixsystems.com/TrueNAS/Validators/ValidateUpdate-mg3ef525.txt', 'https://update-master.ixsystems.com/TrueNAS/Validators/ValidateUpdate-mg3ef525.txt']): Read 185 bytes total
[2020/11/16 14:08:08] (DEBUG) iocage.retrieve_plugin_json():278 - Plugin json file path: /mnt/Jails/iocage/.plugins/github_com_freenas_iocage-ix-plugins_git/plexmediaserver.json
[2020/11/16 14:08:47] (DEBUG) iocage.__start_jail__():248 - Grabbing IPv4 default route
[2020/11/16 14:08:47] (DEBUG) iocage.__start_jail__():250 - Default IPv4 Gateway: 172.16.10.1
[2020/11/16 14:08:47] (DEBUG) iocage.__start_jail__():253 - Grabbing IPv6 default route
[2020/11/16 14:08:47] (DEBUG) iocage.__start_jail__():255 - Default IPv6 Gateway: none
[2020/11/16 14:09:45] (DEBUG) iocage.__start_jail__():248 - Grabbing IPv4 default route
[2020/11/16 14:09:45] (DEBUG) iocage.__start_jail__():250 - Default IPv4 Gateway: 172.16.10.1
[2020/11/16 14:09:46] (DEBUG) iocage.__start_jail__():253 - Grabbing IPv6 default route
[2020/11/16 14:09:46] (DEBUG) iocage.__start_jail__():255 - Default IPv6 Gateway: none
[2020/11/16 14:10:30] (WARNING) asyncio.write():901 - socket.send() raised exception.
[2020/11/16 14:10:30] (WARNING) asyncio.write():901 - socket.send() raised exception.
[2020/11/16 14:10:30] (WARNING) asyncio.write():901 - socket.send() raised exception.
[2020/11/16 14:10:30] (WARNING) asyncio.write():901 - socket.send() raised exception.
[2020/11/16 14:10:30] (WARNING) asyncio.write():901 - socket.send() raised exception.
[2020/11/16 14:10:30] (WARNING) asyncio.write():901 - socket.send() raised exception.
[2020/11/16 14:10:31] (DEBUG) urllib3.connectionpool._new_conn():955 - Starting new HTTPS connection (1): update-master.ixsystems.com:443
[2020/11/16 14:10:32] (DEBUG) urllib3.connectionpool._make_request():428 - https://update-master.ixsystems.com:443 "GET /TrueNAS/trains_redir.json HTTP/1.1" 200 233
[2020/11/16 14:10:32] (DEBUG) freenasOS.Configuration.TryGetNetworkFile():606 - TryGetNetworkFile(['https://update.ixsystems.com/TrueNAS/trains.txt', 'https://update-master.ixsystems.com/TrueNAS/trains.txt'])
[2020/11/16 14:10:32] (DEBUG) urllib3.connectionpool._new_conn():955 - Starting new HTTPS connection (1): update.ixsystems.com:443
[2020/11/16 14:10:33] (DEBUG) urllib3.connectionpool._make_request():428 - https://update.ixsystems.com:443 "GET /TrueNAS/trains.txt HTTP/1.1" 301 169
[2020/11/16 14:10:33] (DEBUG) urllib3.connectionpool._new_conn():955 - Starting new HTTPS connection (1): update.freenas.org:443
[2020/11/16 14:10:33] (DEBUG) urllib3.connectionpool._make_request():428 - https://update.freenas.org:443 "GET /TrueNAS/trains.txt HTTP/1.1" 200 377

[2020/11/16 14:10:33] (DEBUG) freenasOS.Configuration.TryGetNetworkFile():745 - TryGetNetworkFile(['https://update.ixsystems.com/TrueNAS/trains.txt', 'https://update-master.ixsystems.com/TrueNAS/trains.txt']): Read 377 bytes total
 

nikkon

Contributor
Joined
Dec 16, 2012
Messages
171
from the CLI same issue:
iocage fetch --plugins --name "plex"
[0] Asigra Backup - Allows administrators to back up data from network-connected computers and mobile devices. Leverages standard API calls from a single on-site Asigra service (DS-Client) to reach into these devices and access the data. (asigra)
[1] Iconik - Streamlines media asset management by making local and cloud-based assets discoverable from a single interface. (iconik)
[2] Nextcloud - Suite of client-server software for creating and using file hosting services. (nextcloud)
[3] Plex Media Server - Media center software to easily manage and stream digital media. (plexmediaserver)
[4] Plex Media Server (Beta) - Media center software to easily manage and stream digital media. (Requires Plex Pass Subscription) (plexmediaserver-plexpass)
[5] Syncthing - Open source, peer-to-peer file synchronization application available for many operating systems. (syncthing)
[6] Tarsnap - Secure online backup service for UNIX-like operating systems. (tarsnap)

Type the number of the desired plugin
Press [Enter] or type EXIT to quit: 3
Plugin: Plex
Official Plugin: false
Using RELEASE: 12.1-RELEASE
Using Branch: 12.2-RELEASE
Post-install Artifact: https://github.com/freenas/iocage-plugin-plexmediaserver.git
These pkgs will be installed:
- plexmediaserver
- ffmpeg

Testing Host DNS response to pkg.FreeBSD.org
Testing plexmediaserver_df81's SRV response to pkg.FreeBSD.org
pkg.FreeBSD.org's SRV record could not be verified.

Testing plexmediaserver_df81's DNSSEC response to pkg.FreeBSD.org
pkg.FreeBSD.org could not be reached via DNSSEC.

Testing plexmediaserver_df81's DNS response to pkg.FreeBSD.org
pkg.FreeBSD.org could not be reached via DNS, check plexmediaserver_df81's network configuration
plexmediaserver_df81 had a failure
Exception: SystemExit Message: 1
Partial plugin destroyed

that's wrong - DNS works and I don't get it
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
What's not working there is the DNS from inside the jail... you may benefit from specifying the defaultrouter and working out how you will give it connectivity (static IP or DHCP) (dhcp="on" defaultrouter="192.168.0.1" bpf="yes")

So try it like this:
iocage fetch --plugins --name "plex" dhcp="on" defaultrouter="192.168.0.1" bpf="yes"

Obviously replace that IP with the IP of your actual router.
 
Last edited:

nikkon

Contributor
Joined
Dec 16, 2012
Messages
171
looks like I have a network issue. weird. cz everything works perfectly and before the reinstall there ware no opnsesne changes.
Testing Host DNS response to pkg.FreeBSD.org
Testing plexmediaserver_6e72's SRV response to pkg.FreeBSD.org
pkg.FreeBSD.org's SRV record could not be verified.

Testing plexmediaserver_6e72's DNSSEC response to pkg.FreeBSD.org
pkg.FreeBSD.org could not be reached via DNSSEC.

Testing plexmediaserver_6e72's DNS response to pkg.FreeBSD.org
pkg.FreeBSD.org could not be reached via DNS, check plexmediaserver_6e72's network configuration
plexmediaserver_6e72 had a failure
Exception: SystemExit Message: 1
Partial plugin destroyed
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
What about if you try just an empty jail?
iocage create -r 12.2-RELEASE --name "plex" vnet=yes dhcp="on" defaultrouter="192.168.0.1" bpf="yes"
 

nikkon

Contributor
Joined
Dec 16, 2012
Messages
171
that worked. thanks
i will install everything as jail + manual install for services.
however, every time I restart a jail or a plugin, the UI restarts as well and I get disconnected.
 
Top