On Mon, Jul 30, 2012 at 9:15 AM, John Dennis <jden...@redhat.com> wrote: > On 07/30/2012 11:30 AM, Stephen Ingram wrote: >> >> On Wed, Jul 25, 2012 at 11:18 PM, Stephen Ingram <sbing...@gmail.com> >> wrote: >>> >>> On Wed, Jul 25, 2012 at 4:31 AM, John Dennis <jden...@redhat.com> wrote: >>>> >>>> On 07/25/2012 02:59 AM, Stephen Ingram wrote: >>>>> >>>>> >>>>> Seeing python2.7, I'm guessing these patches were against Fedora. >>>>> Since I couldn't get them to apply against RH 6.3 I applied them by >>>>> hand. I couldn't get the WebUI to load after applying the patches. I'm >>>>> not sure of the code that caused the problem, but I did see mention of >>>>> global name datetime not being defined. You wouldn't happen to have >>>>> patches for RH 6.3? >>>> >>>> >>>> >>>> Sorry, I thought you had a F17 install. It should be easy to fix the >>>> datetime issue, just add this add the top of the file: >>>> >>>> import time, datetime >>>> >>>> If that simple fix doesn't work then let me know the version you've got >>>> and >>>> I'll make up a new patch against that version. >>> >>> >>> Yes, please send a patch for 2.20 with RH 6.3. The import time, >>> datetime did not address all of the errors. >> >> >> Not sure if you missed this one or not, but, yes, I do need a patch >> for 2.20 on RH 6.3. I added datetime, but there were still other >> errors that I couldn't resolve. > > > Sorry, I did see it but I was busy with other things. You can try the > attached patch. However you need to have a clean set of files to patch > against. The patch command I suggested included the -b option and would have > created backup files of the original file with a .orig suffix. These are the > files the patch touches. > > ipalib/session.py > ipaserver/plugins/ldap2.py > ipaserver/rpcserver.py > > > Find their .orig version and cp it back to the original filename. Then you > can try applying the patch again. > > Caveat: I did not test this against 2.20, I just manually made the same set > of changes and generated a patch, it's possible in my hurry I made a mistake > you may need to tweak,
This is pretty much the same thing I applied previously by hand. I noticed that you placed import datetime on its own line so I followed suit. Here are the errors I'm receiving: [Mon Jul 30 10:09:09 2012] [error] [client x.x.x.] mod_wsgi (pid=2634): Exception occurred processing WSGI script '/usr/share/ipa/wsgi.py'. [Mon Jul 30 10:09:09 2012] [error] [client x.x.x.x] Traceback (most recent call last): [Mon Jul 30 10:09:09 2012] [error] [client x.x.x.x] File "/usr/share/ipa/wsgi.py", line 49, in application [Mon Jul 30 10:09:09 2012] [error] [client x.x.x.x] return api.Backend.wsgi_dispatch(environ, start_response) [Mon Jul 30 10:09:09 2012] [error] [client x.x.x.x] File "/usr/lib/python2.6/site-packages/ipaserver/rpcserver.py", line 234, in __call__ [Mon Jul 30 10:09:09 2012] [error] [client x.x.x.x] return self.route(environ, start_response) [Mon Jul 30 10:09:09 2012] [error] [client x.x.x.x] File "/usr/lib/python2.6/site-packages/ipaserver/rpcserver.py", line 246, in route [Mon Jul 30 10:09:09 2012] [error] [client x.x.x.x] return app(environ, start_response) [Mon Jul 30 10:09:09 2012] [error] [client x.x.x.x] File "/usr/lib/python2.6/site-packages/ipaserver/rpcserver.py", line 784, in __call__ [Mon Jul 30 10:09:09 2012] [error] [client x.x.x.x] session_data = session_mgr.load_session_data(environ.get('HTTP_COOKIE')) [Mon Jul 30 10:09:09 2012] [error] [client x.x.x.x] File "/usr/lib/python2.6/site-packages/ipalib/session.py", line 1004, in load_session_data [Mon Jul 30 10:09:09 2012] [error] [client x.x.x.x] self.store_session_data(session_data) [Mon Jul 30 10:09:09 2012] [error] [client x.x.x.x] File "/usr/lib/python2.6/site-packages/ipalib/session.py", line 1047, in store_session_data [Mon Jul 30 10:09:09 2012] [error] [client x.x.x.x] fmt_time(session_data['session_start_timestamp']), [Mon Jul 30 10:09:09 2012] [error] [client x.x.x.x] File "/usr/lib/python2.6/site-packages/ipalib/session.py", line 634, in fmt_time [Mon Jul 30 10:09:09 2012] [error] [client x.x.x.x] return datetime.fromtimestamp(timestamp).strftime(ISO8601_DATETIME_FMT) [Mon Jul 30 10:09:09 2012] [error] [client x.x.x.x] AttributeError: 'module' object has no attribute 'fromtimestamp' There seems to be a problem with the format of the log information returned? Perhaps the fromtimestamp attribute was added after version 2.20? Steve _______________________________________________ Freeipa-devel mailing list Freeipa-devel@redhat.com https://www.redhat.com/mailman/listinfo/freeipa-devel