Json Fehlermeldung bei sophomorix-Befehlen

Hallo,
ich habe heute mal die Migration getestet. Dabei fiel mir auf, dass bei z.B. sophomorix-project oder auch sophomorix-passwd eine json-Meldung kommt, so a la:

Option json is a modifier option
* forcing info mode
Option combinations successfully checked

dachte mir nichts bei, aber im Migrationsscript bei Punkt 8 (beim check der eingelesenen Benutzer) kommt dann wirklcih ein Fehler:

root@server:/etc/samba# sophomorix-check 
Command line::
Option verbose is a modifier option
Hmmh. do not know what to do with option info
Option json is a modifier option
* forcing info mode
Option combinations successfully checked
OK: SophomorixSchemaVersion 1 matches required Version 1
#### Reading /usr/share/sophomorix/devel/sophomorix.ini                       ####
#### Distro-check: Ubuntu 18.04 is OK                                         ####
#### Reading /etc/samba/smb.conf                                              ####
#### Reading /usr/lib/linuxmuster-webui/etc/default-ui-permissions.ini        ####
#### Parsing: net conf list                                                   ####
#### Asking domain passwordsettings from samba                                ####
#### Reading /etc/linuxmuster/sophomorix/sophomorix.conf                      ####
#### Reading /etc/linuxmuster/sophomorix/default-school/school.conf           ####
#### 0 ERRORS, 0 WARNINGS -> let's go                                         ####
#### Creating lock in /var/lib/sophomorix/lock/sophomorix.lock                ####
#### /usr/sbin/sophomorix-check started ...                                   ####
#### Cleaning up last check                                                   ####
#### Removing lock in /var/lib/sophomorix/lock/sophomorix.lock                ####
                                      ####
Use of uninitialized value $json in numeric eq (==) at /usr/share/perl5/Sophomorix/SophomorixBase.pm line 4765, <DATAFILE> line 672.
Calling console printout
                                Semicolons in

Die Leerzeichen in den letzten Zeilen sind auch in echt so.
Was habe ich falsch gemacht?

LG
Max

Edit:
root@server:/etc/samba# sophomorix-add -i
Command line::
Option json is a modifier option
Hmmh. do not know what to do with option info
Option verbose is a modifier option
* forcing info mode
Option combinations successfully checked
OK: SophomorixSchemaVersion 1 matches required Version 1
#### Reading /usr/share/sophomorix/devel/sophomorix.ini ####
#### Distro-check: Ubuntu 18.04 is OK ####
#### Reading /etc/samba/smb.conf ####
#### Reading /usr/lib/linuxmuster-webui/etc/default-ui-permissions.ini ####
#### Parsing: net conf list ####
#### Asking domain passwordsettings from samba ####
#### Reading /etc/linuxmuster/sophomorix/sophomorix.conf ####
#### Reading /etc/linuxmuster/sophomorix/default-school/school.conf ####

A total of 0 users can be added:

School: default-school (0  users can be added)

--> Total number of users to be added: 0

Fields with --- are automatically created by sophomorix-add
R: sophomorixRole (s=student, t=teacher)

Auch hier kommt die json-Meldung, aber keine Fehler.

Hallo Max,

ich bin auch gerade am Umziehen auf v7. Bei mir kamen keine Fehlermeldungen in dieser Art.
Ich habe die sophomorix-Befehle allerdings nicht aus dem samba-Verzeichnis heraus, sondern aus dem Standard-root-Verzeichnis abgesetzt. Weiß nicht, ob es daran liegen könnte.

Was bei mir nicht gepasst hat nach der Migration von v6.2 waren die Kodierungen schueler.csv und lehrer.csv (waren nicht utf-8). Vielleicht passt das auch nicht bei dir?

Grüße, Daniel

Hi Daniel,
von wo man die Befehle absetzt, ist egal. Das mit dem Encoding kann ich probieren, da gibts bei mir auch Fehlermeldungen in der WebUI deswegen, ich glaube aber nicht, dass das das Problem ist, da viele der Befehle ja nicht diese Dateien abfragen (soweit ich weiß).
Danke Trotzdem! LG
Max

Hallo Daniel
etwas näher hat mich Deine Idee gebracht:
Ich habe encoding_force = True gemacht und festgestellt, dass er über eine zusätzliche Leerzeile am Ende der students.csv stolpert. Das darf wohl nicht sein (@jeffbeck )?
Gibt es bei Dir am Anfang des sophomorix-Outputs folgende json-Meldungen auch?

root@server:/etc/linuxmuster/sophomorix/default-school# sophomorix-check 
Command line::
Option json is a modifier option
Hmmh. do not know what to do with option info
Option verbose is a modifier option
* forcing info mode
Option combinations successfully checked
OK: SophomorixSchemaVersion 1 matches required Version 1
#### Reading /usr/share/sophomorix/devel/sophomorix.ini                       ####
#### Distro-check: Ubuntu 18.04 is OK                                         ####
#### Reading /etc/samba/smb.conf                                              ####
#### Reading /usr/lib/linuxmuster-webui/etc/default-ui-permissions.ini        ####
#### Parsing: net conf list                                                   ####
#### Asking domain passwordsettings from samba                                ####
#### Reading /etc/linuxmuster/sophomorix/sophomorix.conf                      ####
#### Reading /etc/linuxmuster/sophomorix/default-school/school.conf           ####
#### 0 ERRORS, 0 WARNINGS -> let's go                                         ####
#### Creating lock in /var/lib/sophomorix/lock/sophomorix.lock                ####
#### /usr/sbin/sophomorix-check started ...                                   ####
#### Cleaning up last check                                                   ####
Encoding extrastudents.csv: UTF8 (ENCODING=auto,*_FORCE=FALSE, *_CHECKED=UTF8)
Encoding students.csv: UTF-8 (ENCODING=UTF-8,*_FORCE=TRUE, *_CHECKED=UTF8)
Encoding teachers.csv: UTF-8 (ENCODING=UTF-8,*_FORCE=TRUE, *_CHECKED=UTF8)
#### Reading injected lines ...                                               ####
#### 0 ERRORS, 0 WARNINGS -> let's go                                         ####
#### Searching AD for users ...                                               ####
#### Query AD (begin)                                                         ####
#### Query AD (end)                                                           ####

