phpbb ไม่ RUN tasks โปรแกรม อัตโนมัติให้

ตอบกระทู้

รูปแสดงอารมณ์
:icon_plusone: :like: :plusone: :gfb: :-D :) :( :-o 8O :? 8) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen: :angry: :baa: :biggrin:
รูปแสดงอารมณ์อื่นๆ

BBCode เปิด
[img] เปิด
[url] เปิด
[Smile icon] เปิด

กระทู้แนะนำ
   

มุมมองที่ขยายได้ กระทู้แนะนำ: phpbb ไม่ RUN tasks โปรแกรม อัตโนมัติให้

Re: phpbb ไม่ RUN tasks โปรแกรม อัตโนมัติให้

โดย mindphp » 12/08/2020 2:40 am

ลอง ทำใน phpBB มาตรฐานดู หรือยัง

Re: phpbb ไม่ RUN tasks โปรแกรม อัตโนมัติให้

โดย thatsawan » 11/08/2020 10:38 pm

โค้ด: เลือกทั้งหมด

C:\xampp\htdocs\xxxx>php bin/phpbbcli.php cron:run
PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 127930368 bytes) in C:\xampp\htdocs\xxxx\phpbb\console\command\cron\run.php on line 115

Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 127930368 bytes) in C:\xampp\htdocs\xxxx\phpbb\console\command\cron\run.php on line 115

โค้ด: เลือกทั้งหมด

C:\xampp\htdocs\xxxx>php bin/phpbbcli.php cron:run
PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 530583552 bytes) in C:\xampp\htdocs\xxxx\phpbb\console\command\cron\run.php on line 115

Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 530583552 bytes) in C:\xampp\htdocs\xxxx\phpbb\console\command\cron\run.php on line 115


อันนี้ประปรับ memory_limit=4096M เเล้วก็ยังขึ้น

โค้ด: เลือกทั้งหมด

C:\xampp\htdocs\xxxx>php bin/phpbbcli.php cron:run
PHP Fatal error: Allowed memory size of 4294967296 bytes exhausted (tried to allocate 2141196288 bytes) in C:\xampp\htdocs\xxxx\phpbb\console\command\cron\run.php on line 115

Fatal error: Allowed memory size of 4294967296 bytes exhausted (tried to allocate 2141196288 bytes) in C:\xampp\htdocs\xxxx\phpbb\console\command\cron\run.php on line 115

Re: phpbb ไม่ RUN tasks โปรแกรม อัตโนมัติให้

โดย thatsawan » 10/08/2020 6:46 pm

thatsawan เขียน: 10/08/2020 6:33 pm รันเเล้วไม่เจอ error เหมือนจะทำงานได้เเล้วค่ะ
เข้าใจเเล้ว เมื่อเรากด run คำสั่ง

โค้ด: เลือกทั้งหมด

php bin/phpbbcli.php cron:run
ระบบจะทำงานตอนนั้น เเต่ไม่ได้ทำงานขึ้นรอบถัดไปให้


เเต่ ไม่เข้าใจ รันบ่อย
จะเจอ

[RuntimeException]
ไม่สามารถขอรับการ cron lock.

[phpbb\exception\runtime_exception]
CRON_LOCK_ERROR

Re: phpbb ไม่ RUN tasks โปรแกรม อัตโนมัติให้

โดย thatsawan » 10/08/2020 6:33 pm

รันเเล้วไม่เจอ error เหมือนจะทำงานได้เเล้วค่ะ

Re: phpbb ไม่ RUN tasks โปรแกรม อัตโนมัติให้

โดย thatsawan » 10/08/2020 6:27 pm

โค้ด: เลือกทั้งหมด

D:\xampp\htdocs\xxxx>php bin/phpbbcli.php cron:run
ลองรันอีกเครื่อง


PHP Warning: Module 'pgsql' already loaded in Unknown on line 0
Warning: Module 'pgsql' already loaded in Unknown on line 0

Re: phpbb ไม่ RUN tasks โปรแกรม อัตโนมัติให้

โดย thatsawan » 09/08/2020 8:35 pm

ถ้าเราจะรันบน hosting เราจะเข้าไปรันคำสั่งได้ยังไงคะ

Re: phpbb ไม่ RUN tasks โปรแกรม อัตโนมัติให้

โดย thatsawan » 09/08/2020 8:22 pm

cron lock หมายถึงอะไรค่ะ

Re: phpbb ไม่ RUN tasks โปรแกรม อัตโนมัติให้

โดย thatsawan » 09/08/2020 8:21 pm

โค้ด: เลือกทั้งหมด

php bin/phpbbcli.php list

phpBB Console version 3.2.9

Usage:
command [options] [arguments]

Options:
-h, --help Display this help message
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi Force ANSI output
--no-ansi Disable ANSI output
-n, --no-interaction Do not ask any interactive question
--safe-mode Run in Safe Mode (without extensions).
-e, --env=ENV The Environment name.
-s, --shell Launch the shell.
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Available commands:
help Displays help for a command
list Lists commands
cache
cache:purge Purge the cache
config
config:delete Deletes a configuration option
config:get Gets a configuration option’s value
config:increment Increments a configuration option’s integer value
config:set Sets a configuration option’s value
config:set-atomic Sets a configuration option’s value only if the old matches the current value
cron
cron:list Prints a list of ready and unready cron jobs.
cron:run Runs all ready cron tasks.
db
db:list List all installed and available migrations.
db:migrate Updates the database by applying migrations.
db:revert Revert a migration.
dev
dev:migration-tips Finds migrations that are not depended upon.
extension
extension:disable Disables the specified extension.
extension:enable Enables the specified extension.
extension:purge Purges the specified extension.
extension:show Lists all extensions in the database and on the filesystem.
fixup
fixup:fix-left-right-ids Repairs the tree structure of the forums and modules.
fixup:recalculate-email-hash Recalculates the user_email_hash column of the users table.
fixup:update-hashes Updates outdated password hashes to be hashed with bcrypt.
reparser
reparser:list Lists the types of text that can be reparsed.
reparser:reparse Reparses stored text with the current text_formatter services.
thumbnail
thumbnail:delete Delete all existing thumbnails.
thumbnail:generate Generate all missing thumbnails.
thumbnail:recreate Recreate all thumbnails.
update
update:check Check if the board is up to date.
user
user:activate Activate (or deactivate) a user account.
user:add Add a new user.
user:delete Delete a user account.
user:reclean Re-clean usernames.


จากนั้นเรา รัน

โค้ด: เลือกทั้งหมด

C:\xampp\htdocs\thaivi_code>php bin/phpbbcli.php cron


[RuntimeException]
Could not obtain cron lock.



[phpbb\exception\runtime_exception]
CRON_LOCK_ERROR



cron:run [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [--safe-mode] [-e|--env ENV] [--] <command> [<name>]

Re: phpbb ไม่ RUN tasks โปรแกรม อัตโนมัติให้

โดย mindphp » 09/08/2020 7:50 pm


ข้างบน