You are not logged in.
Pages: 1
So I just got home from work and went to watch something on the frontend in the lounge room but the frontend reported it wasn't there. I then noticed that some other shows I know have recorded are shown as not being there either.
A check shows all shows not there. The another frontend out the back was playing some shows through XBMC so it is talking okay and the one in the lounge room is connecting to the backend okay as it wasn't complaining or looking to be setup.
I rebooted the lounge room machine and now it doesn't even show any recordings in the list. I have tried to shutdown the backend via the button (which is setup for safe shutdown but it won't) and it also refuses to reboot or shutdown from the terminal.
I can't access the shared folder for the recorded tv from another machine as it doesn't want to connect but can connect to other shared folders. I can still access tv shows and films in xbmc.
I have no idea where to start and certainly didn't want to kill the power to the backend in case that might screw it up.
Hoping someone might be able to help.
Offline
If you can access your backend machine via terminal or SSH, have you checked your logs? (Usually /var/log/everything.log or /var/log/messages should have just about all the cruft that might show up.)
What happens when you issue a reboot or shutdown? Does it just hang at the prompt or does it generate an error? Can you connect to it via SSH? If it's truly hung, there's not much else you can do but kill power, but I suspect that's not the case if you can log in and issue a reboot or shutdown.
He who has no .plan has small finger.
~Confucius on UNIX.
Offline
If you can access your backend machine via terminal or SSH, have you checked your logs? (Usually /var/log/everything.log or /var/log/messages should have just about all the cruft that might show up.)
What happens when you issue a reboot or shutdown? Does it just hang at the prompt or does it generate an error? Can you connect to it via SSH? If it's truly hung, there's not much else you can do but kill power, but I suspect that's not the case if you can log in and issue a reboot or shutdown.
I can get in using putty and I get this from the errors log:
tail /var/log/errors.log
Aug 14 16:27:23 localhost smbd[1553]: [2012/08/14 16:27:23.987120, 0] printing/ print_cups.c:487(cups_async_callback)
Aug 14 16:27:23 localhost smbd[1553]: failed to retrieve printer list: NT_STAT US_UNSUCCESSFUL
Aug 14 16:40:24 localhost smbd[1163]: [2012/08/14 16:40:24.439254, 0] printing/ print_cups.c:110(cups_connect)
Aug 14 16:40:24 localhost smbd[1163]: Unable to connect to CUPS server localho st:631 - No such file or directory
Aug 14 16:40:24 localhost smbd[1553]: [2012/08/14 16:40:24.439438, 0] printing/ print_cups.c:487(cups_async_callback)
Aug 14 16:40:24 localhost smbd[1553]: failed to retrieve printer list: NT_STAT US_UNSUCCESSFUL
Aug 14 16:53:24 localhost smbd[1168]: [2012/08/14 16:53:24.742746, 0] printing/ print_cups.c:110(cups_connect)
Aug 14 16:53:24 localhost smbd[1168]: Unable to connect to CUPS server localho st:631 - No such file or directory
Aug 14 16:53:24 localhost smbd[1553]: [2012/08/14 16:53:24.742929, 0] printing/ print_cups.c:487(cups_async_callback)
Aug 14 16:53:24 localhost smbd[1553]: failed to retrieve printer list: NT_STAT US_UNSUCCESSFULNothing happens when I issue shutdown -h now or even reboot. I can still access things so it doesn't hang at all.
Offline
Are you using NFS or Samba to share specific directories among machines? I can't say I've personally seen one of these services refuse to shutdown, thus preventing the system itself from turning off, but it might be somewhere to start. Also, it might be useful to see if the offending directory that contains your recorded TV has anything accessing it for additional information once the Euro crowd starts hitting the forums. Something like:
# lsof | grep /path/to/recorded/tvmight yield interesting results. If the service is frozen and the directory truly isn't accessible, it most likely won't show anything. You may also need to install lsof(8).
Also, if you're using initscripts, it might be useful to go through the entire list of rc.d list and trying issuing an rc.d stop for each one, starting with your Samba or NFS services. If you're using systemd, go through the list of systemctl --type service and issue systemctl stop servicename.service to anything listed as "running" also starting first with Samba or NFS. The idea here is to reduce your server down to the bare minimum services running in case one of those happens to be the culprit. If you've shut down everything but SSH and it still won't reboot, then it signifies that there might be a deeper problem, and you may wish to examine your entire messages/everything.log for clues.
When was the last time you updated this particular system? If you have updated it recently, did you reboot following that update to ensure the new libraries and/or kernel are now in use?
Last edited by Zancarius (2012-08-14 07:49:24)
He who has no .plan has small finger.
~Confucius on UNIX.
Offline
Are you using NFS or Samba to share specific directories among machines? I can't say I've personally seen one of these services refuse to shutdown, thus preventing the system itself from turning off, but it might be somewhere to start. Also, it might be useful to see if the offending directory that contains your recorded TV has anything accessing it for additional information once the Euro crowd starts hitting the forums. Something like:
# lsof | grep /path/to/recorded/tvmight yield interesting results. If the service is frozen and the directory truly isn't accessible, it most likely won't show anything. You may also need to install lsof(8).
Also, if you're using initscripts, it might be useful to go through the entire list of rc.d list and trying issuing an rc.d stop for each one, starting with your Samba or NFS services. If you're using systemd, go through the list of systemctl --type service and issue systemctl stop servicename.service to anything listed as "running" also starting first with Samba or NFS. The idea here is to reduce your server down to the bare minimum services running in case one of those happens to be the culprit. If you've shut down everything but SSH and it still won't reboot, then it signifies that there might be a deeper problem, and you may wish to examine your entire messages/everything.log for clues.
When was the last time you updated this particular system? If you have updated it recently, did you reboot following that update to ensure the new libraries and/or kernel are now in use?
I'm running Samba.
Ran that code you gave and got nil result back.
Machine hasn't been update for a while as it has been running so well and a lot of us who use Arch for HTPC find it best not to update to often as it breaks more things when we do and then we have to fix them up.
Offline
So did you try shutting down Samba and restarting (also possibly shutting down other services)? Obviously something is causing shutdown to fail, and I'd strongly suggest trying that out to eliminate unnecessary variables.
Are you running shutdown as root or do you have the server configured to allow anyone to shutdown/reboot such as through a GUI like KDM or GDM?
I admit that I have an HTPC running Arch, and I tend to keep it up to date. Although there are some problem threads related to XBMC, I've not had a lick of trouble with it yet. I don't do anything exotic, though; all the box does is stream MP4-encoded videos over NFS and it's not set up with a capture card.
He who has no .plan has small finger.
~Confucius on UNIX.
Offline
So did you try shutting down Samba and restarting (also possibly shutting down other services)? Obviously something is causing shutdown to fail, and I'd strongly suggest trying that out to eliminate unnecessary variables.
Are you running shutdown as root or do you have the server configured to allow anyone to shutdown/reboot such as through a GUI like KDM or GDM?
I admit that I have an HTPC running Arch, and I tend to keep it up to date. Although there are some problem threads related to XBMC, I've not had a lick of trouble with it yet. I don't do anything exotic, though; all the box does is stream MP4-encoded videos over NFS and it's not set up with a capture card.
I've tried Samba but nothing else yet (because I'm not sure how). I got this for the samba:
[root@media ~]# /etc/rc.d/samba stop
:: Stopping Samba Server [DONE]
[root@media ~]# /etc/rc.d/samba start
:: Starting Samba Server [FAIL]
[root@media ~]#So could be a samba issue. It still wouldn't shut down.
Offline
You don't have systemd installed, do you?
First, check (or tail) the logs /var/log/smb.smbd and /var/log/smb.nmbd. There might be some clues in there. Further, there are some additional logs under /var/log/samba/log.smbd and /var/log/samba/log.nmbd, but they don't appear to contain anything under normal operation.
You might have to manually kill those processes. Check if they're running:
ps aux | grep smbdps aux | grep nmbdThen try:
killall -TERM smbdAnd do the same for nmbd. If that doesn't work, you might have to specify the PID. If that still doesn't work, you might have to use a SIGKILL, although this isn't recommended unless the process most definitely is buggered. (killall -KILL smbd) Just be sure not to make a habit of using SIGKILL. You can cause yourself some serious grief if you ever do that to something like MySQL or PostgreSQL.
If you have to forcibly kill Samba, it might also be necessary to clear out its PIDs. To do so, just remove the nmbd.pid/smbd.pid files in /run/samba (or /var/run/samba if you haven't updated in a LONG while).
If you can finally kill Samba (neither smbd nor nmbd show up in the process list; use grep as above), try rebooting. If it still doesn't work, try shutting down each running service from rc.d list using rc.d stop followed by the service name, then try rebooting.
I suspect this won't work, so the next thing you might have to do is physically access the machine, login as root, and switch runlevels. To drop down into single-user mode, type:
init 1This should start killing off services and drop you into single-user mode where you should be able to reboot. Failing that, init 6 will switch to the reboot runlevel. Switching runlevels should give you some indication of the problem, but I'd advise doing it from the terminal--not via SSH--for hopefully obvious reasons.
He who has no .plan has small finger.
~Confucius on UNIX.
Offline
Pages: 1