Bug 37400 - schoolcsvimport / CSV import module Traceback "object has no attribute file_map"
schoolcsvimport / CSV import module Traceback "object has no attribute file_map"
Status: CLOSED WONTFIX
Product: UCS@school
Classification: Unclassified
Component: Import scripts
UCS@school 4.0
Other Linux
: P5 normal with 2 votes (vote)
: UCS@school 4.0.x
Assigned To: UCS@school maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-12-19 10:14 CET by Ammar Najjar
Modified: 2023-06-12 15:39 CEST (History)
3 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.034
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 Ammar Najjar univentionstaff 2014-12-19 10:14:50 CET
Running 73_CSV_import_module produced a traceback:

Traceback (most recent call last):
  File "73_CSV_import_module", line 152, in <module>
    main()
  File "73_CSV_import_module", line 114, in main
    [])
  File "/usr/share/ucs-test/90_ucsschool/essential/importcsv.py", line 361, in check_import_users
    m.check_schools()
  File "/usr/share/ucs-test/90_ucsschool/essential/importcsv.py", line 209, in check_schools
    if self.school not in self.schools():
  File "/usr/share/ucs-test/90_ucsschool/essential/importcsv.py", line 203, in schools
    reqResult = self.umc_connection.request('schoolcsvimport/schools', {})
  File "/usr/lib/pymodules/python2.6/univention/lib/umc_connection.py", line 141, in request
    raise HTTPException(error_message)
httplib.HTTPException: 502 on master201 (schoolcsvimport/schools): <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>502 Proxy Error</title>
</head><body>
<h1>Proxy Error</h1>
<p>The proxy server received an invalid�
response from an upstream server.<br />�
The proxy server could not handle the request <em><a href="/umcp/command/schoolcsvimport/schools">POST&nbsp;/umcp/command/schoolcsvimport/schools</a></em>.<p>
Reason: <strong>Error reading from remote server</strong></p></p>
<hr>
<address>Apache/2.2.16 (Univention) Server at master201 Port 443</address>
</body></html>


From management-console-module-schoolcsvimport.log:

18.12.14 10:24:49.322  MODULE      ( WARN    ) : Starting univention-directory-notifier
18.12.14 10:24:49.815  MODULE      ( PROCESS ) : Starting Univention Directory Notifier daemon.
ok: run: univention-directory-notifier: (pid 3211) 0s, normally down
done.

18.12.14 10:24:49.815  MODULE      ( PROCESS ) : univention-directory-notifier started
18.12.14 10:25:08.788  DEBUG_INIT
18.12.14 10:25:09.560  MAIN        ( WARN    ) : Shutting down all open connections
18.12.14 10:25:09.615  MAIN        ( WARN    ) : Shutting down all open connections
18.12.14 10:25:09.618  MAIN        ( WARN    ) : Shutting down all open connections
18.12.14 10:25:09.622  MAIN        ( WARN    ) : Shutting down all open connections
18.12.14 10:25:09.641  MAIN        ( WARN    ) : Shutting down all open connections
18.12.14 10:25:09.650  MAIN        ( WARN    ) : Shutting down all open connections
18.12.14 10:25:09.666  MAIN        ( WARN    ) : Shutting down all open connections
18.12.14 10:25:09.677  MAIN        ( WARN    ) : Shutting down all open connections
18.12.14 10:25:09.682  MAIN        ( WARN    ) : Shutting down all open connections
18.12.14 10:25:09.688  MAIN        ( WARN    ) : Shutting down all open connections
18.12.14 10:25:09.702  MAIN        ( WARN    ) : Shutting down all open connections
18.12.14 10:25:09.706  MAIN        ( WARN    ) : Shutting down all open connections
18.12.14 10:25:09.718  MAIN        ( WARN    ) : Shutting down all open connections
18.12.14 10:25:09.723  MAIN        ( WARN    ) : Shutting down all open connections
18.12.14 10:35:12.032  MODULE      ( ERROR   ) : Traceback (most recent call last):
  File "/usr/sbin/univention-management-console-module", line 118, in <module>
    notifier.loop()
  File "/usr/lib/pymodules/python2.6/notifier/nf_generic.py", line 284, in loop
    step()
  File "/usr/lib/pymodules/python2.6/notifier/nf_generic.py", line 243, in step
    if not timer[ CALLBACK ]():
  File "/usr/lib/pymodules/python2.6/univention/management/console/protocol/modserver.py", line 126, in _timer
    self._timed_out()
  File "/usr/lib/pymodules/python2.6/univention/management/console/protocol/modserver.py", line 135, in _timed_out
    self.__handler.destroy()
  File "/usr/lib/pymodules/python2.6/univention/management/console/modules/schoolcsvimport/__init__.py", line 308, in destroy
    for file_info in self.file_map.itervalues():
AttributeError: 'Instance' object has no attribute 'file_map'
Comment 1 Florian Best univentionstaff 2014-12-19 10:59:54 CET
Instance.init() was never called.
Comment 2 Sönke Schwardt-Krummrich univentionstaff 2015-01-05 09:47:01 CET
@Ammar: is this bug reproducible? when does it occur?
Comment 3 Ammar Najjar univentionstaff 2015-01-07 09:17:26 CET
This is produced by 73_CSV_import_module and fails every time on UCSschool 3.2R2 Singleserver SambaVersion=s4-all-components machine in Jenkins.
Comment 4 Florian Best univentionstaff 2015-02-18 09:23:05 CET
I find this issue highly interesting: If this is an error in the UMC-Server itself it could explain a lot of bugs e.g. in the appcenter initialization.

Interesting would be the logfiles /var/log/apache2/*.log and /var/log/univention/management-console-*.log while having the UCRV umc/server/debug/level=4 umc/module/debug/level=4
Comment 5 Florian Best univentionstaff 2015-02-27 14:37:42 CET
I could not reproduce with "UCSschool 3.2R2 Singleserver SambaVersion=s4-all-components".
Is ucs-3.2/ucs-3.2-4/test/ucs-ec2-tools/examples/jenkins/autotest-201-ucsschool-singleserver-s4-all-components.cfg correct?

Do you have a link to a failed jenkins job?
Comment 6 Ammar Najjar univentionstaff 2015-03-02 08:33:06 CET
(In reply to Florian Best from comment #5)
> I could not reproduce with "UCSschool 3.2R2 Singleserver
> SambaVersion=s4-all-components".
> Is
> ucs-3.2/ucs-3.2-4/test/ucs-ec2-tools/examples/jenkins/autotest-201-ucsschool-
> singleserver-s4-all-components.cfg correct?
> 
> Do you have a link to a failed jenkins job?

http://jenkins.knut.univention.de:8080/job/UCSschool%203.2R2%20Singleserver/117/SambaVersion=s4-all-components/testReport/90_ucsschool/73_CSV_import_module/test/
Comment 7 Sönke Schwardt-Krummrich univentionstaff 2019-02-05 21:20:34 CET
This issue has been filled against UCS@school 4.0. The maintenance with bug 
and security fixes for UCS@school 4.0 has ended on May 31, 2016.

Customers still on UCS 4.0 are encouraged to update to UCS 4.3 (or later). 
Please contact your partner or Univention for any questions.

If this issue still occurs in newer UCS versions, please use "Clone this bug"
or simply reopen the issue. In this case please provide detailed information on
how this issue is affecting you.