Bug 20340 - Die Dateiverteilung bzw. der Sammeldienst läuft endlos weiter, wenn nicht eingesammelt werden kann
Die Dateiverteilung bzw. der Sammeldienst läuft endlos weiter, wenn nicht ein...
Status: RESOLVED INVALID
Product: UCS@school
Classification: Unclassified
Component: UMC - Distribution
UCS@school for UCS 2.4
Other Linux
: P1 normal (vote)
: UCS@school UCS 2.X
Assigned To: Bugzilla Mailingliste
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-10-12 18:27 CEST by Roman Asendorf
Modified: 2012-06-01 16:05 CEST (History)
4 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Asendorf univentionstaff 2010-10-12 18:27:13 CEST
Indikator: Im Syslog erscheinen alle 20 Sekunden folgende Meldungen:

Oct 12 18:21:35 singlemaster python2.4: ...ribution/umc-distribution:378: umc-distribution started: args=['/usr/lib/ucs-school-umc-distribution/umc-distribution', '--collect', '/var/lib/ucs-school-umc-distribution/R1263457868-693']
Oct 12 18:21:35 singlemaster python2.4: ...ribution/umc-distribution:386: umc-distribution: file does not exist: /var/lib/ucs-school-umc-distribution/R1263457868-693
Oct 12 18:21:35 singlemaster python2.4: ...ribution/umc-distribution:430: finished umc-distribution: args=['/usr/lib/ucs-school-umc-distribution/umc-distribution', '--collect', '/var/lib/ucs-school-umc-distribution/R1263457868-693']
Oct 12 18:21:35 singlemaster python2.4: E: command "/usr/lib/ucs-school-umc-distribution/umc-distribution --collect /var/lib/ucs-school-umc-distribution/R1263457868-693" exited with return code: 10

Workaround:

Aus der MySQL-Datenbank reservation sind die Einträge zu entfernen, die Probleme bereiten:

mysql> select * from reservation; 
+---------------+------+-------------+-------+-----------+-----------+---------------------+---------------------+---------------+---------------------+--------------------+--------------+--------------+--------------+------------+
| reservationID | name | description | owner | hostgroup | usergroup | startTime           | endTime             | iterationDays | iterationEnd        | iterateInVacations | resprofileID | status       | replacedByID | deleteFlag |
+---------------+------+-------------+-------+-----------+-----------+---------------------+---------------------+---------------+---------------------+--------------------+--------------+--------------+--------------+------------+
|             9 |      |             |  2078 |      5037 |      5035 | 2009-10-22 08:50:00 | 2009-10-22 11:25:00 |             0 | 0000-00-00 00:00:00 |               NULL |            3 | WAITING      |         NULL |       NULL | 
|            10 |      |             |  2078 |      5037 |      5042 | 2009-10-29 11:40:00 | 2009-10-29 13:15:00 |             0 | 0000-00-00 00:00:00 |               NULL |            3 | ERROR 115-0  |         NULL |       NULL | 
|            11 |      |             |  2076 |      5037 |      5034 | 2010-01-15 09:50:00 | 2010-01-15 11:25:00 |             0 | 0000-00-00 00:00:00 |               NULL |            2 | ERROR 116-10 |         NULL |       NULL | 
|            12 |      |             |  2078 |      5037 |      5036 | 2010-03-24 09:50:00 | 2010-03-24 10:35:00 |             0 | 0000-00-00 00:00:00 |               NULL |            8 | DONE         |         NULL |       NULL | 
|            13 |      |             |  2078 |      5037 |      5035 | 2010-05-17 08:00:00 | 2010-05-17 09:35:00 |             0 | 0000-00-00 00:00:00 |               NULL |            8 | DONE         |         NULL |       NULL | 
+---------------+------+-------------+-------+-----------+-----------+---------------------+---------------------+---------------+---------------------+--------------------+--------------+--------------+--------------+------------+
Comment 1 Sönke Schwardt-Krummrich univentionstaff 2010-11-22 13:47:33 CET
Dieser Fehler tritt auf, wenn das Verteilungsprojekt manuell vor Ablauf der Reservierung eingesammelt wird. Das führt dazu, dass "umc-distribution --collect
 /path/to/project" das nicht-existente Projekt nicht mehr einsammeln kann und einen Fehler zurückgibt. Der Scheduler probiert daraufhin immer wieder das Projekt einzusammeln und gibt die Fehler im Log-Status "ERROR" aus, so dass diese auch im syslog landen.
Comment 2 Sönke Schwardt-Krummrich univentionstaff 2010-12-06 13:48:13 CET
Erneut aufgetreten an Ticket #2010120310000701

Fix, falls das Problem auftritt:

ucr unset [--schedule] auf folgende Variablen:

proxy/filter/groupdefault/$GRUPPE
samba/othershares/usergroup/$GRUPPE/invalid
samba/printmode/usergroup/$GRUPPE
samba/share/$GRUPPE/usergroup/$GRUPPE/invalid
samba/share/marktplatz/usergroup/$GRUPPE/invalid

Fehlerhaften SQL-Eintrag entfernen:

# mysql -p$(< /etc/mysql.secret) reservation
# DELETE FROM reservation WHERE status LIKE 'ERROR %';
Comment 3 Tobias Scherer univentionstaff 2011-05-17 09:32:46 CEST
erneut berichtet an Ticket#: 2011051110004007
Comment 4 Alexander Kläser univentionstaff 2012-06-01 16:05:58 CEST
Mit UCS@school 3.0 wurde das Materialverteilungsmodul grundsätzlich überarbeitet, so dass beschriebene Problem nicht mehr auftritt, bzw. nicht mehr zutrifft.