Item13704: bulk_copy error
Priority: Normal
Current State: Duplicate
Released In: n/a
Target Release: n/a
I read
http://foswiki.org/System/UpgradeGuide#Copy_the_data_using_61tools_47bulk_copy.pl_61
I ran
perl bulk_copy.pl
.
I got an error.
cd /WWW/web]Foswiki-2.0.1/tools
perl bulk_copy.pl --xweb System --xweb _default --xweb _empty --latest '*.WebStatistics' /WWW/web/foswiki119/bin /WWW/web/Foswiki-2.0.1/bin
Bareword "Encode::FB_HTMLCREF" not allowed while "strict subs" in use at bulk_copy.pl line 122.
Bareword "Encode::FB_CROAK" not allowed while "strict subs" in use at bulk_copy.pl line 127.
BEGIN not safe after errors--compilation aborted at bulk_copy.pl line 426.
--
VickiBrown - 15 Sep 2015
When I changed line 122 and line 127 to quote those strings, i.e.:
$res =
Encode::encode( $site_charset, $item, 'Encode::FB_HTMLCREF' );
}
else {
# $action eq 'to_unicode'
$res = Encode::decode( $site_charset, $item, 'Encode::FB_CROAK' );
I get new and different errors:
Copying from v1.1.9 (Foswiki::Store::RcsWrap)
Copying to v2.0.1 (Foswiki::Store::RcsWrap)
/WWW/web/foswiki/working/htpasswd.lock open or create password lock file failed -check access rights: Permission denied at /Volumes/Datastore/Local/Protected/WWW/web/foswiki119/lib/Foswiki/Users/HtPasswdUser.pm line 209.
flock() on closed filehandle $lf at /Volumes/Datastore/Local/Protected/WWW/web/Foswiki-2.0.1/lib/Foswiki/Logger/PlainFile.pm line 160.
seek() on closed filehandle $lf at /Volumes/Datastore/Local/Protected/WWW/web/Foswiki-2.0.1/lib/Foswiki/Logger/PlainFile.pm line 162.
/Volumes/Datastore/Local/Protected/WWW/web/Foswiki-2.0.1/working/htpasswd.lock open or create password lock file failed -check access rights: Permission denied at /Volumes/Datastore/Local/Protected/WWW/web/Foswiki-2.0.1/lib/Foswiki/Users/HtPasswdUser.pm line 206.
--
VickiBrown - 16 Sep 2015
This is fixed in the upcoming 2.0.2. Duplicate task of
Item13609. We are learning more about the migration process as other sites are starting to convert. Depending upon your data and how clean it is, you might need to use the
CharsetConverterContrib. (If you have windows users cutting/pasting text into topics, you almost certainly have topics containing the non-standard "smart quotes" used in Windows-1252 codepage. They will probably fail to convert if your 1.1 system is configured for iso-8859-1.
From your errors about htpasswd, are you running with a userid that has ownership of the files?
--
GeorgeClark - 16 Sep 2015