I ended up deleting wdlog.ini (/etc/nas/), wdlog.conf (/usr/local/config/) & system.conf (/etc/) and i haven’t had anything wierd popping up in the user.log for days now (other than maybe cleanAlert.sh). Although my user.log only seem to show spinups/spindowns now for cifs login and i haven’t been running back and forth checking each hour by touching the cabinet, so i may be wrong and it’s still doing it although i think not.
Stopped restsdk.sh (restsdk.sh stop) as well.
May not help you superschlundi but try it. Also sorry for hijacking your thread.
Edit: Remember to backup your files first (example. cp system.conf system.bak). remove file by using the “rm” command (example. rm wdlog.ini)
Edit 2: Perhaps there’s no need deleting all three files (maybe just # before the config lines) but just got tired of dancing around it.
Edit 3: i’ll try adding the files back one by one and see when the sh issues come back. It’s seems like all the troubles come from the wdlog.ini.
These are the logs uploaded when i enabled everything again and agreed to share:
so maybe just remove those from the “declare” log items list (wdlog.ini)? wdLogUploader.sh mentions:
/usr/local/config/wdlog.conf
/etc/system.conf
/etc/nas/wdlog.ini
Im guessing these are important but im no wizard, just messing around. Use vi to view the files i’ve mentioned earlier (example vi /etc/nas/wdlog.ini, vi /usr/local/sbin/wdLogUploader.sh and so on.).
Edit: 4. User.log seem to log my my own spinups/spindowns again around an hour after re-adding
the wdlog.ini file (mv wdlog.bak wdlog.ini).
Edit 5. I believe i was successful! What i did was to put a # in front of the declare log list inside of the wdlog.ini file (vi /etc/nas/wdlog.ini) :
meaning:
#declare -a LOG_LIST_MyCOS=(‘analyticpublic.log’ ‘wdpublic.log’ ‘otaclient.log’ ‘nasAdmin.log’ ‘kern_upload.log’ ‘atop_upload.log’)
This is because wdLogUploader.sh (cd / first then vi usr/local/sbin/wdLogUploader.sh) writes:
checkLogFile()
{
if [ “${modelNumber}” == “sq” ]; then
LOG_LIST=(“${LOG_LIST_sq[@]}”)
else
# Use /etc/NAS_CFG/debug.xml to decide upload log list
debug_mode=/usr/sbin/getLogDebug.sh
if [ “${debug_mode}” == “1” ]; then
LOG_LIST=(“${LOG_LIST_MyCOS_DEV[@]}”)
else
LOG_LIST=(“${LOG_LIST_MyCOS[@]}”)
fi
fi
FILE_NAME=$(basename ${ROTATED_FILE})
if [[ " ${LOG_LIST[@]} " =~ " ${FILE_NAME} " ]]; then
if [ ! -z “${NO_APPEND}” ]; then
FILE_TO_UPLOAD=${ROTATED_FILE}
else
FILE_TO_UPLOAD=${ROTATED_FILE}.1
fi
#echo “checkLogFile: to upload ${FILE_TO_UPLOAD}” >> /tmp/upload_files
appendEOFInfo ${FILE_TO_UPLOAD} >> ${FILE_TO_UPLOAD}
else
unset FILE_TO_UPLOAD # if given log file not in the list do nothing
#echo “checkLogFile: not in whitelist ${FILE_TO_UPLOAD}” >> /tmp/upload_files
fi
}
And my debug.xml (vi /etc/NAS_CFG/debug.xml) say “0” (0). You can possibly keep the ‘kern_upload.log’ ‘atop_upload.log’ but i just went the simple route. Else my wdlog.ini is default and enabled also the wdlog.conf. I believe that’s default. restsdk.sh still disabled. Not sure how important it is.
I also deleted wd-alert-desc.db and wd-alert.db (/CacheVolume/.wd-alert) because the cleanAlert.sh (vi /usr/local/sbin/cleanAlert.sh) pointed to that location and i wanted the cleanAlert.sh error to stop.
If the spindown still is wierd try ‘set_pwm clean’.
The cifs messages im getting is just when i change ip by vpn or maybe boot at the pc as well. So it’s normal.
I hope this helps someone if not just ask. I may be way off here. i’ll try giving it 24 hours now and hope the errors wont come back. Sorry for the mess everybody.
Edit: 6. alright so i got a these after 4 hours but after this not for 6 hours+…:
MyCloudPR4100 root: Rotated atop, atop_size=40607744 atop_upload_size=405504
MyCloudPR4100 getAgreement.sh: restsdk-serverd/restsdk-server not run. Get PIP 0 from cache
MyCloudPR4100 wdLogUploader.sh: getAgreement.sh: False
MyCloudPR4100 wdLogUploader: Current PIP_STATUS: false wdlog.conf STATUS: enabled
The first error rotated atop., im guesssing this either can be disabled by editing /etc/logrotate.conf, # in front of the wdlog.ini lines or the conflict is because my wdlog.ini/wdlog.conf still say enabled or because i # out the “atop_upload.log”. anyway i would love for the errors never to show up. Anyway once an hour seem not to be an issue anymore. But i mess to much with my pr4100, might not be an issue with yours.
Edit 7: the atop/sh errors came back at 23.59. “#” out the restsdk in logrotate.conf to see if that does anything. “#” out “MyCOS_DEV” didn’t change anything it seems but maybe if i “#” out the top "atop_upload.log from “LOG_LIST_sq” i at least remove one of the errors. alse it’s wdlog.ini again under “# PERFORMANCE LOGGING (atop)” but i don’t wan’t to break user logging if i can avoid it. Anyway im just talking to myself lol.