[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Wp-mirror-list] Update: Attempting to Mirror on Laptop
From: |
Benjamin Goldsmith |
Subject: |
[Wp-mirror-list] Update: Attempting to Mirror on Laptop |
Date: |
Sat, 14 Jul 2012 20:51:35 -0400 |
The downloads have finished but there is an issue importing the xml dumps.
Here is a snippet:
PHP Fatal error: Call to a member function current() on a non-object in
/usr/share/mediawiki/includes/TitleArray.php on line 43
/usr/bin/php /usr/share/mediawiki/maintenance/importDump_farm.php
simplewiki-20120707-pages-articles-p000152000-c000001000.xml
simple.mediawiki.site returned: 255 [fail]
Pointing my browser to http://simple.mediawiki.site/ yields:
MediaWiki internal error.
Exception caught inside exception handler
Should I upgrade to a more recent version of Mediawiki? Or is this a wp-mirror
issue?
Anybody out there?
Thanks.
-----Original Message-----
From: address@hidden on behalf of address@hidden
Sent: Sat 7/14/2012 9:00 AM
To: address@hidden
Subject: Wp-mirror-list Digest, Vol 2, Issue 3
Send Wp-mirror-list mailing list submissions to
address@hidden
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.nongnu.org/mailman/listinfo/wp-mirror-list
or, via email, send a message with subject or body 'help' to
address@hidden
You can reach the person managing the list at
address@hidden
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Wp-mirror-list digest..."
Today's Topics:
1. Update: Attempting to Mirror on Laptop (Benjamin Goldsmith)
----------------------------------------------------------------------
Message: 1
Date: Fri, 13 Jul 2012 14:22:11 -0400
From: "Benjamin Goldsmith" <address@hidden>
To: <address@hidden>
Subject: [Wp-mirror-list] Update: Attempting to Mirror on Laptop
Message-ID:
<address@hidden>
Content-Type: text/plain; charset="iso-8859-1"
I let wp-mirror continue to run. It has been downloading images all night.
Many of the links return 404 errors. Here is a snippet of the output:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (22) The requested URL returned error: 404
[: 5613: -a: unexpected operator
[: 5633: -a: unexpected operator
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 582k 100 582k 0 0 359k 0 0:00:01 0:00:01 --:--:-- 391k
[: 5633: -a: unexpected operator
I'll let it run to completion and see what I've got.
-----Original Message-----
From: address@hidden on behalf of address@hidden
Sent: Fri 7/13/2012 9:00 AM
To: address@hidden
Subject: Wp-mirror-list Digest, Vol 2, Issue 2
Send Wp-mirror-list mailing list submissions to
address@hidden
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.nongnu.org/mailman/listinfo/wp-mirror-list
or, via email, send a message with subject or body 'help' to
address@hidden
You can reach the person managing the list at
address@hidden
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Wp-mirror-list digest..."
Today's Topics:
1. Attempting to Mirror on Laptop (Benjamin Goldsmith)
----------------------------------------------------------------------
Message: 1
Date: Thu, 12 Jul 2012 20:56:55 -0400
From: "Benjamin Goldsmith" <address@hidden>
To: <address@hidden>
Subject: [Wp-mirror-list] Attempting to Mirror on Laptop
Message-ID:
<address@hidden>
Content-Type: text/plain; charset="iso-8859-1"
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.nongnu.org/archive/html/wp-mirror-list/attachments/20120712/12c21a18/attachment.html>
------------------------------
_______________________________________________
Wp-mirror-list mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/wp-mirror-list
End of Wp-mirror-list Digest, Vol 2, Issue 2
********************************************
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 6975 bytes
Desc: not available
URL:
<http://lists.nongnu.org/archive/html/wp-mirror-list/attachments/20120713/8ef3ccdf/attachment.bin>
------------------------------
_______________________________________________
Wp-mirror-list mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/wp-mirror-list
End of Wp-mirror-list Digest, Vol 2, Issue 3
********************************************
<<winmail.dat>>