#### ### School default-school: Matching lines in files to users in AD ...    ####
#### unidMATCH: 771 CHECKED in default-school, MATCH: 0, NOMATCH: 771, NOunid: 0####
#### exactMATCH: 771 CHECKED in default-school, MATCH: 614, NOMATCH: 157      ####
#### approxMATCH: 157 CHECKED in default-school, MATCH: 147                   ####
#### approxMATCH: 10 CHECKED in default-school, MATCH: 9                      ####
#### approxMATCH: 1 CHECKED in default-school, MATCH: 1                       ####
#### approxMATCH: 0 CHECKED in default-school, MATCH: 0 (Edit distance: 4)    ####
#### ## School default-school ... Done!                                       ####
#### Removing lock in /var/lib/sophomorix/lock/sophomorix.lock                ####
#### /usr/sbin/sophomorix-check terminated regularly                          ####
Calling console printout
LOG       : /usr/sbin/sophomorix-check terminated regularly                   
##### Overview of what can be done:
 0 users can be added in sophomorix.add                              
   798 users can be updated in sophomorix.update                         
 0 users can be killed in sophomorix.kill                            
30 users are not to be changed in sophomorix.nochange                
 0 users with errors in sophomorix.error                             

Die „update“-User gehen natürlich nach sophomorix-update weg, es geht mir um die ersten Zeilen. Danke fürs Nachsehen, wenn das so wäre, dann müsste ich nicht komplett von vorne anfangen.

Lieben Gruß
Max

Hallo zusammen,
kann nur beitragen:

Die JSON option meldung kommt bei mir auch. DAs ist normal. Sowieso ist der v7 sophomorix output immer ziemlich verbose.

So sieht das in einem normalen run aus:

# sophomorix-check
Command line::
Option verbose is a modifier option
Hmmh. do not know what to do with option info
Option json is a modifier option
* forcing info mode
Option combinations successfully checked
OK: SophomorixSchemaVersion 1 matches required Version 1
#### Reading /usr/share/sophomorix/devel/sophomorix.ini                       ####
#### Distro-check: Ubuntu 18.04 is OK                                         ####
#### Reading /etc/samba/smb.conf                                              ####
#### Reading /usr/lib/linuxmuster-webui/etc/default-ui-permissions.ini        ####
#### Parsing: net conf list                                                   ####
#### Asking domain passwordsettings from samba                                ####
#### Reading /etc/linuxmuster/sophomorix/sophomorix.conf                      ####
#### Reading /etc/linuxmuster/sophomorix/default-school/school.conf           ####
#### 0 ERRORS, 0 WARNINGS -> let's go                                         ####
#### Creating lock in /var/lib/sophomorix/lock/sophomorix.lock                ####
#### /usr/sbin/sophomorix-check started ...                                   ####
#### Cleaning up last check                                                   ####
Encoding extrastudents.csv: UTF8 (ENCODING=auto,*_FORCE=FALSE, *_CHECKED=UTF8)
Encoding students.csv: UTF8 (ENCODING=auto,*_FORCE=FALSE, *_CHECKED=UTF8)
Encoding teachers.csv: UTF8 (ENCODING=auto,*_FORCE=FALSE, *_CHECKED=UTF8)
#### Reading injected lines ...                                               ####
#### 0 ERRORS, 0 WARNINGS -> let's go                                         ####
#### Searching AD for users ...                                               ####
#### Query AD (begin)                                                         ####
#### Query AD (end)                                                           ####

#### ### School default-school: Matching lines in files to users in AD ...    ####
#### unidMATCH: 1200 CHECKED in default-school, MATCH: 0, NOMATCH: 1200, NOunid: 0####
#### exactMATCH: 1200 CHECKED in default-school, MATCH: 1200, NOMATCH: 0      ####
#### approxMATCH: 0 CHECKED in default-school, MATCH: 0 (Edit distance: 1)    ####
#### ## School default-school ... Done!                                       ####
#### Removing lock in /var/lib/sophomorix/lock/sophomorix.lock                ####
#### /usr/sbin/sophomorix-check terminated regularly                          ####
Calling console printout
LOG       : /usr/sbin/sophomorix-check terminated regularly                   
##### Overview of what can be done:
     0 users can be added in sophomorix.add                              
     0 users can be updated in sophomorix.update                         
     0 users can be killed in sophomorix.kill                            
  1271 users are not to be changed in sophomorix.nochange                
     0 users with errors in sophomorix.error                           

Zu dem Fehler, den sophomorix wirft, kann ich leider nichts sagen.
VG, Tobias

Danke fürs Schauen! Jetzt bin ich beruhigt.
Der Fehler hat sich geklärt, es war eine Leerzeile in der schueler.csv…
Schöne Ferien und lieben Gruß
Max