Hallo zusammen,
ich musste gerade feststellen, dass das Einsammeln und Austeilen von Dateien nicht funktioniert. Im WebGUI erhielt ich die Meldung, dass keine Daten gefunden werden können. Allerdings sind die hochgeladenen Dateien im Transferverzeichnis angekommen.
Ich habe dann versucht, den Befehl manuell über die Konsole auszuführen und erhielt folgende Fehlermeldung:
root@server:/var/log# /usr/sbin/sophomorix-transfer -j --list-home-dir rabe --subdir /transfer/
Command line::
Option verbose is a modifier option
Option json is a modifier option
Hmmh. do not know what to do with option info
* forcing info mode
Option combinations successfully checked
OK: SophomorixSchemaVersion 1 matches required Version 1
#### Reading /usr/share/sophomorix/devel/sophomorix.ini ####
#### Distro-check: Ubuntu 22.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 ####
#### /usr/sbin/sophomorix-transfer started ... ####
#### Listing homedir of rabe (subdir /transfer/) ####
lp_load_ex: Max protocol NT1 is less than min protocol SMB2_02.
ERROR: smb command
COMMAND:
/usr/bin/smbclient --debuglevel=0 -U administrator%'******' //server/default-school -mNT1 -c 'cd \teachers\rabe\/transfer/; ls'
RETURN VALUE: 256
ERROR MESSAGE:
protocol negotiation failed: NT_STATUS_INVALID_PARAMETER_MIX
# JSON-begin
{
"JSONINFO" : "DIRLISTING",
"JSONCOMMENT" : "Listing of subdirs in homes",
"sAMAccountName" : {
"rabe" : {
"COUNT" : {
"directories" : 0,
"files" : 0
},
"LIST" : [],
"SMB_PATH" : "smb://server/default-school\\teachers\\rabe\\/transfer/"
}
}
}
# JSON-end
#### /usr/sbin/sophomorix-transfer terminated regularly ####
# JSON-begin
{
"OUTPUT" : [
{
"TYPE" : "LOG",
"LOG" : "/usr/sbin/sophomorix-transfer terminated regularly"
}
],
"JSONCOMMENT" : "---",
"JSONINFO" : "RESULT",
"SCRIPTNAME" : "sophomorix-transfer"
}
# JSON-end
Ich konnte den Fehler beheben, indem ich in der Datei /usr/share/sophomorix/devel/sophomorix.ini
die Zeile SMBCLIENT_PROTOCOL_OPT= ##-mNT1
auskommentiert habe.
Dann habe ich die Dateien angezeigt bekommen im WebGUI, doch beim Austeilen bekommen ich die Fehlermeldung
ERROR MESSAGE: Server doesn't support UNIX CIFS calls.
root@server:/var/log# /usr/sbin/sophomorix-transfer -jj --scopy --from-user rabe --to-user muskel --from-path transfer/arbeitsblatt001-099.pdf --to-path transfer/rabe_test-autoGenerated/
Command line::
Hmmh. do not know what to do with option info
Option verbose is a modifier option
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 22.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 ####
#### /usr/sbin/sophomorix-transfer started ... ####
#### Copying/Moving ... ####
* From user: rabe transfer/arbeitsblatt001-099.pdf
* To user: muskel transfer/rabe_test-autoGenerated/
* To user addon:
ERROR: smb command
COMMAND:
/usr/bin/smbclient --debuglevel=0 -U administrator%'******' //****.***.lmschule.de/default-school -c 'stat "teachers/rabe/transfer/arbeitsblatt001-099.pdf"; exit;'
RETURN VALUE: 0
ERROR MESSAGE:
Server doesn't support UNIX CIFS calls.
##### Scanning TO new: School: default-school Subdir: students/test/muskel/transfer/rabe_test-autoGenerated ...
ERROR: smb command
COMMAND:
/usr/bin/smbclient --debuglevel=0 -U administrator%'******' //***.***.lmschule.de/default-school -c 'stat "students/test/muskel/transfer/rabe_test-autoGenerated"; exit;'
RETURN VALUE: 0
ERROR MESSAGE:
Server doesn't support UNIX CIFS calls.
{
"FROM" => {
"rabe" => {
"TO" => {
"muskel" => {
"COUNT" => {
"DIRS" => 0,
"FILES" => 0
},
"HOME" => "teachers/rabe",
"LISTS" => {
"DIRS" => [],
"FILES" => []
},
"SOURCE_NODE" => "NONEXISTING",
"SOURCE_PATH" => "teachers/rabe/transfer/arbeitsblatt001-099.pdf",
"SOURCE_SCHOOL" => "default-school",
"TARGET_PATH_ADDON" => ""
}
}
}
},
"OPTIONS" => {
"FROM" => "rabe",
"FROM_COUNT" => 1,
"FROM_LIST" => [
"rabe"
],
"FROM_PATH" => "transfer/arbeitsblatt001-099.pdf",
"MAX_COUNT" => 1,
"TO" => "muskel",
"TO_COUNT" => 1,
"TO_LIST" => [
"muskel"
],
"TO_PATH" => "transfer/rabe_test-autoGenerated/"
},
"TO" => {
"muskel" => {
"FROM" => {
"rabe" => {
"COUNT" => {
"DIRS" => 0,
"FILES" => 0
},
"HOME" => "students/test/muskel",
"LISTS" => {
"DIRS" => [],
"FILES" => []
},
"TARGET_MKDIR" => "students/test/muskel/transfer/rabe_test-autoGenerated",
"TARGET_NODE" => "NONEXISTING",
"TARGET_PATH" => "students/test/muskel/transfer/rabe_test-autoGenerated",
"TARGET_PATH_ADDON" => "",
"TARGET_SCHOOL" => "default-school"
}
}
}
}
}
scopy: rabe -----> muskel (start)
# JSON-begin
{"COMMENT_EN":"WARNING: Source file/dir nonexisting: default-school -> teachers/rabe/transfer/arbeitsblatt001-099.pdf","FINAL_STEP":1,"COMMENT_DE":"WARNING: Source file/dir nonexisting: default-school -> teachers/rabe/transfer/arbeitsblatt001-099.pdf","JSONINFO":"PROGRESS","STEP":1}
# JSON-end
#### /usr/sbin/sophomorix-transfer terminated regularly ####
# JSON-begin
{"JSONINFO":"RESULT","JSONCOMMENT":"---","OUTPUT":[{"LOG":"WARNING: Source file/dir nonexisting: default-school -> teachers/rabe/transfer/arbeitsblatt001-099.pdf","TYPE":"LOG"},{"LOG":"/usr/sbin/sophomorix-transfer terminated regularly","TYPE":"LOG"}],"SCRIPTNAME":"sophomorix-transfer"}
# JSON-end
Hier sind die verwendeten Versionen:
root@server:/var/log# dpkg -l | grep linuxmuster
ii linuxmuster-base7 7.2.0-rc11 all linuxmuster.net configuration scripts
ii linuxmuster-linbo-gui7 7.2.2 all Linuxmuster Linbo GUI
ii linuxmuster-linbo7 4.1.34-0 all linuxmuster-linbo7
ii linuxmuster-prepare 7.2.6-0 all linuxmuster.net pre setup configuration scripts
ii linuxmuster-webui7 7.2.22 all Next generation web-based management tool for linuxmuster.net v7.x
root@server:/var/log# dpkg -l | grep sop
ii sophomorix-samba 3.90.10-2 all Sophomorix for Samba 4
Ich würde mich über Unterstützung sehr freuen.
Grüße,
Kevin