I downloaded the 29th September's SNAPSHOT and installed it successfully. But, after I rebooted, this error greeted me:
httpd(xxxx): syscall 5
The "xxxx" is replaced by bunch of numbers. Ouch. Searching the net about this but found no answer so far. I'm guessing that this is related to php, php-fpm or something. But I'm not sure.
UPDATE 30/09/2015:
Ok I asked misc regarding this and Ted Unangst has given the answer:
"The latest snapshots include a bunch of tame() calls in userland programs, but some of them were added optimistically. httpd is trying to do something it's not yet permitted to do.
For now, please report such errors.
If you need a working version, the diffs aren't committed yet, so you can rebuild httpd from source and it should work fine."
http://www.mail-archive.com/misc@openbsd.org/msg141426.html
Now, who said that the devs are bunch of man-eating-flame-throwing monster? As long as we search for answer first before asking (to see if it's already been asked and/or solved), and provide sufficient details (dmesg, related .conf files etc) when asking, you will get informative answers.
Ok. So it's basically new stuff in the httpd's snapshot. And to get a working httpd, I need to rebuild it. I've done port installation stuff but rebuilding a base program? I've never done this. But this is a good learning process. So I use the official guide:
http://www.openbsd.org/faq/faq5.html#Bld
I follow the "Following -current" guide. Then build the userland (I didn't build the kernel). It took some time. When it's done, I rebooted and httpd is working again! Yeah!
I noticed there's changes about php-fpm so I go through the Following -current page:
http://www.openbsd.org/faq/current.html#20150918
The previously named php_fpm rc script has been renamed according to PHP's version installed. So I edited my /etc/rc.conf.local.
----- /etc/rc.conf.local starts -----
pkg_scripts=php56_fpm
----- /etc/rc.conf.local ends -----
Just to be sure, I pkg_delete php-fpm then reinstall it. Reboot.
All is ok now. Thanks to Ted Unangst and all the people in misc@OpenBSD.
I think there's a way to just rebuild httpd, without rebuilding all userland. I'm searching for info on this.
Update 1st October 2015:
Stuart Henderson @misc has given a tip on how to update just the httpd.
$ cd /usr/src/usr.sbin/httpd $ cvs up -PdA $ make obj && make depend && make $ su root -c 'make install'
http://article.gmane.org/gmane.os.openbsd.misc/225370
Nice!. Learning something new everyday. Later.
No comments:
Post a Comment