Re: [fluka-discuss]: error: useradd: UID 0 is not unique

From: Andrea Fontana <andrea.fontana_at_pv.infn.it>
Date: Mon, 13 Jan 2020 11:05:51 +0100

Hello,
  did you run the script as superuser? UID=0 means root and
useradd fails since you cannot have two root users.
Try to run the script as a non-root user.

Andrea

On 11/01/2020 19:48, muoio wrote:
> dear experts,
> i have a centos 7, and i have installed docker.
> afther i tried to install fluka. This is the output:
>
> [root_at_localhost F4D-master]# ./install_linux.sh
> Using default tag: latest
> Trying to pull repository docker.io/flukadocker/f4d_baseimage ...
> latest: Pulling from docker.io/flukadocker/f4d_baseimage
> Digest:
> sha256:65ce27b76a852498853f569ac26310656e29f43a3202db89e19b4b88b761e146
> Status: Image is up to date for docker.io/flukadocker/f4d_baseimage:latest
> e3d64ffe155b1d23858eef7df926943cdbef7a50b11c3a71ef7e23d26c44ff1b
> fluka_info
> Checking Installer, Fluka and flair versions
> Check complete
> fluka_info
> fluka_info
> Sending build context to Docker daemon 171.9 MB
> Step 1/3 : FROM flukadocker/f4d_baseimage
> ---> 17742f74ee0f
> Step 2/3 : ARG flair_version
> ---> Using cache
> ---> 5c1a516d4d75
> Step 3/3 : RUN rpm -ivh
> http://www.fluka.org/flair/flair-$flair_version.noarch.rpm
> http://www.fluka.org/flair/flair-geoviewer-$flair_version.x86_64.rpm
> ---> Using cache
> ---> 79de34e61017
> Successfully built 79de34e61017
> Total reclaimed space: 0 B
> Sending build context to Docker daemon 171.9 MB
> Step 1/18 : FROM f4d_flair
> ---> 79de34e61017
> Step 2/18 : ARG fluka_package
> ---> Running in eeb0401d9267
> ---> 56050f3b0b7b
> Removing intermediate container eeb0401d9267
> Step 3/18 : ARG fluka_version
> ---> Running in 6319d3001906
> ---> 817cdd22aff8
> Removing intermediate container 6319d3001906
> Step 4/18 : COPY $fluka_package /tmp
> ---> 0b8c198e6e8a
> Removing intermediate container 70955eacfc1a
> Step 5/18 : COPY ./common/motd /etc
> ---> f90770ec9afd
> Removing intermediate container 02cd98abb9f0
> Step 6/18 : COPY ./common/disclaimer /etc/profile.d/
> ---> 5bdf8321ee50
> Removing intermediate container d36937a7de3e
> Step 7/18 : COPY ./common/version_installed.sh /etc/profile.d/
> ---> 91876cb90801
> Removing intermediate container d4566ac28be2
> Step 8/18 : COPY ./common/rfluka /tmp
> ---> 1d8cc016c9be
> Removing intermediate container da381f67bef1
> Step 9/18 : ENV FLUFOR gfortran
> ---> Running in 7c0f1a38bb05
> ---> 546c2425350b
> Removing intermediate container 7c0f1a38bb05
> Step 10/18 : ENV FLUPRO /usr/local/fluka
> ---> Running in 3aaa1db8a423
> ---> 90ee306a826e
> Removing intermediate container 3aaa1db8a423
> Step 11/18 : ENV FLUVER $fluka_version
> ---> Running in 53f38248bc67
> ---> c9f406a88222
> Removing intermediate container 53f38248bc67
> Step 12/18 : ARG UID=1000
> ---> Running in e97fc092f034
> ---> 25a0d0dc15fc
> Removing intermediate container e97fc092f034
> Step 13/18 : RUN useradd -u $UID -c 'Fluka User' -m -d /home/fluka -s
> /bin/bash fluka && echo "root:fluka" | chpasswd && mkdir -p
> /usr/local/fluka && tar -zxf /tmp/fluka*.tar.gz -C /usr/local/fluka
> && cd /usr/local/fluka; make && cp /tmp/rfluka
> /usr/local/fluka/flutil/ && chmod 700 /usr/local/fluka/flutil/rfluka
> && chown -R fluka:fluka /usr/local/fluka && rm -rf
> /tmp/fluka*.tar.gz /tmp/rfluka && mkdir /docker_work && chown -R
> fluka:fluka /docker_work && chmod 755
> /etc/profile.d/version_installed.sh
> ---> Running in e55b03f704ed
>
> useradd: UID 0 is not unique
> make: *** No targets specified and no makefile found. Stop.
> The command '/bin/sh -c useradd -u $UID -c 'Fluka User' -m -d
> /home/fluka -s /bin/bash fluka && echo "root:fluka" | chpasswd &&
> mkdir -p /usr/local/fluka && tar -zxf /tmp/fluka*.tar.gz -C
> /usr/local/fluka && cd /usr/local/fluka; make && cp /tmp/rfluka
> /usr/local/fluka/flutil/ && chmod 700 /usr/local/fluka/flutil/rfluka
> && chown -R fluka:fluka /usr/local/fluka && rm -rf
> /tmp/fluka*.tar.gz /tmp/rfluka && mkdir /docker_work && chown -R
> fluka:fluka /docker_work && chmod 755
> /etc/profile.d/version_installed.sh' returned a non-zero code: 2
> ERROR: Failed to install Fluka. See the troubleshooting part of the user
> guide.
> e55b03f704ed
> Deleted Images:
> deleted:
> sha256:25a0d0dc15fc5b6eecac3b6be59c4a3e7ca69c1e2addcc4cb1e43b6d38ac912c
> deleted:
> sha256:c9f406a8822285d932f766c93687b9ffa4aeacad4a8cd6cb6a2f046356922ed5
> deleted:
> sha256:90ee306a826e8c97c03d0966d238b791f49bef8f5bf7940ba744aab215334f5a
> deleted:
> sha256:546c2425350b29ea1b6866571b581c3f85588c1c4f7d4ad52aaf2bab8a69f88d
> deleted:
> sha256:1d8cc016c9be3bd4bd06b490ff39a783f049b77b9e7695513a12769a6641b239
> deleted:
> sha256:877b000dbe8229f0650989d9192bb8b1c0bc36a704b1fb0af72648ce982e8f12
> deleted:
> sha256:91876cb90801cb67c75f72bb9e54b4e7dab4cd4297ab613244746d88593854fc
> deleted:
> sha256:1d6a6e8a384e37d25ef3a08fadd5c1484ad587a5d4a7aaadd357790b659f9b14
> deleted:
> sha256:5bdf8321ee5098b1a13cf6771ce35985627cdf5d1ffcd008b1a8cc7dc2c05878
> deleted:
> sha256:aa2f41079c50bb0d1433d9668e66d7d56fcfd1dce64773df98cd57fd74c31762
> deleted:
> sha256:f90770ec9afd1d845f8b83e5757de21b540daa34b90fadf15ebc3f9c93a8c865
> deleted:
> sha256:d82828845e25758eef0dad9d2b6164ba8a68641a9a6309a9b90f095dafe824e5
> deleted:
> sha256:0b8c198e6e8a9caa14729c83f29c96c684a5cb99249f65af26bd55cb038a621a
> deleted:
> sha256:d0c3629ab0e7628836c06a54ea6b1bedaa9199b62af00eb60940b91bdb5e2637
> deleted:
> sha256:817cdd22aff84178ae65f0167c0da1b692d8a3ce298ed35146007930479054a9
> deleted:
> sha256:56050f3b0b7b24bbeee67cbfd51c6f99e9b2bf1826c963f44f82986954e3ccb6
>
> Total reclaimed space: 171.9 MB
>
>
> how i can resolve this error?
> A.Muoio
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> __________________________________________________________________________
> You can manage unsubscription from this mailing list at
https://www.fluka.org/fluka.php?id=acc_info
>

-- 
========================================================================
Dr. Andrea Fontana                    tel: +39 0382 987991
Istituto Nazionale                    fax: +39 0382 423241
di Fisica Nucleare
Sezione di Pavia                      e-mail: andrea.fontana_at_pv.infn.it
Via Bassi 6                           web   : www.pv.infn.it/~fontana
27100 PAVIA, Italy
========================================================================
__________________________________________________________________________
You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info
Received on Mon Jan 13 2020 - 12:45:28 CET

This archive was generated by hypermail 2.3.0 : Mon Jan 13 2020 - 12:45:30 CET