Plugin installation - errors

jacekh

Cadet
Joined
Oct 3, 2021
Messages
3
I need your help. Tested Qnap, Synology and decided for TrueNAS. I tested TrueNAS in VM (VMware Workstation Pro) - no problems, simple and easy config. All required plugins tested and worked properly. The network config was IP static and bridged to Windows' main NIC.

My needs are very simple: OpenVPN, SMB (backups from Acronis), NextCloud and Gitlab (accessed from VPN connection or locally).

I decided to use my old PC and convert it to NAS system based on TrueNAS software. The hardware is really a little bit old, but for my needs should be enough:
CPU: i7-950 in X58A-UD3R mobo
Memory: 12 GB RAM (1600 MHz)
OS Disk 1x WDC Black 1 TB SATA connected to 6 Gbs port
Cache disk: 1x Samsung SSD 250 GB SATA connected to 6 Gbs port
Data disks: 4x Seagate ST4000NM0053 4 TB connected to 3 Gbs ports (mobo has only 2 SATA III ports)

TrueNAS Version: TrueNAS-12.0-U5.1

SSD is used as a cache for 4 HDDs working together in a ZFS pool. The pool name is 'tank1'.

My system's network address is 192.168.200.0/24, with the gateway 192.168.200.1 (also DNS). The router has DHCP server active.

1. I created a reservation for MAC address of my NAS PC, so it used dynamic DHCP and always gets IPv4 address 192.168.200.77.

I reinstalled the system 2 times today. First time I started with OpenVPN configuration and it worked as intended. Then I started installation GitLab and never managed to do it. I got errors when it reached 50%. Tried many times. When I used Advanced options and unchecked VNET, the installation went up to almost 99% but the GUI was stuck with exception displayed:

Error: gitlabjail had a failure Exception: RuntimeError Message: pkg error: - pkg-static: http://pkg.FreeBSD.org/FreeBSD:12:amd64/latest/meta.txz: No address record pkg-static: http://pkg.FreeBSD.org/FreeBSD:12:amd64/latest/packagesite.txz: No address record Please check your network Partial plugin destroyed

So I reinstalled TrueNAS once again. Now it's without OpenVPN - fresh system, everything default, only one pool created. Pool 'tank1' is a default one for plugins.

Installation: no DHCP, no NAT, no selecting IPv4 interface, static address used and netmask (24), no IPv6.

During NextCloud installation into jail called 'ncjail' I got the exception:

Error: ncjail had a failure Exception: GitCommandError Message: Cmd('git') failed due to: exit code(128) cmdline: git clone -v https://github.com/freenas/iocage-plugin-nextcloud.git /mnt/tank1/iocage/jails/ncjail/plugin stderr: 'Cloning into '/mnt/tank1/iocage/jails/ncjail/plugin'... fatal: unable to access 'https://github.com/freenas/iocage-plugin-nextcloud.git/': Could not resolve host: github.com ' Partial plugin destroyed

Installation using Advanced options:
No DHCP, no NAT, no VNET, selected IPV4 interface (re0), static IP/Mask:
Error: ncjail had a failure Exception: RuntimeError Message: Last 10 lines: + + + + writing new private key to '/usr/local/etc/letsencrypt/live/truenas/server.key' ----- Signature ok subject=O = TrueNAS (Nextcloud), CN = localhost Getting CA Private Key Partial plugin destroyed

2. I gave up NextCloud. Let's go for Gitlab.

During Gitlab installation into jail called 'gljail' I got the exception:

Error: gljail had a failure Exception: GitCommandError Message: Cmd('git') failed due to: exit code(128) cmdline: git clone -v https://github.com/pandorixtech/iocage-plugin-gitlab.git /mnt/tank1/iocage/jails/gljail/plugin stderr: 'Cloning into '/mnt/tank1/iocage/jails/gljail/plugin'... fatal: unable to access 'https://github.com/pandorixtech/iocage-plugin-gitlab.git/': Could not resolve host: github.com ' Partial plugin destroyed

Installation using Advanced options:
No DHCP, no NAT, no VNET, selected IPV4 interface (re0), static IP/Mask, all editable settings (except IP) were copied from working TrueNAS system (virtual):

Error: gljail had a failure Exception: GitCommandError Message: Cmd('git') failed due to: exit code(128) cmdline: git clone -v https://github.com/pandorixtech/iocage-plugin-gitlab.git /mnt/tank1/iocage/jails/gljail/plugin stderr: 'Cloning into '/mnt/tank1/iocage/jails/gljail/plugin'... fatal: unable to access 'https://github.com/pandorixtech/iocage-plugin-gitlab.git/': Could not resolve host: github.com ' Partial plugin destroyed

4. I've created manually a test jail, started it. Using shell form the jail there is no problem with pinging github.com.

5. Changed TrueNAS network to static DHCP, removed reservation.

Again - installation Gitlab with advanced options with checked Berkely packet filter. TrueNAS web page stopped responding. After rebooting looks Gilab was installed but no admin portal was displayed in plugin page. Tried with update - a lot of errors but after updating and restarting the plugin/jail admin portal was displayed in the plugin page. Unfortunately, the manage web page didn't open.

Well, I almost gave up TrueNAS. What's interesting - everything works fine in a virtual machine, but the hardware gives errors. Do I really have to buy QNAP or Synology just for SMB (backups from Acronis) and Gitlab? I do need your help.

Regards,
Jacek
 

jacekh

Cadet
Joined
Oct 3, 2021
Messages
3
Changing timezone to Europe/Warsaw helped a little bit. I've managed to properly install and configure NextCloud.

Unfortunately, gitlab still has problems. The installation goes to 90% with last message stuck for 10 minutes:

90.00%
Warning: fragment with name Label already exists. graphql-tag enforces all fragment names across your application to be unique; read more about this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names


Then web page stops responding and I have to login again - then I can see plugin page with initial settings for installing the plugin (with Save button enabled). After clicking Cancel I can see Gitlab is on the list of installed plugins and running. But when I go to Manage page it doesn't show password create page, but just a login page. I had no chance to define root password and cannot login. Do you have any idea how to install Gitlab?
 
Top