Whitebox - whitebox 1 - FreeBSD
Hardware info on main page.
This machine runs the i386 version of FreeBSD.
The following web sites are on this machine:
tingox.blogdns.org - main page - gallery/ - Gallery picture gallery - log/ - PivotX blog (used to be a Pivot blog, upgraded) - log2/ - Pivot blog - logt/ - a Bolt blog (for testing) glogtest.dyndns.org - a Geeklog test site, nothing more moromc.dyndns.org - a Geeklog site
other services: IMAP mail server, using dovecot
The following dynamic hosts are configured (via ddclient) on this machine:
glogtest.dyndns.org moromc.dyndns.org titracks.dyndns.org
work log
2017-11-23: ad0s1a - bolt - Bolt 3.x requires php 5.5.9 or higher, this machine still runs php 5.3.6.
2017-10-01: ad0s1a - php - after upgrading I got a few "Maximum execution time of 30 seconds exceeded" so I changed it to 60 seconds in php.ini
root@kg-web# grep max_execution_time /usr/local/etc/php.ini max_execution_time = 60
and restarted apache
root@kg-web# service apache22 restart Performing sanity check on apache22 configuration: Syntax OK Stopping apache22. Waiting for PIDS: 89476. Performing sanity check on apache22 configuration: Syntax OK Starting apache22.
is it better? Yes.
2017-10-01: ad0s1a - Bolt - Bolt 2.2.24 was released a while ago (29 Dec 2016) and it is a security fix, so I really should upgrade. download
tingo@kg-web$ fetch https://bolt.cm/distribution/bolt-2.2.24.tar.gz bolt-2.2.24.tar.gz 100% of 9900 kB 5358 kBps
check ownership, permissions, etc:
root@kg-web# cd /usr/local/www/tingox/logt root@kg-web# ll total 334 drwxr-xr-x 10 www www 512 Sep 28 2016 ./ drwxr-xr-x 7 www www 512 Dec 30 2014 ../ -rw-r--r-- 1 501 staff 6148 Apr 18 2016 .DS_Store drwxr-xr-x 2 501 staff 512 Sep 28 2016 .github/ -rw-r--r-- 1 501 staff 1684 Apr 18 2016 .htaccess -rw-r--r-- 1 501 staff 1078 Apr 18 2016 LICENSE.md -rw-r--r-- 1 501 staff 4031 Jul 19 2016 README.md drwxr-xr-x 8 501 staff 512 Sep 28 2016 app/ -rw-r--r-- 1 501 staff 45575 Jul 19 2016 changelog.md -rw-r--r-- 1 501 staff 3107 Jul 19 2016 composer.json.dist -rw-r--r-- 1 501 staff 214748 Jul 19 2016 composer.lock.dist drwxrwxrwx 3 501 staff 512 Nov 29 2014 extensions/ drwxrwxrwx 2 501 staff 1024 Sep 28 2016 files/ -rw-r--r-- 1 501 staff 1490 Jul 19 2016 index.php -rw-r--r-- 1 501 staff 789 Jul 19 2016 serve drwxr-xr-x 22 501 staff 1536 Sep 28 2016 src/ drwxrwxrwx 9 501 staff 512 Sep 28 2016 theme/ drwxr-xr-x 33 501 staff 1024 Sep 28 2016 vendor/ -rw-r--r-- 1 501 staff 3826 Jul 19 2016 web.config drwxr-xr-x 3 www www 512 May 7 2015 xx-e/
unpack new version
root@kg-web# tar xvf /home/tingo/dl/bolt-2.2.24.tar.gz --strip-components=1 [...] x app/config/config.yml.dist x app/config/contenttypes.yml.dist x app/config/extensions/ x app/config/menu.yml.dist x app/config/permissions.yml.dist x app/config/routing.yml.dist x app/config/taxonomy.yml.dist x app/config/extensions/index.html x app/cache/index.html x .github/CONTRIBUTING.md x .github/ISSUE_TEMPLATE.md x .github/PULL_REQUEST_TEMPLATE.md
fix permissions
root@kg-web# chmod -R 777 files/ app/database/ app/cache/ app/config/ theme/ extensions/
verify
root@kg-web# ll total 334 drwxr-xr-x 10 www www 512 Oct 1 23:16 ./ drwxr-xr-x 7 www www 512 Dec 30 2014 ../ -rw-r--r-- 1 501 staff 6148 Dec 29 2016 .DS_Store drwxr-xr-x 2 501 staff 512 Oct 1 23:16 .github/ -rw-r--r-- 1 501 staff 1684 Dec 29 2016 .htaccess -rw-r--r-- 1 501 staff 1078 Dec 29 2016 LICENSE.md -rw-r--r-- 1 501 staff 4031 Dec 29 2016 README.md drwxr-xr-x 8 501 staff 512 Oct 1 23:16 app/ -rw-r--r-- 1 501 staff 46581 Dec 29 2016 changelog.md -rw-r--r-- 1 501 staff 3109 Dec 29 2016 composer.json.dist -rw-r--r-- 1 501 staff 216421 Dec 29 2016 composer.lock.dist drwxrwxrwx 3 501 staff 512 Nov 29 2014 extensions/ drwxrwxrwx 2 501 staff 1024 Oct 1 23:16 files/ -rw-r--r-- 1 501 staff 1490 Dec 29 2016 index.php -rw-r--r-- 1 501 staff 789 Dec 29 2016 serve drwxr-xr-x 22 501 staff 1536 Oct 1 23:16 src/ drwxrwxrwx 9 501 staff 512 Dec 29 2016 theme/ drwxr-xr-x 33 501 staff 1024 Oct 1 23:16 vendor/ -rw-r--r-- 1 501 staff 3826 Dec 29 2016 web.config drwxr-xr-x 3 www www 512 May 7 2015 xx-e/ root@kg-web# ll .ht* -rw-r--r-- 1 501 staff 1684 Dec 29 2016 .htaccess
looks same as before. From within Bolt, I do - Configuration / Check database - it is already up to date. Extensions: bolt/rssfeed - upgraded to v2.2.4, lijn/straightline - 0.12 is the newest version. Final step - clear the cache.
2016-09-28: ad0s1a - Bolt - upgrade to Bolt 2.2.23 (the last of the 2.2.x series). From within the bolt directory, check ownership, permissions and so on:
root@kg-web# cd /usr/local/www/tingox/logt root@kg-web# ll total 240 drwxr-xr-x 10 www www 512 Apr 12 22:38 ./ drwxr-xr-x 7 www www 512 Dec 30 2014 ../ -rw-r--r-- 1 501 staff 6148 May 27 2015 .DS_Store drwxr-xr-x 2 501 staff 512 Mar 11 2016 .github/ -rw-r--r-- 1 501 staff 1684 Jan 26 2016 .htaccess -rw-r--r-- 1 501 staff 1078 Nov 26 2015 LICENSE.md -rw-r--r-- 1 501 staff 4031 Mar 11 2016 README.md drwxr-xr-x 8 501 staff 512 Apr 12 22:38 app/ -rw-r--r-- 1 501 staff 43199 Mar 11 2016 changelog.md -rw-r--r-- 1 501 staff 3116 Mar 11 2016 composer.json.dist -rw-r--r-- 1 501 staff 150073 Mar 11 2016 composer.lock.dist drwxrwxrwx 3 501 staff 512 Nov 29 2014 extensions/ drwxrwxrwx 2 501 staff 1024 Apr 12 22:38 files/ -rw-r--r-- 1 501 staff 1490 Mar 11 2016 index.php -rw-r--r-- 1 501 staff 789 Dec 14 2014 serve drwxr-xr-x 22 501 staff 1536 Apr 12 22:38 src/ drwxrwxrwx 8 501 staff 512 Mar 11 2016 theme/ drwxr-xr-x 33 501 staff 1024 Apr 12 22:38 vendor/ -rw-r--r-- 1 501 staff 3826 Jan 26 2016 web.config drwxr-xr-x 3 www www 512 May 7 2015 xx-e/
unpack new version
root@kg-web# tar xvf /home/tingo/dl/bolt-2.2.23.tar.gz --strip-components=1 [...] x app/config/config.yml.dist x app/config/contenttypes.yml.dist x app/config/extensions/ x app/config/menu.yml.dist x app/config/permissions.yml.dist x app/config/routing.yml.dist x app/config/taxonomy.yml.dist x app/config/extensions/index.html x app/cache/index.html x .github/CONTRIBUTING.md x .github/ISSUE_TEMPLATE.md x .github/PULL_REQUEST_TEMPLATE.md
fix permissions
root@kg-web# chmod -R 777 files/ app/database/ app/cache/ app/config/ theme/ extensions/
list directory to check
root@kg-web# ll total 334 drwxr-xr-x 10 www www 512 Sep 28 15:43 ./ drwxr-xr-x 7 www www 512 Dec 30 2014 ../ -rw-r--r-- 1 501 staff 6148 Apr 18 20:30 .DS_Store drwxr-xr-x 2 501 staff 512 Sep 28 15:43 .github/ -rw-r--r-- 1 501 staff 1684 Apr 18 20:21 .htaccess -rw-r--r-- 1 501 staff 1078 Apr 18 20:21 LICENSE.md -rw-r--r-- 1 501 staff 4031 Jul 19 14:36 README.md drwxr-xr-x 8 501 staff 512 Sep 28 15:43 app/ -rw-r--r-- 1 501 staff 45575 Jul 19 14:36 changelog.md -rw-r--r-- 1 501 staff 3107 Jul 19 14:36 composer.json.dist -rw-r--r-- 1 501 staff 214748 Jul 19 14:36 composer.lock.dist drwxrwxrwx 3 501 staff 512 Nov 29 2014 extensions/ drwxrwxrwx 2 501 staff 1024 Sep 28 15:43 files/ -rw-r--r-- 1 501 staff 1490 Jul 19 14:36 index.php -rw-r--r-- 1 501 staff 789 Jul 19 14:36 serve drwxr-xr-x 22 501 staff 1536 Sep 28 15:43 src/ drwxrwxrwx 8 501 staff 512 Jul 19 14:36 theme/ drwxr-xr-x 33 501 staff 1024 Sep 28 15:43 vendor/ -rw-r--r-- 1 501 staff 3826 Jul 19 14:36 web.config drwxr-xr-x 3 www www 512 May 7 2015 xx-e/ root@kg-web# ll .ht* -rw-r--r-- 1 501 staff 1684 Apr 18 20:21 .htaccess
looks like before - good. I do Configuration / Check database - it is already up to date - from within Bolt. I run an update check on the (two) extensions installed, they both need to be upgraded, so I do that, one by one. Except that it doesn't really work, they show up again if I do another "Run update check". So I try "Run all updates" instead. Nope, that didn't work either. Further investigation reveals the cause: it tried to install newest versions of extensions, but they are for Bolt 3.x. Doing "Version" on each extension I see that bolt/rssfeed is at 2.2.3, which is the newest one for Bolt 2.x. lijn/straightline can be upgraded from 0.10 - 0.12 and I do so, it works. Good.
2016-08-29: ad0s1a - still running FreeBSD 8.4-stable from 2014:
root@kg-web# uname -a FreeBSD kg-web.kg4.no 8.4-STABLE FreeBSD 8.4-STABLE #1 r264320: Fri Apr 11 01:17:20 CEST 2014 root@kg-web.kg4.no:/usr/obj/usr/src/sys/GENERIC i386
status:
root@kg-web# date;uptime Mon Aug 29 21:12:06 CEST 2016 9:12PM up 2:07, 2 users, load averages: 0.00, 0.02, 0.00
ok.
2016-08-25: uptime status:
root@kg-web# date;uptime Thu Aug 25 22:48:32 CEST 2016 10:48PM up 209 days, 8:15, 1 user, load averages: 0.00, 0.01, 0.00
ok.
2016-04-12: ad0s1a - Bolt - upgrade to Bolt 2.2.19. First I clear the cache from within Bolt. Change to bolt directory:
root@kg-web# cd /usr/local/www/tingox/logt
check out directory layout and permissions first
root@kg-web# ll total 216 drwxr-xr-x 9 www www 512 Sep 12 2015 ./ drwxr-xr-x 7 www www 512 Dec 30 2014 ../ -rw-r--r-- 1 501 staff 6148 May 27 2015 .DS_Store -rw-r--r-- 1 www www 1187 Feb 22 2015 .htaccess -rw-r--r-- 1 www www 3541 Sep 1 2015 README.md drwxr-xr-x 8 www www 512 Sep 12 2015 app/ -rw-r--r-- 1 www www 36016 Sep 1 2015 changelog.md -rw-r--r-- 1 www www 3003 Sep 1 2015 composer.json.dist -rw-r--r-- 1 www www 137591 Sep 1 2015 composer.lock.dist drwxr-xr-x 3 www www 512 Nov 29 2014 extensions/ drwxrwxrwx 2 www www 1024 Sep 12 2015 files/ -rw-r--r-- 1 www www 1490 Sep 1 2015 index.php -rw-r--r-- 1 www www 789 Dec 14 2014 serve drwxr-xr-x 22 www www 1536 Sep 12 2015 src/ drwxrwxrwx 8 www www 512 Jan 18 2015 theme/ drwxr-xr-x 31 www www 1024 Sep 12 2015 vendor/ -rw-r--r-- 1 www www 3737 May 27 2015 web.config drwxr-xr-x 3 www www 512 May 7 2015 xx-e/
ok, that is what it looks like. Unpack
root@kg-web# tar xvf /home/tingo/dl/bolt-2.2.19.tar.gz --strip-components=1 [...] x app/config/config.yml.dist x app/config/contenttypes.yml.dist x app/config/extensions/ x app/config/menu.yml.dist x app/config/permissions.yml.dist x app/config/routing.yml.dist x app/config/taxonomy.yml.dist x app/config/extensions/index.html x app/cache/index.html x .github/CONTRIBUTING.md x .github/ISSUE_TEMPLATE.md x .github/PULL_REQUEST_TEMPLATE.md
fix permissions:
root@kg-web# chmod -R 777 files/ app/database/ app/cache/ app/config/ theme/ extensions/ list directory again root@kg-web# ll total 240 drwxr-xr-x 10 www www 512 Apr 12 22:38 ./ drwxr-xr-x 7 www www 512 Dec 30 2014 ../ -rw-r--r-- 1 501 staff 6148 May 27 2015 .DS_Store drwxr-xr-x 2 501 staff 512 Mar 11 15:11 .github/ -rw-r--r-- 1 501 staff 1684 Jan 26 20:45 .htaccess -rw-r--r-- 1 501 staff 1078 Nov 26 11:48 LICENSE.md -rw-r--r-- 1 501 staff 4031 Mar 11 15:11 README.md drwxr-xr-x 8 501 staff 512 Apr 12 22:38 app/ -rw-r--r-- 1 501 staff 43199 Mar 11 15:11 changelog.md -rw-r--r-- 1 501 staff 3116 Mar 11 15:12 composer.json.dist -rw-r--r-- 1 501 staff 150073 Mar 11 15:12 composer.lock.dist drwxrwxrwx 3 501 staff 512 Nov 29 2014 extensions/ drwxrwxrwx 2 501 staff 1024 Apr 12 22:38 files/ -rw-r--r-- 1 501 staff 1490 Mar 11 15:11 index.php -rw-r--r-- 1 501 staff 789 Dec 14 2014 serve drwxr-xr-x 22 501 staff 1536 Apr 12 22:38 src/ drwxrwxrwx 8 501 staff 512 Mar 11 15:11 theme/ drwxr-xr-x 33 501 staff 1024 Apr 12 22:38 vendor/ -rw-r--r-- 1 501 staff 3826 Jan 26 20:45 web.config drwxr-xr-x 3 www www 512 May 7 2015 xx-e/
hmm, do I need to fix ownership and group too? I do Configuration / Check database - it is already up to date - from within Bolt. Everything looks ok. Extensions - I check for updates - both needs to be updates, so I do, one by one. That was easy.
2016-04-12: ad0s1a - Bolt - get Bolt 2.2.19:
tingo@kg-web$ cd dl tingo@kg-web$ scp tingo@bpi:~/dl/bolt-2.2.19.tar.gz . tingo@kg-bpi.kg4.no's password: bolt-2.2.19.tar.gz 100% 10MB 4.9MB/s 00:02
I just copy it from another machine I had it on.
2016-01-16: ad0s1a - PivotX - getting PivotX 2.3.11:
tingo@kg-web$ cd dl tingo@kg-web$ fetch http://pivotx.net/files/pivotx_2.3.11.tgz fetch: http://pivotx.net/files/pivotx_2.3.11.tgz: size of remote file is not known pivotx_2.3.11.tgz 8410 kB 3275 kBps
ok.
2016-01-16: ad0s1a - still runs FreeBSD 8.4-stable.
tingo@kg-web$ uname -a FreeBSD kg-web.kg4.no 8.4-STABLE FreeBSD 8.4-STABLE #1 r264320: Fri Apr 11 01:17:20 CEST 2014 root@kg-web.kg4.no:/usr/obj/usr/src/sys/GENERIC i386
ok.
2015-11-29: software versions (from portversion -v):
apache-2.2.19 ddclient-3.8.0_2 dovecot-1.2.16 mysql-client-5.5.12 mysql-server-5.5.12 netpbm-10.35.80_3 php5-5.3.6 postfix-2.8.3,1 according to Freshports.org, newest version are: apache 2.2.31 (note: apache 2.4.17 is available) ddclient 3.8.2 dovecot 1.2.17 mysql 5.5.46 (note: mysql 5.6.27 is available) netpbm 10.35.97 php 5.4.45 (note: expires on 2016-01-15, php 5.5.30 and php 5.6.14 available) postfix 2.11.7
good to know.
2015-11-14: change to new firewall noted in /var/log/messages:
Nov 14 13:48:26 kg-web kernel: arp: 10.1.10.1 moved from 00:10:4b:e3:38:8b to 80:ee:73:60:61:0c on sis0
that's all.
2015-09-12: Bolt - I installed extension bolt/rssfeed v2.2.2 from web ui. it looks good from the command line too:
root@kg-web# php app/nut extensions +-------------------+---------+----------------+----------------------------------------------------------------------------------------------------+ | Name | Version | Type | Description | +-------------------+---------+----------------+----------------------------------------------------------------------------------------------------+ | bolt/rssfeed | v2.2.2 | bolt-extension | RSS feeds extension for Bolt | | lijn/straightline | 0.10 | bolt-theme | Straight Line is a fully responsive theme for Bolt 2.0 and up, written with Foundation 5 and Sass. | +-------------------+---------+----------------+----------------------------------------------------------------------------------------------------+
nice.
2015-09-12: Bolt - after upgrade to version 2.2.10, the web ui and the command line agrees on which extensions are installed:
root@kg-web# php app/nut extensions +-------------------+---------+------------+----------------------------------------------------------------------------------------------------+ | Name | Version | Type | Description | +-------------------+---------+------------+----------------------------------------------------------------------------------------------------+ | lijn/straightline | 0.10 | bolt-theme | Straight Line is a fully responsive theme for Bolt 2.0 and up, written with Foundation 5 and Sass. | +-------------------+---------+------------+----------------------------------------------------------------------------------------------------+
which is cool.
2015-09-12: Bolt - fetch Bolt 2.2.10:
tingo@kg-web$ cd dl tingo@kg-web$ fetch http://bolt.cm/distribution/bolt-2.2.10.tar.gz bolt-2.2.10.tar.gz 100% of 9612 kB 1098 kBps
before the upgrade, I clear the cache from within bolt.
the bolt directory looks like this before upgrade:
root@kg-web# cd /usr/local/www/tingox/logt root@kg-web# ll total 176 drwxr-xr-x 9 www www 512 May 7 21:39 ./ drwxr-xr-x 7 www www 512 Dec 30 2014 ../ -rw-r--r-- 1 www www 1187 Apr 30 20:24 .htaccess -rw-r--r-- 1 www www 3484 Apr 30 20:24 README.md drwxr-xr-x 8 www www 512 May 7 20:49 app/ -rw-r--r-- 1 www www 20773 Apr 30 20:24 changelog.md -rw-r--r-- 1 www www 2423 Apr 30 20:24 composer.json.dist -rw-r--r-- 1 www www 123732 Apr 30 20:24 composer.lock.dist drwxr-xr-x 3 www www 512 May 8 07:54 extensions/ drwxrwxrwx 2 www www 1024 May 7 20:49 files/ -rw-r--r-- 1 www www 414 Apr 30 20:24 index.php -rw-r--r-- 1 www www 789 Apr 30 20:24 serve drwxr-xr-x 19 www www 1536 May 7 20:49 src/ drwxrwxrwx 8 www www 512 Apr 30 20:24 theme/ drwxr-xr-x 28 www www 1024 May 7 20:49 vendor/ drwxr-xr-x 3 root www 512 May 7 21:39 xx-e/
do the upgrade
root@kg-web# tar xvf /home/tingo/dl/bolt-2.2.10.tar.gz --strip-components 1 [...] x app/config/config.yml.dist x app/config/contenttypes.yml.dist x app/config/extensions/ x app/config/menu.yml.dist x app/config/permissions.yml.dist x app/config/routing.yml.dist x app/config/taxonomy.yml.dist x app/config/extensions/index.html x app/cache/index.html
fix ownership
root@kg-web# chown -R www:www * root@kg-web# chown www:www .htaccess
check permissions
root@kg-web# ll total 216 drwxr-xr-x 9 www www 512 Sep 12 15:53 ./ drwxr-xr-x 7 www www 512 Dec 30 2014 ../ -rw-r--r-- 1 501 staff 6148 May 27 17:18 .DS_Store -rw-r--r-- 1 www www 1187 Feb 22 2015 .htaccess -rw-r--r-- 1 www www 3541 Sep 1 08:59 README.md drwxr-xr-x 8 www www 512 Sep 12 15:53 app/ -rw-r--r-- 1 www www 36016 Sep 1 08:59 changelog.md -rw-r--r-- 1 www www 3003 Sep 1 08:59 composer.json.dist -rw-r--r-- 1 www www 137591 Sep 1 08:59 composer.lock.dist drwxr-xr-x 3 www www 512 Nov 29 2014 extensions/ drwxrwxrwx 2 www www 1024 Sep 12 15:53 files/ -rw-r--r-- 1 www www 1490 Sep 1 08:59 index.php -rw-r--r-- 1 www www 789 Dec 14 2014 serve drwxr-xr-x 22 www www 1536 Sep 12 15:53 src/ drwxrwxrwx 8 www www 512 Jan 18 2015 theme/ drwxr-xr-x 31 www www 1024 Sep 12 15:53 vendor/ -rw-r--r-- 1 www www 3737 May 27 17:17 web.config drwxr-xr-x 3 www www 512 May 7 21:39 xx-e/
and afterwards I login to Bolt and do configuration / check database / update database.
2015-05-08: Bolt - try to clean out the extensions directory.
root@kg-web# cd /usr/local/www/tingox/logt root@kg-web# php app/nut extensions +-------------------+---------+----------------+----------------------------------------------------------------------------------------------------+ | Name | Version | Type | Description | +-------------------+---------+----------------+----------------------------------------------------------------------------------------------------+ | bolt/rssfeed | v2.1.0 | bolt-extension | RSS feeds extension for Bolt | | lijn/straightline | 0.10 | bolt-theme | Straight Line is a fully responsive theme for Bolt 2.0 and up, written with Foundation 5 and Sass. | +-------------------+---------+----------------+----------------------------------------------------------------------------------------------------+
remove them:
root@kg-web# php app/nut extensions:uninstall lijn/straightline 0 root@kg-web# php app/nut extensions:uninstall bolt/rssfeed 0
verify:
root@kg-web# php app/nut extensions +------+---------+------+-------------+ | Name | Version | Type | Description | +------+---------+------+-------------+
looks good. What is left in the extensions directory now?
root@kg-web# ll extensions/* -rw-r--r-- 1 www www 2482 May 8 07:49 extensions/ExtensionInstaller.php -rw-rw-rw- 1 www www 704 May 8 07:49 extensions/composer.json -rw-rw-rw- 1 www www 1996 Dec 31 13:59 extensions/installer.php extensions/vendor: total 8 drwxrwxrwx 3 www www 512 May 8 07:48 ./ drwxr-xr-x 3 www www 512 May 8 07:48 ../ -rw-rw-rw- 1 www www 183 May 8 07:48 autoload.php drwxrwxrwx 2 www www 512 May 7 23:29 composer/
just remove everything in it:
root@kg-web# rm -rf extensions/* root@kg-web# ll extensions total 4 drwxr-xr-x 2 www www 512 May 8 07:51 ./ drwxr-xr-x 9 www www 512 May 7 21:39 ../
now then. First I cleaned the cache from the gui.
Try to install from command line:
root@kg-web# php app/nut extensions:install lijn/straightline 0.10 [Done] 0
verify:
root@kg-web# php app/nut extensions +-------------------+---------+------------+----------------------------------------------------------------------------------------------------+ | Name | Version | Type | Description | +-------------------+---------+------------+----------------------------------------------------------------------------------------------------+ | lijn/straightline | 0.10 | bolt-theme | Straight Line is a fully responsive theme for Bolt 2.0 and up, written with Foundation 5 and Sass. | +-------------------+---------+------------+----------------------------------------------------------------------------------------------------+
next, check via gui. Nope - it still says "No Bolt Extensions installed.".
2015-05-07: Bolt - installing extensions doesn't work from the admin gui. But nut says:
root@kg-web# php app/nut extensions PHP Deprecated: Comments starting with '#' are deprecated in /usr/local/etc/php.ini on line 226 in Unknown on line 0 +-------------------------+------------+----------------+--------------------------------------------+ | Name | Version | Type | Description | +-------------------------+------------+----------------+--------------------------------------------+ | cjsnoek/cleanwhite | dev-master | bolt-theme | A super simple theme for BOLT cms! | | realitygaps/bangalore | dev-master | bolt-theme | | | dsduit/miniport-html5up | 1.0.0 | bolt-theme | This is the âMiniport” theme from HTML5UP. | | dsduit/simple | v0.1 | bolt-theme | | | bolt/rssfeed | v2.0.1 | bolt-extension | RSS feeds extension for Bolt | +-------------------------+------------+----------------+--------------------------------------------+
strange. Also:
root@kg-web# php app/nut extensions:install bolt/rssfeed v2.1.0 PHP Deprecated: Comments starting with '#' are deprecated in /usr/local/etc/php.ini on line 226 in Unknown on line 0 [Done] 0 root@kg-web# php app/nut extensions PHP Deprecated: Comments starting with '#' are deprecated in /usr/local/etc/php.ini on line 226 in Unknown on line 0 +-------------------------+------------+----------------+--------------------------------------------+ | Name | Version | Type | Description | +-------------------------+------------+----------------+--------------------------------------------+ | cjsnoek/cleanwhite | dev-master | bolt-theme | A super simple theme for BOLT cms! | | realitygaps/bangalore | dev-master | bolt-theme | | | dsduit/miniport-html5up | 1.0.0 | bolt-theme | This is the âMiniport” theme from HTML5UP. | | dsduit/simple | v0.1 | bolt-theme | | | bolt/rssfeed | v2.1.0 | bolt-extension | RSS feeds extension for Bolt | +-------------------------+------------+----------------+--------------------------------------------+
strange too. Try to remove stuff:
root@kg-web# php app/nut extensions:uninstall bolt/rssfeed v2.1.0 PHP Deprecated: Comments starting with '#' are deprecated in /usr/local/etc/php.ini on line 226 in Unknown on line 0 [RuntimeException] Too many arguments. extensions:disable name
ok already:
root@kg-web# php app/nut extensions:uninstall bolt/rssfeed PHP Deprecated: Comments starting with '#' are deprecated in /usr/local/etc/php.ini on line 226 in Unknown on line 0 0
did it uninstall?
root@kg-web# php app/nut extensions PHP Deprecated: Comments starting with '#' are deprecated in /usr/local/etc/php.ini on line 226 in Unknown on line 0 +-------------------------+------------+------------+--------------------------------------------+ | Name | Version | Type | Description | +-------------------------+------------+------------+--------------------------------------------+ | cjsnoek/cleanwhite | dev-master | bolt-theme | A super simple theme for BOLT cms! | | realitygaps/bangalore | dev-master | bolt-theme | | | dsduit/miniport-html5up | 1.0.0 | bolt-theme | This is the âMiniport” theme from HTML5UP. | | dsduit/simple | v0.1 | bolt-theme | | +-------------------------+------------+------------+--------------------------------------------+
looks like it did. Now do the rest:
root@kg-web# php app/nut extensions:uninstall cjsnoek/cleanwhite PHP Deprecated: Comments starting with '#' are deprecated in /usr/local/etc/php.ini on line 226 in Unknown on line 0 0 root@kg-web# php app/nut extensions:uninstall realitygaps/bangalore PHP Deprecated: Comments starting with '#' are deprecated in /usr/local/etc/php.ini on line 226 in Unknown on line 0 0 root@kg-web# php app/nut extensions:uninstall dsduit/miniport-html5up PHP Deprecated: Comments starting with '#' are deprecated in /usr/local/etc/php.ini on line 226 in Unknown on line 0 0 root@kg-web# php app/nut extensions:uninstall dsduit/simple PHP Deprecated: Comments starting with '#' are deprecated in /usr/local/etc/php.ini on line 226 in Unknown on line 0 0
and verify
root@kg-web# php app/nut extensions PHP Deprecated: Comments starting with '#' are deprecated in /usr/local/etc/php.ini on line 226 in Unknown on line 0 +------+---------+------+-------------+ | Name | Version | Type | Description | +------+---------+------+-------------+
finally - empty. After installing again I have this:
root@kg-web# php app/nut extensions +-------------------+---------+----------------+----------------------------------------------------------------------------------------------------+ | Name | Version | Type | Description | +-------------------+---------+----------------+----------------------------------------------------------------------------------------------------+ | bolt/rssfeed | v2.1.0 | bolt-extension | RSS feeds extension for Bolt | | lijn/straightline | 0.10 | bolt-theme | Straight Line is a fully responsive theme for Bolt 2.0 and up, written with Foundation 5 and Sass. | +-------------------+---------+----------------+----------------------------------------------------------------------------------------------------+
and nothing shows up in admin gui.
2015-05-07: upgrading Bolt to the latest version. Fetch it:
tingo@kg-web$ pwd /home/tingo/dl tingo@kg-web$ fetch http://bolt.cm/distribution/bolt-2.1.8.tar.gz bolt-2.1.8.tar.gz 100% of 9018 kB 1040 kBps
Next, the upgrade.
root@kg-web# pwd /usr/local/www/tingox/logt root@kg-web# tar xvf /home/tingo/dl/bolt-2.1.8.tar.gz --strip-components 1 [...] x app/config/config.yml.dist x app/config/contenttypes.yml.dist x app/config/extensions/ x app/config/menu.yml.dist x app/config/permissions.yml.dist x app/config/routing.yml.dist x app/config/taxonomy.yml.dist x app/config/extensions/index.html x app/cache/index.html
fix permissions
root@kg-web# chown -R www:www * root@kg-web# chown www:www .htaccess check permissions: root@kg-web# ll total 174 drwxr-xr-x 8 www www 512 May 7 20:49 ./ drwxr-xr-x 7 www www 512 Dec 30 22:43 ../ -rw-r--r-- 1 www www 1187 Apr 30 20:24 .htaccess -rw-r--r-- 1 www www 3484 Apr 30 20:24 README.md drwxr-xr-x 8 www www 512 May 7 20:49 app/ -rw-r--r-- 1 www www 20773 Apr 30 20:24 changelog.md -rw-r--r-- 1 www www 2423 Apr 30 20:24 composer.json.dist -rw-r--r-- 1 www www 123732 Apr 30 20:24 composer.lock.dist drwxr-xr-x 3 www www 512 Apr 30 20:24 extensions/ drwxrwxrwx 2 www www 1024 May 7 20:49 files/ -rw-r--r-- 1 www www 414 Apr 30 20:24 index.php -rw-r--r-- 1 www www 789 Apr 30 20:24 serve drwxr-xr-x 19 www www 1536 May 7 20:49 src/ drwxrwxrwx 8 www www 512 Apr 30 20:24 theme/ drwxr-xr-x 28 www www 1024 May 7 20:49 vendor/ root@kg-web# ll app total 28 drwxr-xr-x 8 www www 512 May 7 20:49 ./ drwxr-xr-x 8 www www 512 May 7 20:49 ../ -rw-r--r-- 1 www www 1125 Apr 30 20:24 LICENSE.txt -rw-r--r-- 1 www www 3038 Apr 30 20:24 bootstrap.php drwxrwxrwx 94 www www 1536 May 7 20:49 cache/ drwxrwxrwx 3 www www 512 May 7 20:49 config/ drwxrwxrwx 2 www www 512 Apr 30 20:24 database/ -rw-r--r-- 1 www www 1269 Apr 30 20:24 legacy.php -rw-r--r-- 1 www www 1042 Apr 30 20:24 load.php -rw-r--r-- 1 www www 281 Apr 30 20:24 nut drwxr-xr-x 3 www www 512 Apr 30 20:24 resources/ drwxr-xr-x 2 www www 512 May 7 20:49 theme_defaults/ drwxr-xr-x 10 www www 512 May 7 20:49 view/
looks ok.
Afterwards, things are not ok, I get an error message:
root@kg-web# php app/nut database:check PHP Deprecated: Comments starting with '#' are deprecated in /usr/local/etc/php.ini on line 226 in Unknown on line 0 PHP Fatal error: Call to undefined method Bolt\Storage::getContentTypeAssert() in /usr/local/www/tingox/logt/extensions/vendor/bolt/rssfeed/Extension.php on line 54 PHP Fatal Error: Bolt Extensions There is a fatal error in the 'bolt/rssfeed' extension loaded on your Bolt Installation.Error: Call to undefined method Bolt\Storage::getContentTypeAssert()File: extensions/vendor/bolt/rssfeed/Extension.phpLine: 54 You will only be able to continue by manually deleting the extension that is installed at:extensions/vendor/bolt/rssfeed * http://docs.bolt.cm/installation - Bolt documentation - Setup * http://stackoverflow.com/questions/tagged/bolt-cms - Bolt questions on Stack Overflow
Ok then. Let's try it:
root@kg-web# pwd /usr/local/www/tingox/logt root@kg-web# mkdir xx-e root@kg-web# mv extensions/vendor/bolt/rssfeed ./xx-e
Yes, that worked. Now the dashboard works again. I do configuration, check database, then update database from the dashboard. Afterwards things are ok.
2015-01-28: ada0s1a - changing timeout for ddclient, from 120 to 240 seconds:
root@kg-web# grep timeout /usr/local/etc/ddclient.conf timeout=240 # default is 120
nothing more.
2014-07-12: ada0s1a - booting after a power outage, fsck runs and fixes all filesystems. From /var/log/messages:
Aug 15 15:43:47 kg-web kernel: WARNING: / was not properly dismounted Aug 15 15:43:47 kg-web kernel: WARNING: /tmp was not properly dismounted Aug 15 15:43:47 kg-web kernel: WARNING: /usr was not properly dismounted Aug 15 15:43:47 kg-web kernel: WARNING: /var was not properly dismounted
don't worry about the clock, ntpd fixes that:
Jul 12 09:31:48 kg-web ntpd[674]: time reset +375731081.209988 s
that is all.
2014-04-11: ad0s1a - after a reboot, the machine now runs FreeBSD 8.4-stable. dmesg output: normal, verbose.
tingo@kg-web$ uname -a FreeBSD kg-web.kg4.no 8.4-STABLE FreeBSD 8.4-STABLE #1 r264320: Fri Apr 11 01:17:20 CEST 2014 root@kg-web.kg4.no:/usr/obj/usr/src/sys/GENERIC i386
time to rebuild all ports.
2014-04-10: ad0s1a - build latest FreeBSD 8.4-stable from source:
root@kg-web# cd /usr/src root@kg-web# make -j4 buildworld [....] -------------------------------------------------------------- >>> World build completed on Fri Apr 11 00:26:57 CEST 2014 -------------------------------------------------------------- root@kg-web# make kernel [....] ===> zfs (install) install -o root -g wheel -m 555 zfs.ko /boot/kernel install -o root -g wheel -m 555 zfs.ko.symbols /boot/kernel ===> zlib (install) install -o root -g wheel -m 555 zlib.ko /boot/kernel install -o root -g wheel -m 555 zlib.ko.symbols /boot/kernel kldxref /boot/kernel
Next up is mergemaster -p, I run it multiuser: then follows make installworld, make delete-old, make delete-old-libs, also in multiuser. Finally, it is mergemaster -iUP.
2014-04-10: setting up a new src directory in /usr:
root@kg-web# uname -a FreeBSD kg-web.kg4.no 8.2-STABLE FreeBSD 8.2-STABLE #0: Wed May 25 07:47:26 CEST 2011 root@kg-web.kg4.no:/usr/obj/usr/src/sys/GENERIC i386 root@kg-web# cd /usr root@kg-web# du -sh src 540M src root@kg-web# mv src src_8.2-stable root@kg-web# mkdir src
next, get the source for 8-stable:
root@kg-web# cd root@kg-web# svn checkout svn://svn.FreeBSD.org/base/stable/8 /usr/src [....] A /usr/src/usr.bin/c89/Makefile A /usr/src/usr.bin/c89/c89.1 A /usr/src/usr.bin/c89/c89.c U /usr/src Checked out revision 264320.
check version
root@kg-web# egrep "^BRANCH|^REVISION" /usr/src/sys/conf/newvers.sh REVISION="8.4" BRANCH="STABLE"
done.
2014-04-10: installing the subversion (1.6.16_3) port with default options: (parts of output snipped)
root@kg-web# portinstall -R subversion [Gathering depends for devel/subversion .............................................. done] ---> Installing 'neon29-0.29.6_1' from a port (www/neon29) ---> Building '/usr/ports/www/neon29' ===> Cleaning for neon29-0.29.6_1 ---> Installing 'subversion-1.6.16_3' from a port (devel/subversion) ---> Building '/usr/ports/devel/subversion' ===> Cleaning for subversion-1.6.16_3 cd /usr/ports/devel/subversion && make config; WebDAV/Delta-V repository access module enabled. Berkeley DB (4 or 5) repository backend enabled. You can enable the mod_dav_svn module for Apache 2.X You can enable the mod_dontdothat module for Apache 2.X You can have the repository created for you by defining WITH_REPOSITORY_CREATION. ===> Compressing manual pages for subversion-1.6.16_3 ===> Registering installation for subversion-1.6.16_3 ===> Cleaning for subversion-1.6.16_3
done.
2012-12-15: I set up log rotation for apache log files, by adding the following lines to /etc/newsyslog.conf:
/var/log/httpd-access.log 644 9 100 * ZB /var/run/httpd.pid 30 /var/log/httpd-error.log 644 9 100 * ZB /var/run/httpd.pid 30 /var/log/httpd-glogtest-access.log 644 9 100 * ZB /var/run/httpd.pid 30 /var/log/httpd-glogtest-error.log 644 9 100 * ZB /var/run/httpd.pid 30 /var/log/httpd-moromc-access.log 644 9 1000 * ZB /var/run/httpd.pid 30 /var/log/httpd-moromc-error.log 644 9 1000 * ZB /var/run/httpd.pid 30 /var/log/httpd-tingox-access.log 644 9 1000 * ZB /var/run/httpd.pid 30 /var/log/httpd-tingox-error.log 644 9 1000 * ZB /var/run/httpd.pid 30
it works too:
root@kg-web# ll -h /var/log/htt* -rw-r--r-- 1 root wheel 0B Jun 2 2011 /var/log/httpd-access.log -rw-r--r-- 1 root wheel 8.2k Dec 15 16:00 /var/log/httpd-error.log -rw-r--r-- 1 root wheel 55k May 17 2012 /var/log/httpd-glogtest-access.log -rw-r--r-- 1 root wheel 17k Mar 1 2012 /var/log/httpd-glogtest-error.log -rw-r--r-- 1 root wheel 1.6k Dec 15 16:14 /var/log/httpd-moromc-access.log -rw-r--r-- 1 root wheel 5.1M Dec 15 15:59 /var/log/httpd-moromc-access.log.0.gz -rw-r--r-- 1 root wheel 0B Dec 15 16:00 /var/log/httpd-moromc-error.log -rw-r--r-- 1 root wheel 131k Dec 11 06:38 /var/log/httpd-moromc-error.log.0.gz -rw-r--r-- 1 root wheel 14k Dec 15 16:14 /var/log/httpd-tingox-access.log -rw-r--r-- 1 root wheel 11M Dec 15 16:00 /var/log/httpd-tingox-access.log.0.gz -rw-r--r-- 1 root wheel 49k Dec 15 16:07 /var/log/httpd-tingox-error.log -rw-r--r-- 1 root wheel 500k Dec 15 10:07 /var/log/httpd-tingox-error.log.0.gz
that is all for now.
2011-10-06: the netpbm port and the exiftags port was missing, which made thumbnails and other functionality of Gallery nonfunctional. I used portupgrade and installed it. I also installed the jhead and zip ports, for complete functionality.
2011-06-27: I restored moromc.dyndns.org from a backup made from the old hard drive.
2011-06-27: I installed ImageMagick-nox11 (), you really need a graphics / image handling library on your web server.
2011-06-27: glogtest.dyndns.org restored, and upgraded to Geeklog 1.8.0 (an upgrade is handy when your file backup isn't 100%).
2011-06-26: mysql - I recovered the databases (moromc and glogtest) from the image of the old hard drive. The /var/db/mysql directory was undamaged, so I just did a file copy of the directories. The old server had been running MySQL 5.0 and the new one is running MySQL 5.5. However, after copying the directories and files into /var/db/mysql and starting mysql, I ran mysql_upgrade and it said "ok" on everything. Nice!
I had to recreate the mysql users (moromc and glogtest), like so:
mysql> create user 'user'@'localhost' identified by 'password';
and recreate the grants too:
mysql> grant all on glogtest.* to 'user'@'localhost'; mysql> grant all on moromc.* to 'moromc'@'localhost';
(no, the names and passwords aren't real, silly!)
2011-06-22: Gallery - today I discovered that I am missing quite a few albums from gallery. A directory listing from the old hard drive shows this:
root@kg-vm# l /media/local/www/tingox/albums ls: 1995: Bad file descriptor ls: 1996: Bad file descriptor ls: 2008: Bad file descriptor ls: 2009: Bad file descriptor ls: 2009-badetur: Bad file descriptor ls: SB-avd-tur: Bad file descriptor ls: film1: Bad file descriptor ls: madeira: Bad file descriptor ls: riksgrensen: Bad file descriptor ls: torfinn30: Bad file descriptor ./ 2005-bakgaardshuset/ 2010/ faaker_see_2007/ ../ 2005-torfinn-40/ 2010-ND-Satelite/ flytting/ .users/ 2006/ 2010-familiebesoek-1mai/ hurtigruta/ 17-mai/ 2007/ E2_2003/ logins.dat 2003/ 2008-bakgaardshuset/ albumdb.dat logins.dat.bak 2004/ 2008-familiebesoek-mai/ albumdb.dat.bak serial.dat* 2004-dugnadsfest/ 2008-veggmaleri albumdb.dat.lock* snow/ 2005/ 2009-hyttetur/ baltikum_mobil/ ultra1/
All the "bad file descriptor" entries should be directories. Luckily, I have backups / copies of the pictures, so the albums can be recreated.
2011-06-19: PivotX - I managed to get a copy of the pivotx folder off the old hard drive. Nice! After restoring it onto the new hard drive, I only had to delete the cache in Pivotx, and the it is working again. Very nice!
2011-06-02: fixed Gallery 1.5.10 by setting short_open_tag = On in /usr/local/etc/php.ini. This is required by Gallery (1.5 at least).
2011-06-01: installed postfix 2.8.3,1, ddclient 3.8.0_2, dovecot 1.2.16, php5-extensions-1.5, copied php.ini-production to php.ini (usr/local/etc/) and added the line date.timezone = "Europe/Oslo" to php.ini.
2011-05-29: installed php 5.3.6,
2011-05-27: installed Apache 2.2.19, mysql-server 5.5.12,
2011-05-25: dmidecode output.
2011-05-25: upgraded to FreeBSD 8.2-stable (csup + make world). dmesg output: normal, verbose. Output from pciconf -lv:
root@kg-web# pciconf -lv hostb0@pci0:0:0:0: class=0x060000 card=0x00000000 chip=0x07301039 rev=0x02 hdr=0x00 vendor = 'Silicon Integrated Systems (SiS)' device = 'Host-to-PCI Bridge (SiS 730)' class = bridge subclass = HOST-PCI atapci0@pci0:0:0:1: class=0x010180 card=0x55131039 chip=0x55131039 rev=0xd0 hdr=0x00 vendor = 'Silicon Integrated Systems (SiS)' device = 'PATA Controller (All SIS SouthBridge)' class = mass storage subclass = ATA isab0@pci0:0:1:0: class=0x060100 card=0x00000000 chip=0x00081039 rev=0x00 hdr=0x00 vendor = 'Silicon Integrated Systems (SiS)' device = 'SiS PCI to ISA Bridge (LPC Bridge)' class = bridge subclass = PCI-ISA sis0@pci0:0:1:1: class=0x020000 card=0x09001039 chip=0x09001039 rev=0x82 hdr=0x00 vendor = 'Silicon Integrated Systems (SiS)' device = 'sis 900 and integrated lan (SiS 900)' class = network subclass = ethernet ohci0@pci0:0:1:2: class=0x0c0310 card=0x70011039 chip=0x70011039 rev=0x07 hdr=0x00 vendor = 'Silicon Integrated Systems (SiS)' device = 'SiS5597/8 Universal Serial Bus Controller' class = serial bus subclass = USB ohci1@pci0:0:1:3: class=0x0c0310 card=0x70001039 chip=0x70011039 rev=0x07 hdr=0x00 vendor = 'Silicon Integrated Systems (SiS)' device = 'SiS5597/8 Universal Serial Bus Controller' class = serial bus subclass = USB pcm0@pci0:0:1:4: class=0x040100 card=0x70181039 chip=0x70181039 rev=0x02 hdr=0x00 vendor = 'Silicon Integrated Systems (SiS)' device = 'AC97(CMI973X) ..AUDIO Drivers (SiS7018)' class = multimedia subclass = audio pcib1@pci0:0:2:0: class=0x060400 card=0x00000000 chip=0x00011039 rev=0x00 hdr=0x01 vendor = 'Silicon Integrated Systems (SiS)' device = 'Virtual PCI-to-PCI bridge (AGP) (SiS760)' class = bridge subclass = PCI-PCI vgapci0@pci0:1:0:0: class=0x030000 card=0x63001039 chip=0x63001039 rev=0x31 hdr=0x00 vendor = 'Silicon Integrated Systems (SiS)' device = 'GUI Accelerator+3D (SiS630/730)' class = display subclass = VGA
sound driver is snd_t4dwave:
root@kg-web# cat /dev/sndstat FreeBSD Audio Driver (newpcm: 32bit 2009061500/i386) Installed devices: pcm0: <SiS 7018> (play/rec) default
from /var/log/messages:
May 25 20:34:02 kg-web kernel: pci0: <multimedia, audio> at device 1.4 (no driver attached) May 25 20:34:28 kg-web kernel: pcm0: <SiS 7018> port 0xd800-0xd8ff mem 0xcfffe000-0xcfffefff irq 11 at device 1.4 on pci0 May 25 20:34:28 kg-web kernel: pcm0: <VIA Technologies VIA1612A AC97 Codec> May 25 20:34:28 kg-web kernel: pcm0: [GIANT-LOCKED] May 25 20:34:28 kg-web kernel: pcm0: [ITHREAD]
2011-05-24: having replaced the hard drive, I installed FreeBSD 8.2-release (i386) on it. dmesg output: normal, verbose. Disk layout: slice 1 - 152 GB - FreeBSD 8.x
ad0s1a / 1024 M ad0s1b swap 2048 M ad0s1d /var 4027 M ad0s1e /tmp 1024 M ad0s1f /usr 140 G
Now, upgrading to -stable.
2011-05-22: the machine rebooted today, because of a disk error. From /var/log/messages:
May 22 13:27:52 kg-web kernel: ad0: TIMEOUT - READ_DMA retrying (1 retry left) LBA=207761631 May 22 13:27:55 kg-web kernel: ad0: FAILURE - READ_DMA status=51<READY,DSC,ERROR> error=40<UNCORRECTABLE> LBA=207761631 May 22 13:27:55 kg-web kernel: g_vfs_done():ad0s1f[READ(offset=99429203968, length=16384)]error = 5 May 22 13:27:55 kg-web fsck: /dev/ad0s1f: CANNOT CREATE SNAPSHOT /usr/.snap/fsck_snapshot: Input/output error May 22 13:27:55 kg-web fsck: May 22 13:27:55 kg-web fsck: /dev/ad0s1f: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. May 22 13:28:05 kg-web kernel: ad0: FAILURE - READ_DMA status=51<READY,DSC,ERROR> error=40<UNCORRECTABLE> LBA=208149951 May 22 13:28:05 kg-web kernel: g_vfs_done():ad0s1f[READ(offset=99628023808, length=16384)]error = 5 May 22 13:28:09 kg-web kernel: ad0: FAILURE - READ_DMA status=51<READY,DSC,ERROR> error=40<UNCORRECTABLE> LBA=207020895 May 22 13:28:09 kg-web kernel: g_vfs_done():ad0s1f[READ(offset=99049947136, length=16384)]error = 5 May 22 13:28:16 kg-web kernel: ad0: TIMEOUT - READ_DMA retrying (1 retry left) LBA=206269983 May 22 13:28:24 kg-web kernel: ad0: FAILURE - READ_DMA status=51<READY,DSC,ERROR> error=40<UNCORRECTABLE> LBA=206269983 May 22 13:28:24 kg-web kernel: g_vfs_done():ad0s1f[READ(offset=98665480192, length=16384)]error = 5 May 22 13:28:40 kg-web kernel: ad0: FAILURE - READ_DMA status=51<READY,DSC,ERROR> error=40<UNCORRECTABLE> LBA=206269887 May 22 13:28:40 kg-web kernel: g_vfs_done():ad0s1f[READ(offset=98665431040, length=16384)]error = 5 May 22 13:28:40 kg-web kernel: ad0: TIMEOUT - READ_DMA retrying (1 retry left) LBA=206269855 May 22 13:52:27 kg-web smartd[631]: Device: /dev/ad0, 33 Currently unreadable (pending) sectors (changed +28) May 22 13:52:27 kg-web smartd[631]: Device: /dev/ad0, 33 Offline uncorrectable sectors (changed +28) May 22 13:52:27 kg-web smartd[631]: Device: /dev/ad0, previous self-test completed with error (read test element) May 22 13:52:27 kg-web smartd[631]: Device: /dev/ad0, new Self-Test Log error at hour timestamp 49031 May 22 13:52:27 kg-web smartd[631]: Device: /dev/ad0, ATA error count increased from 0 to 79
Time to replace the disk perhaps.
2010-02-21: I upgraded ports on the machine, a lot of them. The ones in /usr/ports/UPDATING were: python25 -> python26, libtool15 -> libtool22, graphics/jpeg, php got upgraded from 5.2.9 to 5.2.12, mysql from 5.0.77 to 5.0.90 and apache from 2.2.11 to 2.2.14,
2009-05-04: I upgraded the os to FreeBSD 7.2-stable. dmesg output: normal.
2009-04-16: I installed Apache 2.2.11_4, MySQL 5.0.77_1, PHP 5.2.9.
2009-04-01: I upgraded the os to FreeBSD 7.2-prerelease. dmesg output: normal, verbose.
2009-03-31: I installed FreeBSD 7.1-release on the machine. dmesg output: normal, verbose. Output from pciconf -lv:
tingo@kg-web$ pciconf -lv hostb0@pci0:0:0:0: class=0x060000 card=0x00000000 chip=0x07301039 rev=0x02 hdr=0x00 vendor = 'Silicon Integrated Systems (SiS)' device = 'SiS 730 Host-to-PCI Bridge' class = bridge subclass = HOST-PCI atapci0@pci0:0:0:1: class=0x010180 card=0x55131039 chip=0x55131039 rev=0xd0 hdr=0x00 vendor = 'Silicon Integrated Systems (SiS)' device = 'SiS5513 EIDE Controller (A,B step)' class = mass storage subclass = ATA isab0@pci0:0:1:0: class=0x060100 card=0x00000000 chip=0x00081039 rev=0x00 hdr=0x00 vendor = 'Silicon Integrated Systems (SiS)' device = 'SiS PCI to ISA Bridge (LPC Bridge)' class = bridge subclass = PCI-ISA sis0@pci0:0:1:1: class=0x020000 card=0x09001039 chip=0x09001039 rev=0x82 hdr=0x00 vendor = 'Silicon Integrated Systems (SiS)' device = 'SiS900 sis 900 and integrated lan' class = network subclass = ethernet ohci0@pci0:0:1:2: class=0x0c0310 card=0x70011039 chip=0x70011039 rev=0x07 hdr=0x00 vendor = 'Silicon Integrated Systems (SiS)' device = 'SiS5597/8 Universal Serial Bus Controller' class = serial bus subclass = USB ohci1@pci0:0:1:3: class=0x0c0310 card=0x70001039 chip=0x70011039 rev=0x07 hdr=0x00 vendor = 'Silicon Integrated Systems (SiS)' device = 'SiS5597/8 Universal Serial Bus Controller' class = serial bus subclass = USB pcm0@pci0:0:1:4: class=0x040100 card=0x70181039 chip=0x70181039 rev=0x02 hdr=0x00 vendor = 'Silicon Integrated Systems (SiS)' device = 'SiS7018 PCI Audio Accelerator' class = multimedia subclass = audio pcib1@pci0:0:2:0: class=0x060400 card=0x00000000 chip=0x00011039 rev=0x00 hdr=0x01 vendor = 'Silicon Integrated Systems (SiS)' device = 'SiS730 Virtual PCI-to-PCI bridge (AGP)' class = bridge subclass = PCI-PCI vgapci0@pci0:1:0:0: class=0x030000 card=0x63001039 chip=0x63001039 rev=0x31 hdr=0x00 vendor = 'Silicon Integrated Systems (SiS)' device = 'SiS630/730 GUI Accelerator+3D' class = display subclass = VGA