Ticket #3186 (closed defect: worksforme)
Date::Calc::Decode_Month(): argument is not a string
| Reported by: | neorum@… | Owned by: | jamor@… |
|---|---|---|---|
| Milestone: | 2.2.X | Component: | usercorner |
| Severity: | normal | Keywords: | |
| Cc: |
Description (last modified by jacalvo@…) (diff)
Error
Date::Calc::Decode_Month(): argument is not a string
Trace
Date::Calc::Decode_Month(): argument is not a string at /usr/share/perl5/EBox/CA.pm line 2316.
Attachments
Change History
Changed 22 months ago by anonymous
-
attachment
zentyal.log
added
comment:1 Changed 22 months ago by jacalvo@…
- Owner changed from jacalvo@… to ejhernandez@…
- Description modified (diff)
- Summary changed from Bug report from Zentyal Server to Date::Calc::Decode_Month(): argument is not a string
comment:2 Changed 22 months ago by ejhernandez@…
Hi there,
Could you paste here the output of the following command?
sudo openssl x509 -enddate -in '/var/lib/zentyal/CA/cacert.pem' -noout
Which steps do you take to have this problem?
Best,
comment:3 Changed 22 months ago by softwork@…
- priority changed from normal to high
- Component changed from base to usercorner
I have the same problem, when I try to login in UserCorner?.
Date::Calc::Decode_Month(): argument is not a string at /usr/share/perl5/EBox/CA.pm line 2316.
comment:4 Changed 22 months ago by softwork@…
sudo openssl x509 -enddate -in '/var/lib/zentyal/CA/cacert.pem' -noout
gives me
"notAfter=Aug 25 12:35:05 2021 GMT"
comment:5 Changed 22 months ago by jean.navarro@…
same problem after fresh install in virtualbox for test, when I try login in UserCorner?
sudo openssl x509 -enddate -in '/var/lib/zentyal/CA/cacert.pem' -noout => notAfter=Sep 2 20:08:23 2021 GMT
comment:6 Changed 22 months ago by innocenti_jr
Same symptoms here.
I also found the same error in zentyal.log (apart from usercorner):
2011/09/09 15:48:54 WARN> EventDaemon.pm:188 EBox::EventDaemon::__ANON__ - Erro executing run from EBox::Event::Watcher::DiskFreeSpace: Date::Calc::Decode_Month(): argument is not a string at /usr/share/perl5/EBox/CA.pm line 2316.
And no, I really have no clue at all why DiskFreeSpace? may call something in CA.pm ;->
comment:8 Changed 22 months ago by jamor@…
Hello people,
I have difficulty to find what raises this error. Could you say me what is the estate of your certification authority?. Is not created? Is created? Is revoked?.
comment:9 Changed 22 months ago by innocenti_jr
It's created and valid.
I found the following in /var/log/zentyal-usercorner/error.log:
sh: cannot create /var/lib/zentyal/tmp/openssl-shell.out: Permission denied sh: cannot create /var/lib/zentyal/tmp/openssl-shell.out: Permission denied Use of uninitialized value $monthStr in substitution (s///) at /usr/share/perl5/EBox/CA.pm line 2315.
openssl-shell.out (and openssl-shell.err) were not present. I created these files manually (with chmod 666) and was able to login successfully.
I don't know why they disappeared.
comment:10 Changed 22 months ago by jamor@…
- Status changed from new to assigned
Thanks innocenti.
This information will be very useful to reproduce this bug
comment:11 Changed 21 months ago by jamor@…
- Status changed from assigned to closed
- Resolution set to fixed
comment:12 follow-up: ↓ 13 Changed 21 months ago by jamor@…
Fixed in the repository.
If you want to hotfix your server:
1) Replace /usr/share/perl5/EBox/CA.pm with http://trac.zentyal.org/export/23203/branches/jag/2.1-sep12/ca/src/EBox/CA.pm
2) Execute 'sudo /etc/init.d/zentyal usercorner restart' and 'sudo /etc/init.d/zentyal apache restart'
Thanks to all for the reports
comment:13 in reply to: ↑ 12 Changed 21 months ago by innocenti_jr
comment:14 Changed 20 months ago by lars@…
- Status changed from closed to reopened
- Resolution fixed deleted
I tried the hotfix with the CA.pm supplied above and the latest from trunk. It does not work here with both versions.
$VAR1 = bless( {
'-file' => '/usr/share/perl5/EBox/CA.pm', '-text' => 'Date::Calc::Decode_Month(): argument is not a string', '-line' => '2316', '-package' => 'Error'
}, 'Error::Simple' );
comment:15 Changed 19 months ago by jamor@…
Hi Lars,
can you try this command and paste the output here?:
sudo openssl x509 -enddate -in '/var/lib/zentyal/CA/cacert.pem' -noout
It could be useful to diagnose your problem
comment:16 Changed 19 months ago by lars@…
Hi Jamor,
the output looks OK!?
notAfter=Aug 23 12:07:25 2021 GMT
lars
comment:17 Changed 19 months ago by jamor@…
- Status changed from reopened to closed
- Resolution set to worksforme
Thanks for your output, Lars.
The output is correct and i should not produce this error, we have tried several configurations but we haven't been able to reproduce again this error. Also nobody else has reported it after the last fixes.
We are in the dark and we are starting to think that is a very infrequent openssl error.
I close this until we have more confirmation or hints about it.
zentyal.log