QUESTION Cron error: /dev/mem

jaycos

Member
Joined
Sep 3, 2018
Messages
36
Reaction score
9
Hi all,
I could use your help with this. My iPBX13-13 (HiFormance) sends me an email every hour, saying
Subject: Cron <root@noreply> run-parts /etc/cron.hourly
/etc/cron.hourly/mcelog.cron:
mcelog: Cannot open /dev/mem for DMI decoding: Operation not permitted

How can I fix this?

Bonus question: The email gets sent to [email protected] - how can I change that to a real email address?
 
Joined
Oct 26, 2013
Messages
69
Reaction score
23
Hi all,
I could use your help with this. My iPBX13-13 (HiFormance) sends me an email every hour, saying
Subject: Cron <root@noreply> run-parts /etc/cron.hourly
/etc/cron.hourly/mcelog.cron:
mcelog: Cannot open /dev/mem for DMI decoding: Operation not permitted

How can I fix this?

Bonus question: The email gets sent to [email protected] - how can I change that to a real email address?
You are getting that error because your iPBX setup at HiFormance is an OpenVZ container, therefore you are not allowed execute the mcelog command. To stop that error, delete the file /etc/cron.hourly/mcelog.cron or remove it from that directory.
 

jaycos

Member
Joined
Sep 3, 2018
Messages
36
Reaction score
9
Thank you, that helped!
Here's another error message I keep getting:
/etc/cron.daily/logrotate:

error: asterisk:5 unknown option 'su' -- ignoring line
error: asterisk:5 unexpected text

Any idea what to do about that?
 
Joined
Oct 26, 2013
Messages
69
Reaction score
23
Change your /etc/logrotate.d/asterisk file to look like this:

Code:
/var/log/asterisk/*log {
   missingok
   rotate 5
   weekly
   create 0640 asterisk asterisk
   postrotate
       /usr/sbin/asterisk -rx 'logger reload' > /dev/null 2> /dev/null
   endscript
}

/var/log/asterisk/full /var/log/asterisk/security {
   missingok
   rotate 8
   daily
   create 0640 asterisk asterisk
   postrotate
       /usr/sbin/asterisk -rx 'logger reload' > /dev/null 2> /dev/null
   endscript
}

/var/log/asterisk/cdr-csv/*csv {
  missingok
  rotate 5
  monthly
  create 0640 asterisk asterisk
}

On the second stanza you might not need /var/log/asterisk/security. I enabled that log file for my Asterisk install, but if you didn't then you can get by with just /var/log/asterisk/full
 
Last edited:

jaycos

Member
Joined
Sep 3, 2018
Messages
36
Reaction score
9
Thanks! I only used the second stanza, as the original file only had just /var/log/asterisk/full
 

Members online

No members online now.

Forum statistics

Threads
25,812
Messages
167,763
Members
19,241
Latest member
bellabos
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top