- 追加された行はこの色です。
- 削除された行はこの色です。
#author("2019-12-19T04:55:52+09:00","default:kuji","kuji")
#author("2019-12-30T05:00:40+09:00","default:kuji","kuji")
CONTENTS
#contents
----
Lastmodified &lastmod;
----
Web Upgrade の最終段階で、
Fatal error: Allowed memory size of 5242880000 bytes exhausted (tried to allocate 6442455040 bytes) in Unknown on line 0
となって「Updating」で停止。
後で、別の機体で同様のエラーでUpgrade が停止したが、サーバのphp.ini のメモリーリミットを2048Mから4096MへUPし、apatchctr restart してから「リトライ」ボタンをクリックしたら、
Upgradeが正常終了できた。
https://g7.kuji-clinic.net/nextcloud/updater/
へアクセスしてみると、
Authentication
To login you need to provide the unhashed value of "updater.secret" in your config file.
If you don't know that value, you can access this updater directly via the Nextcloud admin screen or generate your own secret:
php -r '$password = trim(shell_exec("openssl rand -base64 48"));if(strlen($password) === 64) {$hash = password_hash($password, PASSWORD_DEFAULT) . "\n"; echo "Insert as
\"updater.secret\": ".$hash; echo "The plaintext value is: ".$password."\n";}else{echo "Could not execute OpenSSL.\n";};'
Secret
Login
Invalid password
とかになってて、"updater.secret" をパスワードとしてコピペするも、ビクともしない。
あれこれやった結果、
最新バージョンを本家 https://nextcloud.com/install/# からダウンロードして、サーバの /usr/local/www/nextcloud に上書き。
その後、
https://g7.kuji-clinic.net/nextcloud/index.php/settings/admin/overview
で、整合性チェック
chown -R www:www
してから、指示に従って、
# su -m www -c "php /usr/local/www/nextcloud/occ dbconvert-filecache-bigint"
Command "dbconvert-filecache-bigint" is not defined.
Do you want to run "db:convert-filecache-bigint" instead? (yes/no) [no]:
> yew
Following columns will be updated:
* mounts.storage_id
* mounts.root_id
* mounts.mount_id
This can take up to hours, depending on the number of files in your instance!
Continue with the conversion (y/n)? [n] y
root@g7:/usr/local/www:19_12_30:4:16 # su -m www -c "php /usr/local/www/nextcloud/occ dbconvert-filecache-bigint"
Command "dbconvert-filecache-bigint" is not defined.
Do you want to run "db:convert-filecache-bigint" instead? (yes/no) [no]:
> yes
All tables already up to date!
などで、復活。ふぅ~(^^ゞ
*Nextcloud PHP [#zb8a947d]
php71から72に・・・
976 10:59 portupgrade -ar --batch && reboot
だけだと、Nextcloudがエラー
979 12:03 pkg set -o lang/php71:lang/php72
980 12:03 /root/bin/check.sh
981 12:04 portupgrade -ar --batch && reboot
まだまだ、エラー
982 12:05 portinstall www/mod_php72
983 12:09 pkg delete mod_php71-7.1.33
984 12:09 portinstall www/mod_php72
985 12:19 /root/bin/check.sh
986 12:20 apachectl restart
987 12:21 pkg info
988 12:22 pkg remove '*php71*'
989 12:23 portinstall lang/php72
991 12:23 portupgrade -fr portinstall lang/php72
992 14:04 screen -dr
993 14:13 apachectl restart
994 14:14 portinstall graphics/pecl-imagick
995 14:17 apachectl restart
996 14:18 locate phpmyadmin
997 14:18 portinstall databases/phpmyadmin
1002 14:29 cd /usr/ports/lang/php72-extensions/
1003 14:29 make config
1004 14:32 make install clean
1005 14:34 apachectl restart
1006 14:36 portinstall devel/pecl-APCu
1007 14:37 apachectl restart
で、Nextcloud OK
----
*OpnePNE 3.9.2 [#o8f98296]
Fatal error: Uncaught Error: Call to undefined function ctype_digit() in /usr/local/www/SNS_RS_Base/lib/vendor/symfony/lib/yaml/sfYamlInline.class.php:400 Stack trace:
#0 /usr/local/www/SNS_RS_Base/lib/vendor/symfony/lib/yaml/sfYamlInline.class.php(200): sfYamlInline::evaluateScalar('base_url')
#1 /usr/local/www/SNS_RS_Base/lib/vendor/symfony/lib/yaml/sfYamlParser.class.php(127): sfYamlInline::parseScalar('base_url')
#2 /usr/local/www/SNS_RS_Base/lib/vendor/symfony/lib/yaml/sfYaml.class.php(102): sfYamlParser->parse('###############...')
#3 /usr/local/www/SNS_RS_Base/lib/config/opProjectConfiguration.class.php(162): sfYaml::load('###############...')
#4 /usr/local/www/SNS_RS_Base/lib/config/opProjectConfiguration.class.php(44): opProjectConfiguration->setOpenPNEConfiguration()
#5 /usr/local/www/SNS_RS_Base/config/ProjectConfiguration.class.php(33): opProjectConfiguration->setup()
#6 /usr/local/www/SNS_RS_Base/lib/config/opApplicationConfiguration.class.php(53): ProjectConfiguration->setup() #7 /usr/local/www/SNS_RS_Base/l
in /usr/local/www/SNS_RS_Base/lib/vendor/symfony/lib/yaml/sfYamlInline.class.php on line 400
993 5:31 pkg set -o lang/php71:lang/php72
994 5:32 portupgrade -ar --batch && reboot
995 6:06 /root/bin/check.sh
996 6:07 portupgrade -r mod_php71-7.1.33
997 6:11 /root/bin/check.sh
998 6:11 portupgrade -ar
999 6:12 /root/bin/check.sh
1000 6:13 reboot
1001 10:04 locate phpmyadmin
1002 10:04 portinstall databases/phpmyadmin
1003 10:05 pkg info
1004 10:06 portupgrade -f phpMyAdmin-php71-4.9.2
1005 10:07 pkg info
1006 10:07 apachectl restart
1007 10:08 pkg remove '*php71*
1008 10:08 portinstall graphics/pecl-imagick
1009 10:09 portupgrade -rf graphics/pecl-imagick
1010 10:10 pkg info
1011 10:10 portinstall graphics/pecl-imagick
1012 10:36 apachectl restart
1013 10:40 apachectl restart
1014 10:42 pkg remove '*php71*'
1015 10:42 pkg info
1016 10:43 cd /usr/ports/lang/php72-extensions/
1017 10:43 make config
1018 10:44 make install clean
1019 10:45 make install clean
1020 10:51 make config
1021 10:52 make install
1022 11:04 portupgrade -rf php72
1023 11:15 portinstall print/pecl-pdflib
1024 11:16 portupgrade -rf php72-pecl-pdflib-4.1.4_1
1025 11:16 cd /usr/ports/print/pecl-pdflib )
1026 11:16 cd /usr/ports/print/pecl-pdflib
1027 11:16 make install
1028 11:17 make deinstall
1029 11:17 make install clean
1030 11:17 portinstall deatabases/phpmyadmin
1031 11:18 locate phpmyadmin
1032 11:18 portinstall databases/phpmyadmin
1033 11:18 portupgrade -rf phpMyAdmin-php72-4.9.2
1034 11:19 apachectl restart
1035 11:21 history
1009 8:36 portinstall php72-pecl-mcrypt
1010 8:37 apachectl restart
1011 8:38 pkg info
1012 8:42 tail -100 /var/log/httpd-error.log
1013 8:42 cd
1014 8:43 pkg info
1015 8:43 portupgrade -frR --batch php72
1016 11:30 portupgrade -frR php72
1017 18:45 apachectl restart
1018 3:20 history
ここまでやってOK でもまだ、
Installed packages to be REMOVED:
php72-pecl-imagick-3.4.4
Number of packages to be removed: 1
[1/1] Deinstalling php72-pecl-imagick-3.4.4...
[1/1] Deleting files for php72-pecl-imagick-3.4.4: 100%
[Reading data from pkg(8) ... - 439 packages found - done]
---> Installing the new version via the port
===> Deinstalling for php72-pecl-imagick
===> php72-pecl-imagick not installed, skipping
===> Installing for php72-pecl-imagick-3.4.4
===> Registering installation for php72-pecl-imagick-3.4.4
Installing php72-pecl-imagick-3.4.4...
This file has been added to automatically load the installed extension:
/usr/local/etc/php/ext-20-imagick.ini
===> Cleaning for php72-pecl-imagick-3.4.4
===> Cleaning for php73-pecl-imagick-3.4.4
===> Cleaning for php74-pecl-imagick-3.4.4
---> Cleaning out obsolete shared libraries
No such file or directory @ realpath_rec - /usr/local/lib/compat/pkg/libfbembed.so.2.5.8
No such file or directory @ realpath_rec - /usr/local/lib/compat/pkg/libfbclient.so.2.5.8
No such file or directory @ realpath_rec - /usr/local/lib/compat/pkg/libmysqlclient.so.20
** Listing the failed packages (-:ignored / *:skipped / !:failed)
! databases/firebird25-client (firebird25-client-2.5.8_4) (uninstall error)
* databases/php72-pdo_firebird (php72-pdo_firebird-7.2.25)
* databases/php72-interbase (php72-interbase-7.2.25)
* lang/php72-extensions (php72-extensions-1.0)
root@blackcube2:~:19_12_21:16:43 # apachectl restart
Performing sanity check on apache24 configuration:
Syntax OK
Stopping apache24.
Waiting for PIDS: 19822.
Performing sanity check on apache24 configuration:
Syntax OK
Starting apache24.
root@blackcube2:~:19_12_21:18:45 # history
19 10:14 pkg autoremove
# portupgrade -rfR db5-5.3.28_7
** Listing the failed packages (-:ignored / *:skipped / !:failed)
! databases/db5 (db5-5.3.28_7) (uninstall error)
* databases/p5-BerkeleyDB (p5-BerkeleyDB-0.63)
* databases/ruby-bdb (ruby25-bdb-0.6.6_7)
* devel/apr1 (apr-1.7.0.1.6.1)
# pkg delete db5-5.3.28_7
Updating database digests format: 100%
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 10 packages (of 0 packages in the universe):
Installed packages to be REMOVED:
db5-5.3.28_7
apr-1.7.0.1.6.1
ruby25-bdb-0.6.6_7
p5-BerkeleyDB-0.63
apache24-2.4.41
subversion-1.13.0
serf-1.3.9_4
portupgrade-2.4.16,2
amavisd-new-2.12.0,1
mod_php72-7.2.25
Number of packages to be removed: 10
T he operation will free 107 MiB.
----
Fatal error: Declaration of sfReversibleDoctrinePager::getResults() must be compatible with sfDoctrinePager::getResults($hydrationMode = NULL)
in /usr/local/www/SNS_RS_Base/lib/addon/sfReversibleDoctrinePager.class.php on line 20
/usr/local/www/SNS_RS_Base/lib/addon/sfReversibleDoctrinePager.class.php
$sqlOrder = self::DESC,
$listOrder = self::ASC;
public function getResults() ⇒ public function getResults($hydrationMode = NULL)
{
*phpbb3 [#f420e5cc]
[phpbb Debug] Warning : in file [ROOT} /vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275:
count(): Parameter must be an array or an object that implements Countable
https://area51.phpbb.com/phpBB/viewtopic.php?t=52691
/**
* Returns the length of a variable.
*
* @param Twig_Environment $env
* @param mixed $thing A variable
*
* @return int The length of the value
*/
function twig_length_filter(Twig_Environment $env, $thing)
{
if (is_scalar($thing)) {
return mb_strlen($thing, $env->getCharset());
}
if (is_object($thing) && method_exists($thing, '__toString') && !$thing instanceof \Countable) {
return mb_strlen((string) $thing, $env->getCharset());
} return count($thing);
}
/**
* Returns the length of a variable.
*
* @param Twig_Environment $env
* @param mixed $thing A variable
*
* @return int The length of the value
*/
function twig_length_filter(Twig_Environment $env, $thing)
{
if (null === $thing) {return 0; } if (is_scalar($thing)) {
return mb_strlen($thing, $env->getCharset());
}
if (is_object($thing) && method_exists($thing, '__toString') && !$thing instanceof \Countable) {
return mb_strlen((string) $thing, $env->getCharset());
} if ($thing instanceof \Countable || is_array($thing)) { return count($thing);
} return 1;
}
これで問題は解決しました。
----
Total access &counter(total);:本日 &counter(today);:昨日 &counter(yesterday);
#counter([total|today|yesterday]);