I have a problem, what can I do ?

Daemon issue

If a daemon isn't starting, try starting it by hand to see errors ouput. As example, with httpd, you can enter :

rcctl -d start http

Mans

Check the manpage of the tool having an issue.

Look into "/usr/local/share/doc/pkg-readmes" if there are specific instructions.

PRoblem with a port/package

Use "pkg_check" command to fix the state of your ports usage.

Logs

Look at logs with "tail" command to see if there are error messages :

# tail -f /var/log/messages /var/log/daemon

For a website:

# tail -f /var/www/logs/*

For login issues :

# tail -f /var/log/authlog

Also, run "dmesg" to see if a device has an issue.

Firewall

Look at firewall traffic with tcpdump to see where it's failing :

# tcpdump -n -e -ttt -i pflog0

Corrupted filesystem or loop reboots

Try to boot on the ramdisk bsd.rd.

boot> bsd.rd [Enter]

Then choose to reinstall sets with "U: Upgrade" or use the shell to fix filesystem with fsck.

You also can boot on a disk prepared with minirootXX.img.

Then choose "S : Shell".

Look after your disk with "dmesg". In this example, we use sd1.

Make sure it is ready with :

cd /dev && sh MAKEDEV sd1

Then, check and fix the filesystem :

fsck -y sd1a
fsck -y sd1d

Do it for each slices. Use "disklabel sd1" to list them.

Ask for help

Ask on official mailing list

Talk on XMPP room