[Spce-user] Error user sipwise during upgrade mr9.4.1 to mr9.5.4

cappellari at connectlife.it cappellari at connectlife.it
Mon Apr 18 14:49:42 EDT 2022


Hi, as recommended I checked the logs and during the installation the user was correctly created (installation was mr8.3.1) .. So it must have been deleted later by some update ... I am attaching the installation log concerning the user sipwise 

* Creating missing /ngcp-data/home. 
* Creating user sipwise with home directory /ngcp-data/home/sipwise. 
* Creating compatibility symlink from /var/sipwise to /ngcp-data/home/sipwise 
* Adding user sipwise to groups _ngcp-api and _ngcp-admin. 
Adding user `sipwise' to group `_ngcp-api' ... 
Adding user sipwise to group _ngcp-api 
Done. 
Adding user `sipwise' to group `_ngcp-admin' ... 
Adding user sipwise to group _ngcp-admin 
Done. 
* Creating .ssh directory for user sipwise. 
* Updating '/etc/sudoers.d/sipwise'. 
* Disabling password for user 'sipwise' in /etc/passwd. 
passwd: password expiry information changed. 

* User 'sipwise' is not in /etc/passwd (LDAP?), skipping disabling password here. 
* Support access successfully updated 



Cappellari Danny 
Customer Support Engineer | ConnectLife S.r.l 

Tel. +39 045 2081019 | Mobile: +39 392 4206436 
[ mailto:cappellari at connectlife.it | cappellari at connectlife.it ] 


Questo documento è formato esclusivamente per il destinatario. Tutte le informazioni ivi contenute, compresi eventuali allegati, 
sono da ritenere esclusivamente confidenziali e riservate secondo i termini del vigente D.Lgs. 196/2003 in materia di privacy e 
del Regolamento europeo 679/2016 – GDPR- e quindi ne è proibita l’utilizzazione ulteriore non autorizzata. Se avete ricevuto 
per errore questo messaggio, Vi preghiamo cortesemente di contattare immediatamente il mittente e cancellare la e-mail. 


Da: "Mykola Malkov" <mmalkov at sipwise.com> 
A: "cappellari" <cappellari at connectlife.it> 
Cc: "spce-user" <spce-user at lists.sipwise.com> 
Inviato: Lunedì, 18 aprile 2022 10:44:04 
Oggetto: Re: [Spce-user] Error user sipwise during upgrade mr9.4.1 to mr9.5.4 

Hi 


Hello! 
I have a problem upgrading from mr9.4.1 to 9.5.4 .. I get sipwise user home directory error. The problem is that such user on system 9.4.1 does not exist. The log says the home directory is on ~ sipwise but it doesn't actually exist .. 
I tried to create the user with useradd sipwise --home / ngcp-data / home / sipwise 
The upgrade was successful, is the procedure correct? 
WARNING: Home of user sipwise not the new canonical '/ngcp-data/home/sipwise' 
but also not the old canonical '/var/sipwise', 
the current home was detected as: '~sipwise' 
Please move by hand the current home to '/ngcp-data/home/sipwise', 
you can try with: 
# make a backup of the current home, for example: 
cp -av ~sipwise '/ngcp-data/backup/ngcp-upgrade/ngcp-mr9.4.1-mr9.5.4//home-of-user-sipwise' 
and then 
mkdir -v --parents /ngcp-data/home/ && usermod --move-home --home /ngcp-data/home/sipwise sipwise 
or 
mkdir -v --parents /ngcp-data/home/ && mv -v ~sipwise /ngcp-data/home/sipwise 
# ... and then edit /etc/passwd to change home of user sipwise by hand 


The user "sipwise" along with "cdrexport" and "ngcp-backup" are created during the NGCP installation so should exist on the system. Please check ngcp-installer.log why it wasn't created. 
Creating it manually is ok as a workaround but better to find the real reason, maybe there are other problems. 

WBR 
Mykola Malkov 
​​​​ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20220418/02b58b45/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: firma-connectlife.jpg
Type: image/jpeg
Size: 44763 bytes
Desc: not available
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20220418/02b58b45/attachment-0002.jpg>


More information about the Spce-user mailing list