bcclient issue TS-212

Don't miss a thing. Post your questions and discussion about other uncategorized NAS features here.
Post Reply
Randaltb
New here
Posts: 9
Joined: Tue Nov 22, 2011 11:21 pm

bcclient issue TS-212

Post by Randaltb »

I have TS-212 that runs great except when the bcclient process runs away. (Then its a brick)
I read another thread listing firmware downgrades to solve the issue, but that thread was 8 years old.

This unit has the latest firmware they released for the TS-212 Firmware: 4.3.3.1432
I am not sure what this process really does other than eat 70-93% of my CPU.

What calls bcclient?
and do I really need it?
The More I learn The Less I Know...
Mousetick
Experience counts
Posts: 1081
Joined: Thu Aug 24, 2017 10:28 pm

Re: bcclient issue TS-212

Post by Mousetick »

According to some people, this process is the QNAP program responsible for communicating with Qfinder.
You could try to kill it, if you don't need to use Qfinder it wouldn't hurt anything, but it will be respawned automatically.
crazy process: /sbin/bcclient
Randaltb
New here
Posts: 9
Joined: Tue Nov 22, 2011 11:21 pm

Re: bcclient issue TS-212

Post by Randaltb »

Thanks for the reply.
Seems like that would be a settable option.
The More I learn The Less I Know...
Randaltb
New here
Posts: 9
Joined: Tue Nov 22, 2011 11:21 pm

Re: bcclient issue TS-212

Post by Randaltb »

F.Y.I.
I just added an hourly cron job to the admin crontab.
kill $(ps -ef | grep "bcclient" | grep -v grep | awk '{print $1}')

Now it should check every hour for the bcclient process and kill it if it finds it...
The More I learn The Less I Know...
Mousetick
Experience counts
Posts: 1081
Joined: Thu Aug 24, 2017 10:28 pm

Re: bcclient issue TS-212

Post by Mousetick »

Yeah, alternatively you could use daemon_mgr to shut bcclient down permanently and prevent automatic respawns (which otherwise happen when you kill it with kill).

Code: Select all

# /sbin/daemon_mgr bcclient stop /sbin/bcclient
You only need to do this once after the NAS has booted up.

(replace 'stop' with 'start' if you need to bring it up again)

I confirmed that Qfinder is unable to locate the NAS when bcclient is not running.
Last edited by Mousetick on Thu Dec 24, 2020 3:52 am, edited 1 time in total.
User avatar
OneCD
Guru
Posts: 12037
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: bcclient issue TS-212

Post by OneCD »

Randaltb wrote: Thu Dec 24, 2020 3:06 am kill $(ps -ef | grep "bcclient" | grep -v grep | awk '{print $1}')

Now it should check every hour for the bcclient process and kill it if it finds it...
Or use the much shorter:

Code: Select all

killall bcclient
... or (even better), disable execute permissions on that file:

Code: Select all

chmod -x /sbin/bcclient
... then kill the process.

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage
moserroger
Starting out
Posts: 26
Joined: Mon Oct 21, 2013 9:44 pm

Re: bcclient issue TS-212

Post by moserroger »

Mousetick wrote: Thu Dec 24, 2020 3:51 am Yeah, alternatively you could use daemon_mgr to shut bcclient down permanently and prevent automatic respawns (which otherwise happen when you kill it with kill).

Code: Select all

# /sbin/daemon_mgr bcclient stop /sbin/bcclient
You only need to do this once after the NAS has booted up.

(replace 'stop' with 'start' if you need to bring it up again)

I confirmed that Qfinder is unable to locate the NAS when bcclient is not running.
I have an TS-419pII with the same bcclient issue. I tried this daemon_mgr code. But I got a replay that

Code: Select all

/sbin/daemon_mgr
wasn't found. How to make it work? Thank you.
Mousetick
Experience counts
Posts: 1081
Joined: Thu Aug 24, 2017 10:28 pm

Re: bcclient issue TS-212

Post by Mousetick »

moserroger wrote: Mon May 03, 2021 4:38 pm I have an TS-419pII with the same bcclient issue. I tried this daemon_mgr code. But I got a replay that

Code: Select all

/sbin/daemon_mgr
wasn't found. How to make it work?
I guess the firmware on your NAS is too old and it doesn't have a daemon_mgr command?

Try the command suggested by @OneCD two posts above:

Code: Select all

killall bcclient
moserroger
Starting out
Posts: 26
Joined: Mon Oct 21, 2013 9:44 pm

Re: bcclient issue TS-212

Post by moserroger »

Mousetick wrote: Mon May 03, 2021 10:40 pm I guess the firmware on your NAS is too old and it doesn't have a daemon_mgr command?
Firmware is: 4.3.3.1624
Mousetick wrote: Mon May 03, 2021 10:40 pm Try the command suggested by @OneCD two posts above:

Code: Select all

killall bcclient
What about respawn?
Mousetick
Experience counts
Posts: 1081
Joined: Thu Aug 24, 2017 10:28 pm

Re: bcclient issue TS-212

Post by Mousetick »

moserroger wrote: Tue May 04, 2021 12:46 am What about respawn?
Does it actually respawn?

To block execution:

Code: Select all

# chmod -x /sbin/bcclient
# killall bcclient
To undo:

Code: Select all

# chmod +x /sbin/bcclient
or simply restart NAS.
Last edited by Mousetick on Tue May 04, 2021 2:19 am, edited 1 time in total.
moserroger
Starting out
Posts: 26
Joined: Mon Oct 21, 2013 9:44 pm

Re: bcclient issue TS-212

Post by moserroger »

Mousetick wrote: Tue May 04, 2021 1:10 am Does it actually respawn?
I will try and see.

Update: it returned:
killall: /sbin/bcclient: no process killed
Mousetick wrote: Tue May 04, 2021 1:10 am To block execution:

Code: Select all

# chmod -x /sbin/bcclient
# killall /sbin/bcclient
To undo:

Code: Select all

# chmod +x /sbin/bcclient
or simply restart NAS.
Will I have to kill it again after every restart?

Can I add the code to autostart.sh?
Mousetick
Experience counts
Posts: 1081
Joined: Thu Aug 24, 2017 10:28 pm

Re: bcclient issue TS-212

Post by Mousetick »

moserroger wrote: Tue May 04, 2021 1:47 am Will I have to kill it again after every restart?
Yes, unless you add it to autorun.sh.
Can I add the block execution to autostart.sh?
Yes. Beware you will no longer be able to use QFinder to locate or connect to the NAS, in case it matters.
moserroger
Starting out
Posts: 26
Joined: Mon Oct 21, 2013 9:44 pm

Re: bcclient issue TS-212

Post by moserroger »

Code: Select all

# killall /sbin/bcclient
returned:
killall: /sbin/bcclient: no process killed
Mousetick
Experience counts
Posts: 1081
Joined: Thu Aug 24, 2017 10:28 pm

Re: bcclient issue TS-212

Post by Mousetick »

Yes, my bad sorry. Typo error.

Try again:

Code: Select all

# killall bcclient
moserroger
Starting out
Posts: 26
Joined: Mon Oct 21, 2013 9:44 pm

Re: bcclient issue TS-212

Post by moserroger »

Mousetick wrote: Tue May 04, 2021 2:19 am Yes, my bad sorry. Typo error.

Try again:

Code: Select all

# killall bcclient
Worked! Thank you!
Post Reply

Return to “Miscellaneous”