• February 23, 2025, 12:42:17 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Author Topic: Potential bug: crond process runs twice ?!?  (Read 14458 times)

kalle82

  • Level 2 Member
  • **
  • Posts: 26
Potential bug: crond process runs twice ?!?
« on: January 07, 2014, 04:56:53 AM »

Hi everybody.

After 5 great years with the DNS-323 I got myself a brand-new DNS-327L - and am very pleased so far.

I successfully installed ffp 0.7 and basically plan to use it for custom incremental backups to my DNS-323. Before installing ffp, I also tested the integrated "Remote Backup" function. I got it to work with my DNS-323 using NAS-to-Linux but found that the incremental backup checkbox ist only available when choosing "Remote to Local", not "Local to remote"). My solution works fine so far.

However, when playing around I found a potential bug of the DNS-327L. The crond process runs twice so each job added to the crontab will be executed twice (which can cause problems). Currently no fun_plug services are started (except SSH).

Can someone (preferably no user of fun_plug) check his process table in the Web GUI (System Status->Resource Monitor->Process) and tell if he has 2 crond processes as well?  If so, this could be a bug and it would be very very kind to fix it in the next firmware

« Last Edit: January 07, 2014, 05:17:03 AM by JavaLawyer »
Logged

kalle82

  • Level 2 Member
  • **
  • Posts: 26
Re: Potential bug: crond process runs twice ?!?
« Reply #1 on: January 07, 2014, 05:00:25 AM »

Oh, I just found a similar report of a user who confirms the same effect for three (!) DNS-320 devices.
It was posted here (link) in this forum. However, there are no replys yet, so this topic is still not solved.

It would be nice if another DNS-327L user could confirm the bug by looking in his web interface (see above).
Logged

JavaLawyer

  • BETA Tester
  • Level 15 Member
  • *
  • Posts: 12190
  • D-Link Global Forum Moderator
    • FoundFootageCritic
Re: Potential bug: crond process runs twice ?!?
« Reply #2 on: January 07, 2014, 05:04:09 AM »

If other DNS-327L owners can confirm this bug, I'll add it to the firmware wishlist sticky post at the top of this board.
Logged
Find answers here: D-Link ShareCenter FAQ I D-Link Network Camera FAQ
There's no such thing as too many backups FFC

kalle82

  • Level 2 Member
  • **
  • Posts: 26
Re: Potential bug: crond process runs twice ?!?
« Reply #3 on: January 07, 2014, 05:05:48 AM »

That would be nice, thanks. So come one, guys, please have a quick look in your web interface!
Logged

JavaLawyer

  • BETA Tester
  • Level 15 Member
  • *
  • Posts: 12190
  • D-Link Global Forum Moderator
    • FoundFootageCritic
Re: Potential bug: crond process runs twice ?!?
« Reply #4 on: January 07, 2014, 05:18:54 AM »

Cross referenced thread from DNS-320 board: DNS-320 - Crontab: More than one is running

Call for support. Can other DNS-327L owners validate/replicate this potential bug?
« Last Edit: January 07, 2014, 05:20:33 AM by JavaLawyer »
Logged
Find answers here: D-Link ShareCenter FAQ I D-Link Network Camera FAQ
There's no such thing as too many backups FFC

lsmart

  • Level 1 Member
  • *
  • Posts: 15
Re: Potential bug: crond process runs twice ?!?
« Reply #5 on: January 09, 2014, 12:52:38 PM »

I also have 2 crond process in resource monitor:

ID        Owner   Memory  CPU   Process Name
.................................................
16211  nobody  3.3        0.0    smbd
2405    root      3.3        0.0    smbd
2407    root      3.3        0.0    smbd
.................................................
1512    root      1.4        0.0    crond
1753    root      1.4        0.0    crond

but i also have 3 smbd processes.
Do not know if this is normal expected behavior or not.

DNS-327L with fun_plug installed


Logged

kalle82

  • Level 2 Member
  • **
  • Posts: 26
