*New 11.3 series Release:
2019-10-19: XigmaNAS 11.3.0.4.7014 - released

*New 12.0 series Release:
2019-10-05: XigmaNAS 12.0.0.4.6928 - released!

*New 11.2 series Release:
2019-09-23: XigmaNAS 11.2.0.4.6881 - released!

We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS costs money. Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL

Install git on nas4free returns error

XigmaNAS Scripts and shell tips
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
dimitry
Starter
Starter
Posts: 19
Joined: 11 Oct 2017 10:43
Status: Offline

Install git on nas4free returns error

#1

Post by dimitry » 19 Oct 2017 15:43

Hi,

I tried to install git via pkg, but received the error:

Code: Select all

[1/1] Installing git-2.14.1...
===> Creating groups.
Creating group 'git_daemon' with gid '964'.
pw: could not lock the group file: : No such file or directory
===> Creating users
Creating user 'git_daemon' with uid '964'.
pw: group `964' does not exist
pkg: PRE-INSTALL script failed
Does anybody know how to fix?

I'm under the 'root', pw addgroup/adduser works fine if I try to create a test user..

Actually, I just need a git client, but haven't found a package with git client only..

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4921
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: Install git on nas4free returns error

#2

Post by raulfg3 » 19 Oct 2017 17:16

more info is nedded,

what exact version do you use (full, or embeded)?

what exact command do you use to install git?
12.0.0.4 (revision 6766)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size only 22TB usable

Wiki
Last changes

dimitry
Starter
Starter
Posts: 19
Joined: 11 Oct 2017 10:43
Status: Offline

Re: Install git on nas4free returns error

#3

Post by dimitry » 19 Oct 2017 22:11

Sorry, I forgot about it

I use Embedded NAS4Free 11.1.0.4 (4619). Command is simple - pkg install git

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4921
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: Install git on nas4free returns error

#4

Post by raulfg3 » 20 Oct 2017 07:34

ok, you can't install packages in a embeded install because it run in RAM and is not designed to do that.
Please read FAQ: https://nas4free.org/wiki/faq/0073 or https://nas4free.org/wiki/faq/0075


you have several options:
1 - install OBI and using OBI, install "Thebrig" a jail webGUI , once done you can create a working jail and install packages on it.
2 - save your config and do a new FULL install on a HD (not on a USB) and install git on it.
12.0.0.4 (revision 6766)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size only 22TB usable

Wiki
Last changes

dimitry
Starter
Starter
Posts: 19
Joined: 11 Oct 2017 10:43
Status: Offline

Re: Install git on nas4free returns error

#5

Post by dimitry » 20 Oct 2017 10:32

OK, I can agree - its not designed for it. So nobody guarantees anything, its totally ok.

But, on the other hand - I DO have packages installed and all them are work for me.

Packages can be installed even without 'tricks' until you have enough space in /usr/local. Also, they live until reboot only.

But, if I use another package's root and unionfs - they all are available.

Here is the list of my packages installed, all of them are work, and do not get erased during the reboot.

Code: Select all

nas********: ~# pkg --rootdir /mnt/******** info
c-ares-1.12.0_2                Asynchronous DNS resolver library
ca_root_nss-3.32.1             Root certificate bundle from the Mozilla Project
curl-7.56.0                    Command line tool and library for transferring data with URLs
cvsps-2.1_2                    Create patchset information from CVS
expat-2.2.1                    XML 1.0 parser written in C
gettext-runtime-0.19.8.1_1     GNU gettext runtime libraries and programs
glib-2.50.2_6,1                Some useful routines of C programming (current stable version)
gmake-4.2.1_1                  GNU version of 'make' utility
htop-2.0.2                     Better top(1) - interactive process viewer
icu-59.1,1                     International Components for Unicode (from IBM)
iftop-1.0.p4                   Display bandwidth usage on an interface by host
indexinfo-0.2.6                Utility to regenerate the GNU info page index
iperf-2.0.10_1                 Tool to measure maximum TCP and UDP bandwidth
kbproto-1.0.7                  KB extension headers
libX11-1.6.5,1                 X11 library
libXau-1.0.8_3                 Authentication Protocol library for X11
libXdmcp-1.1.2                 X Display Manager Control Protocol library
libXext-1.3.3_1,1              X11 Extension library
libffi-3.2.1_1                 Foreign Function Interface
libiconv-1.14_11               Character set conversion library
libnghttp2-1.26.0              HTTP/2.0 C Library
libpthread-stubs-0.4           This library provides weak aliases for pthread functions
libslang2-2.3.1_1              Routines for rapid alpha-numeric terminal applications development
libssh2-1.8.0,3                Library implementing the SSH2 protocol
libuv-1.14.1                   Multi-platform support library with a focus on asynchronous I/O
libxcb-1.12_2                  The X protocol C-language Binding (XCB) library
libxml2-2.9.4                  XML parser library for GNOME
lsof-4.90.p,8                  Lists information about open files (similar to fstat(1))
mc-4.8.19_3                    Midnight Commander, a free Norton Commander Clone
node-8.6.0                     V8 JavaScript for client and server
npm-5.4.2                      Node package manager
p5-Authen-SASL-2.16_1          Perl5 module for SASL authentication
p5-Digest-HMAC-1.03_1          Perl5 interface to HMAC Message-Digest Algorithms
p5-Error-0.17025               Error/exception handling in object-oriented programming style
p5-GSSAPI-0.28_1               Perl extension providing access to the GSSAPIv2 library
pcre-8.40_1                    Perl Compatible Regular Expressions library
perl5-5.24.3                   Practical Extraction and Report Language
png-1.6.34                     Library for manipulating PNG images
python2-2_3                    The "meta-port" for version 2 of the Python interpreter
python27-2.7.14                Interpreted object-oriented programming language
readline-7.0.3                 Library for editing command lines as they are typed
xextproto-7.3.0                XExt extension headers
xproto-7.0.31                  X11 protocol headers
nas********: ~# 

I can easily use MidnightCommander, I have nodejs, curl, iperf etc. - so my NAS based on NAS4free (thanks for it!) can serve much more functionality.

Unfortunately git don't want to be in this list, however I think this issue also can be addressed by some 'tricks' :)

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4921
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: Install git on nas4free returns error

#6

Post by raulfg3 » 20 Oct 2017 11:19

do not use tricks, use full install or use jails is the "supported" way to resolve problems, sometimes when you use unionfs sometings start to work bad
12.0.0.4 (revision 6766)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size only 22TB usable

Wiki
Last changes

dimitry
Starter
Starter
Posts: 19
Joined: 11 Oct 2017 10:43
Status: Offline

Re: Install git on nas4free returns error

#7

Post by dimitry » 21 Oct 2017 23:10

I managed to get Jail installed (using TheBrig), and git is alive there, plus all other packages. Thanks for pointing me to more safe solution based on Jails.

Post Reply

Return to “Scripts and shell tips”