jails Issues starting my jail. Unexpected EOF

Hello fellow daemons! Today I started making my first jail, but I got face to face with a problem. When I started my jail with "doas service jail start jail (the name of my jail)" it returned me an unexpected EOF:
Starting jails: cannot start jail "jail":
jail: /etc/jail.conf: unexpected EOF
.

I followed this tutorial to make my first jail, so my jail.conf file looks exactly like in the video. But my jail is located at ~/jails/jail. If you need any additional info I will provide it.

Thanks
 
Check what's in your config file - no unusual characters (e.g. a Ctrl-Z) and definitely where you think it is:
Code:
hexdump -C /etc/jail.conf
I don't use jails so working backwards from the error message.

(EDIT: looks like that Ctrl-Z is a thing I've remembered from DOS/Windows days, so might not be applicable here - definitely still worth checking nothing unusual in that file though!)
 
It's either a non-printable character somewhere in the file or you have quoting issues (forgot to close a quote somewhere?). With jail.conf it could also be a missing closing curly bracket.
 
Back
Top