Univention Bugzilla – Bug 37400
schoolcsvimport / CSV import module Traceback "object has no attribute file_map"
Last modified: 2023-06-12 15:39:41 CEST
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 /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'
Instance.init() was never called.
@Ammar: is this bug reproducible? when does it occur?
This is produced by 73_CSV_import_module and fails every time on UCSschool 3.2R2 Singleserver SambaVersion=s4-all-components machine in Jenkins.
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
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?
(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/
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.