Re: Potential bug: crond process runs twice ?!?
« Reply #6 on: January 09, 2014, 04:54:05 PM »

I also have 2 crond process in resource monitor (...)
but i also have 3 smbd processes.
Do not know if this is normal expected behavior or not.

Thanks for checking! For smbd this is normal, but for crond it's not.
As I said, depending on the cron jobs (the 327L's OS uses some itself) this can cause nasty bugs. In my case I used a cronjob to import all my files from the 323 so that I can log off meanwhile. That's why I found that bug - my rsync script was called twice at the same time and reported several errors like temp files which could not be renamed...

To check if the crond bug also appears without fun_plug I just temporarily deactivated it completely (by renaming the fun_plug script and restarting the DNS-237L). Afterwards I checked that fun_plug is really not active any more (system not reachable via SSH). Then I checked the process list in the web interface. Result: The crond is active twice also without fun_plug. So fun_plug seems not to be responsable for the 2nd crond instance.
Logged

kalle82

  • Level 2 Member
  • **
  • Posts: 26
Re: Potential bug: crond process runs twice ?!?
« Reply #7 on: January 21, 2014, 01:36:56 PM »

I just found a stock firmware bug caused the double-existence of crond:

Some days ago, I enabled the email Notification "Send Log File - - By Schedule" and scheduled this for 8pm.
I just noticed in my mailbox that this mail always arrives twice with identical attachment.

Now I checked my crontab:
Code: [Select]
root@DNS327L:~# crontab -l
*/10 * * * * /usr/sbin/rlog /var/log/user.log 800
30 2 * * * /usr/sbin/stime&
0 12 * * * send_mail_event_at_cron --mdn_space_status &
0 20 * * * send_mail_event_at_cron --syslog

The last line shows the entry for the above-mentioned notification. So both instances of crond start that action at the same time (as they do for every other entry, which might cause further bugs).
Logged

kalle82

  • Level 2 Member
  • **
  • Posts: 26
Re: Potential bug: crond process runs twice ?!?
« Reply #8 on: February 19, 2014, 11:29:09 AM »

I can confirm that this bug was closed in firmware version 1.01 (as already another user mentioned in a different discussion thread) - thank you!!!
Logged

JavaLawyer

  • BETA Tester
  • Level 15 Member
  • *
  • Posts: 12190
  • D-Link Global Forum Moderator
    • FoundFootageCritic
Re: Potential bug: crond process runs twice ?!?
« Reply #9 on: March 04, 2014, 04:40:13 AM »

I can confirm that this bug was closed in firmware version 1.01 (as already another user mentioned in a different discussion thread) - thank you!!!

Thanks for validating the fix.  ;)
Logged
Find answers here: D-Link ShareCenter FAQ I D-Link Network Camera FAQ
There's no such thing as too many backups FFC

Ilfesen

  • Level 1 Member
  • *
  • Posts: 3
Re: Potential bug: crond process runs twice ?!?
« Reply #10 on: March 20, 2014, 01:55:18 PM »

I own a DNS-327L, was working great until I decidí to Update the firmware from 1.00 to 1.01b9.
Now Home page does not work at all, and I can get access to the Management and Applications button using direct links saved as favorites and obtained from the history tab in my IE11.

Anyone with this trouble to shoot?

I have updated the firmware via direct connection by ethernet. No via wifi.

Anyone that knows where to find the original firmware to retorn to its first release?

Thanks to you, guys and irls of this community.
Logged

JavaLawyer

  • BETA Tester
  • Level 15 Member
  • *
  • Posts: 12190
  • D-Link Global Forum Moderator
    • FoundFootageCritic
Re: Potential bug: crond process runs twice ?!?
« Reply #11 on: March 20, 2014, 03:04:26 PM »

Anyone that knows where to find the original firmware to retorn to its first release?

You can find the original firmware in the D-Link USA FTP site. The link is located in the following FAQ post:
ShareCenter - Important Posts & Information
Logged
Find answers here: D-Link ShareCenter FAQ I D-Link Network Camera FAQ
There's no such thing as too many backups FFC