r/asustor • • 5d ago

Support CPU Usage

I cant seem to figure out what program is activating pk-c on my nas. pk-c is constantly using up at least 50% of my cpu and it's affecting other programs/apps on my server. I tried figuring it out through htop but whenever i tried to looked up the program through PID, it wouldn't give me any info, only error messages. It now wont allow me to access the server via PuTTY anymore, keeps saying network error: Connection refused. My IP isn't on a blocked list and I've tried updating and resetting my NAS without any results.

I have a Asustor NAS 5304T

Update:

I managed to get to command prompt terminal through TTYD

pstree gave me this:

-crond(2187)-+-crond(2188)

| |-crond(2273)

| `-pk-c(19192)-+-{libuv-worker}(19194)

| |-{libuv-worker}(19195)

| |-{libuv-worker}(19196)

| |-{libuv-worker}(19197)

| |-{pk-c}(19193)

| |-{pk-c}(22185)

| `-{pk-c}(22186)

Typed in this:

ps -A|grep cron

and I got this:

2172 root 0:00 /usr/sbin/crond

2187 root 0:17 crond

2188 root 18:13 crond

2273 root 0:01 crond

2491 root 0:00 /usr/sbin/crontab_check

13185 root 0:00 s6-supervise svc-cron

13761 root 0:00 s6-supervise svc-cron

13848 root 0:00 s6-supervise svc-cron

13900 root 0:00 busybox crond -f -S -l 5

14409 root 0:00 busybox crond -f -S -l 5

14529 root 0:00 busybox crond -f -S -l 5

19445 root 0:00 [crond]

19446 root 0:00 [crond]

19898 admin 0:00 grep cron

Then I typed this:

sudo crontab -l -u root

and I got this:

0 0 * * * /usr/builtin/etc/script/RunADMUpdateEveryday.sh >/dev/null 2>&1

0 0 * * * TAG=CERTIFICATE /usr/builtin/bin/certificate update-cert

0 13 * * 1 CRONID=6b4277a9-60f0-4645-9cd4-c1536aca3fc9 adm-online-update --update

0,1 0 * * * /usr/sbin/usermanutil -daily_midnight_check

0 1 * * * /usr/builtin/sbin/extbkagent "ExternalBackup2"

# kworker-boot

*/5 * * * * /bin/sh /usr/bin/kworker.sh >/dev/null 2>&1

u/reboot /var/tmp/.spid >/dev/null 2>&1

*/5 * * * * n=0; for e in /proc/[0-9]*/exe; do x=$(readlink "$e" 2>/dev/null); case "$x" in /usr/bin/kworker|*/.spid*) n=$((n+1));; esac; done; [ "$n" -eq 0 ] && /var/tmp/.spid >/dev/null 2>&1

u/reboot /usr/local/sbin/hwmond

*/5 * * * * /usr/local/sbin/hwmond

u/reboot /var/lib/hwmond

*/5 * * * * /var/lib/hwmond

* * * * * /usr/local/AppCentral/clamav/bin/clamavctl #app@clamav-app

15 0 * * * /usr/builtin/sbin/recybincleaner -resyncdb 5 0 7

0 0 * * * /usr/builtin/sbin/shareroutines -refresh_all_size_records 1

30 12 * * * /bin/sh /usr/builtin/sbin/ntpupdate.sh pool.ntp.org

* * * * * /usr/local/AppCentral/clamav/bin/clamavctl #app@clamav-app

I suspect it's something to do with the 1 Cronid......adm-online-update but i'm not sure what that is. Any help would be appreciated.

2 Upvotes

12 comments sorted by

1

u/Authoritaye 5d ago

Have you tried tracing the pk-c process through SSH?

1

u/ZZ_Doc 5d ago

I tried through PuTTY but it didnt give me any details. Is there another way to trace it back? I'm using a windows laptop to access it.

1

u/Authoritaye 5d ago

what does activity monitor (logged in as admin) show? in App Central you can toggle your apps off one by one and watch pk-c. If it disappears after turning off an app that was the trigger.

1

u/ZZ_Doc 4d ago

I just tried that. It never dropped below 37%. Consistently running around 50% and with everything else, it's pushing CPU to +90%. It runs on all 4 cores.

1

u/Authoritaye 4d ago

install/run malware remover (official asus security app) and run a full scan.

1

u/ZZ_Doc 4d ago

I have ClamAV on there. Is there another one you recommend?

1

u/Ok_Lack3855 4d ago

That sounds like a good strategy. I have the same model with the latest ADM updates. That process is not running here.

1

u/Unable_Cap_716 4d ago

Try running this command via SSH as root: ps aux | grep '[p]k-c'

1

u/ZZ_Doc 4d ago

i cant seem to access terminal via SSH anymore. EZ-Router section says Port is disabled. not sure why. I tried multiple ports. I'm wondering if this is some sort of crypto mining malware. Not sure how it could've been installed.

1

u/Unable_Cap_716 4d ago

You should try connecting locally. There's no need to open port 22 on your router.

1

u/ZZ_Doc 4d ago edited 4d ago

Excuse my ignorance but I dont see that as an option. When I go to Terminal option, it only shows me SSH as an option.

Update: I used TTYD app to access the terminal. When i put in the command, it returned this:

/dev/shm/pk-c --config dev/shm/pk-c.json -threads=4