wp-mirror-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Wp-mirror-list] Attempting to Mirror on Laptop


From: Benjamin Goldsmith
Subject: [Wp-mirror-list] Attempting to Mirror on Laptop
Date: Thu, 12 Jul 2012 20:56:55 -0400

I'm attemping to mirror the Simple English version of Wikipedia on my laptop using wp-mirror.  I have run into a few blocks, but hacked my way through or around them.  I've yet to finish the process, but I wanted to communicate my experience in case someone can help me get to a working mirror.

The details are:

0) Running Debian GNU Linux 6.0 Squeeze:
   * laptop dual boot w Windows 7
   * 230 GB HDD space (/dev/sda5)
   * 4 GB RAM
   * 4 CPU threads
   * Wireless internet, no proxy

1) apt-get installed all dependencies.

2) Installed wp-mirror:
    a) dpkg from wp-mirror_0.3-2_all.deb
    b) Verified clisp features are available.
    c) Modified /etc/rc.local file
    d) installed hddtemp and checked temp: 38C
    e) installed smartmontools
    f) modified /etc/default/smartmontools
    g) verified smartctl -a /dev/sda works
    h) created /root/.curlrc file
    i) mysql root password was already set, so did nothing
    j) loaded timezone info
    k) created /etc/mysql/conf.d/custom.cnf file with innodb info
    l) removed /var/lib/mysql/ib* files and restarted mysql
    m) enough diskspace for mediawiki images so left as is
    n) Pointed browser to localhost/mediawiki and configured
       as per README
    o) Copied LocalSettings.php to /etc/mediawiki, changed permissions,
       and edited as per README
    p) Copied AdminSettings.sample to /etc/mediawiki/AdminSettings.php
       and edited to use root login and password.
    q) Copied available mediawiki extensions into extensions-enabled
       directory.
    r) Verified /usr/bin/gm exists
    s) rsvg does not exist.  Installed librsvg2-bin.  Now it does!
    t) edited /etc/hosts to include mediawiki.site names
    u) edited /etc/wp-mirror/local.conf to enable only simple wiki
    v) run wp-mirror as root.  Result:
[snip]
2012-07-12 16:26:05 Asserting mediawiki has database credentials      [done]
2012-07-12 16:26:05 Asserting IDE/SATA drive write cache is disabled ...
Showing InnoDB data file path
ERROR 1049 (42000): Unknown database 'wpmirror'
show innodb_data_file_path returned: nil                               [fail]
Aborting.

    w) Ran mysql as root to CREATE DATABASE wpmirror;
    x) Granted all privileges on wpmirror.* to 'wikiuser'@'localhost';
    y) rerun wp-mirror as root.  Result:
[snip]
-----sys-pathname-slaves-----done-----
physical-block-device-list        : (/sys/dev/block/8:5/)
/dev/8:5: No such file or directory
*** - read: input stream #<input buffered pipe-input-stream character 6421>
      has reached its end

    z) commented out lines 3443-3456 of wpmirror
   aa) rerun wp-mirror as root.  Result:
[snip]
Determining if Apache2 was loaded with mediawiki virtual host ...
/bin/sh: Syntax error: "&" unexpected
nil
Determining if Apache2 was loaded with mediawiki virtual host         [fail]

+-----------------------------------------------------------------------------+
| CATEGORY:    software prerequisite                                          |
| ASSERT:      assert-virtual-host-p                                          |
| ABSTRACT:    Virtual host `mediawiki.site' not found.                       |
| DESCRIPTION: `Wp-mirror' sets up a virtual host to let you access your new  |
|              mirrors.  For example, you access your mirror the `simple' wiki|
|              by giving your browser <http://simple.mediawiki.site/>.        |
|              The virtual host container should be found in                  |
|              `/etc/apache2/sites-available/mediawiki.site.conf'.            |
|              There should also be a symbol link to it found in              |
|              `/etc/apache2/sites-enabled/mediawiki.site.conf'.              |
|              And the virtual host configuration should be loaded into       |
|              Apache2.                                                       |
|                                                                             |
|              # apache2ctl -S |& grep mediawiki                              |
|                       port 80 namevhost mediawiki.site (/etc/apache2/sites-e|
|              nabled/mediawiki.site.conf:1)                                  |
|                                                                             |
| REFERENCE:   See the `wp-mirror' README for more on planning your system.   |
+-----------------------------------------------------------------------------+

2012-07-12 17:11:59 Asserting virtual host `mediawiki.site'           [fail]
2012-07-12 17:11:59 Asserting name resolution for `mediawiki.site' ...
grepping /etc/hosts ...
::1 mediawiki.site www.mediawiki.site
::1 simple.mediawiki.site
grepping /etc/hosts                                                   [done]
matching languages ...
simple                            : simple.mediawiki.site             [pass]
www                               : www.mediawiki.site                [pass]
matching languages                                                    [done]
2012-07-12 17:11:59 Asserting name resolution for `mediawiki.site'    [done]
2012-07-12 17:11:59 logging test set                                  [fail]
Aborting.

   ab) Edited line 1196 of wp-mirror: removed ampersand.
   ac) Rerun wp-mirror.  Repeadly see the message:
ERROR 1146 (42S02) at line 1: Table 'simplewiki.objectcache' doesn't exist
objectcache below threshold       : 0 <= 10000, skipping
-----
   ad) Run wp-mirror --text.  Repeatedly see message:
ERROR 1146 (42S02) at line 1: Table 'simplewiki.page' doesn't exist
ERROR 1146 (42S02) at line 1: Table 'simplewiki.image' doesn't exist
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)


At this point I'm taking a break.  What have I done wrong and/or what can be done to get me back on track?  Unfortunately, the last time I looked at anything resembling lisp was over 15 years ago.

Any feedback is much appreciated.  Thank you.

-Ben


reply via email to

[Prev in Thread] Current Thread [Next in Thread]