K
K
K1NDER2020-05-05 04:30:15
ISPmanager
K1NDER, 2020-05-05 04:30:15

When opening the service on the server, an error occurred in the open.sh script, what's the problem?

Error
information 2020-05-05 04:21:28 Processing module 'Moscow №1' (id = 5)
2020-05-05 04:21:29 An error occurred while opening the service on the server in the open.sh script
Command: /usr/hosting/python/scripts/open.sh --password=hDLMXWLbv4AK --user=user2 Exit
code: 126
Reply:
2020-05-05 04:21:29 Error (type: 'open_cmd_failed'; object: '' ; value: '' ()

log

backtrace:
processing::ShellScripts::Open(int) (libexec/pmshellscripts.so + 0x832) [*0x2ba1d7df9af5]
processing::Module::Run(int, char**) (lib/libprocessingmodule.so + 0x1025) [*0x2ba1d7bb75aa]
??? (libexec/pmshellscripts.so + 0x1ca) [*0x401359]
??? (processing/pmshellscripts + 0x0) [*0x2ba1d7804505]
??? (/lib64/libc.so.6 + 0xf5) [*0x4015f7]
??? (processing/pmshellscripts + 0x0) [*(nil)]

log:
May 5 04:21:28 [926:1] db EXTINFO Query: 'SELECT processingmodule FROM item WHERE id = 2'
May 5 04:21:28 [926:1] db EXTINFO Query: 'SELECT name FROM processingmodule WHERE id = 5'
May 5 04:21:28 [926:1] db EXTINFO Query: 'SELECT it.intname, pm.module, i.id, i.remoteid, i.parent, i.processingmodule, i.lastpricelist, p.intname as pricelist_intname, i.pricelist, i.period, i.status, i.expiredate, i.opendate, i.account AS account_id, a.name AS account_name, p.project, i.cost, i.autosuspend, i.employeesuspend, i.abusesuspend FROM item i LEFT JOIN account a ON a.id = i.account JOIN pricelist p on p.id=i.pricelist JOIN itemtype it on it.id=p.itemtype LEFT JOIN processingmodule pm on pm.id=i.processingmodule WHERE i.id=2'
May 5 04:21:28 [926:1] db EXTINFO Query: 'SELECT module FROM processingmodule WHERE id = 5'
May 5 04:21:28 [926:1] db EXTINFO Query: 'SELECT intname, value FROM processingparam WHERE processingmodule=5'
May 5 04:21:28 [926:1] db EXTINFO Query: 'SELECT intname, value FROM processingcryptedparam WHERE processingmodule=5'
May 5 04:21:28 [926:1] libmgr EXTINFO Detected OS: CentOS
May 5 04:21:28 [926:1] libmgr EXTINFO id=21b40a Remote hostkey:
AAAAB3NzaC1yc2EAAAADAQABAAABAQDTvZFc6N9dgxG9vDAkQRciJ2xD8yL7YZhW2w31iNWQvg4K9D7FSamjt6LC3cjLhDBsZONuP4aZuZ5BlpOzNZ2Zf5RcRJNVDPq6Dxpov5yA+z/tE5zC8QiZQma6rdIxmmfCSCGPDuP66rbPzNDwSpfysk/KnwDQPm4XrnPIRJ9EaLi6+bSrXgLQWrao9GlxYGUh/vukVDFnex2uBK8NfyCPPXR8gWRlMnw6wwSqhKpdvxlM6eYpJbnbqDfszhcSYJMd8hwZ2hBfUpQyv5IPK6p18rSSNSMU8WRtSQrWfu2yrCSpqVZPV5cET8R4wJI3FSxTsDvtNYr+l4o7thRrnNsp
May 5 04:21:28 [926:1] libmgr EXTINFO id=21b40a Hostkey verified
May 5 04:21:28 [926:1] libmgr EXTINFO user = 'root', public = '/usr/local/mgr5/etc/pmshellscripts_id_rsa.pub', private = '/usr/local/mgr5/etc/pmshellscripts_id_rsa'
May 5 04:21:28 [926:1] db EXTINFO Query: 'SELECT period FROM item WHERE id=2'
May 5 04:21:28 [926:1] db EXTINFO Query: 'SELECT distinct t.intname, @tmp_value := IF(p.addontype = 3, IFNULL(ie.intname, pe.intname), IF(p.addontype = 1, IFNULL(i.boolvalue, p.addonbool), IF(p.billtype = 3, IFNULL(i.addonmax, p.addonmax), IF(i.intvalue IS NULL, if(i.addonlimit IS NULL, IFNULL(p.addonlimit, 0), i.addonlimit), IF(i.addonlimit IS NULL, IFNULL(p.addonlimit, 0) + IFNULL(i.intvalue, 0), IFNULL(i.addonlimit, 0) + IFNULL(i.intvalue, 0)))))) AS not_trial_value , IF(0 AND p.addontype = 2 AND IFNULL(i.addonmaxtrial, p.addonmaxtrial) IS NOT NULL AND IFNULL(i.addonmaxtrial, p.addonmaxtrial) < @tmp_value, IFNULL(i.addonmaxtrial, p.addonmaxtrial), @tmp_value) AS value, IF(p.addontype = 2, m.intname, '') AS measure, IFNULL(i.enumerationitem, p.enumerationitem) as enumerationitem, p.addontype AS pricelist_addontype, p.intname AS pricelist_intname FROM pricelist p LEFT JOIN itemtype t on p.itemtype = t.id LEFT JOIN item i on i.pricelist = p.id and i.parent = 2 LEFT JOIN enumerationitem ie on i.enumerationitem = ie.id LEFT JOIN enumerationitem pe on p.enumerationitem=pe.id LEFT JOIN measure m on m.id=p.measure WHERE p.parent=4 AND p.active = 'on' AND p.billtype!=4 AND p.billtype!=10 AND (p.compound IS NULL OR i.id IS NOT NULL)'
May 5 04:21:28 [926:1] db EXTINFO Query: 'SELECT * FROM pricelistparam WHERE pricelist=4 AND intname <> 'show_on_dashboard''
May 5 04:21:28 [926:1] db EXTINFO Query: 'select intname, value from itemparam where item=2'
May 5 04:21:28 [926:1] db EXTINFO Query: 'SELECT intname, value FROM itemcryptedparam WHERE item = 2'
May 5 04:21:28 [926:1] db EXTINFO Query: 'SELECT u.name FROM item i JOIN user u ON u.account = i.account LEFT JOIN core_users cu ON cu.name = CAST(u.id AS char)WHERE i.id = 2 AND u.enabled = 'on' ORDER BY IF(IFNULL(cu.super, 'off') = 'on', 0, 1) ASC, u.id LIMIT 1'
May 5 04:21:28 [926:1] db EXTINFO Query: 'SELECT account FROM item WHERE id = 2'
May 5 04:21:28 [926:1] db EXTINFO Query: 'SELECT COUNT(*) FROM item main_i JOIN item all_i ON all_i.processingmodule=main_i.processingmodule JOIN itemparam ip ON ip.item=all_i.id WHERE main_i.id=2 AND ip.intname='username' AND ip.value='user2''
May 5 04:21:28 [926:1] libmgr EXTINFO id=21b40a execute
May 5 04:21:28 [926:1] libmgr INFO id=21b40a Run ssh command '/usr/hosting/python/scripts/open.sh --password=hDLMXWLbv4AK --user=user2' on [email protected]
May 5 04:21:29 [926:1] libmgr INFO id=21b40a Ssh command finished with status 126
May 5 04:21:29 [926:1] backtrace EXTINFO processing::ShellScripts::Open(int) (libexec/pmshellscripts.so + 0x832) [*0x2ba1d7df9af5]
May 5 04:21:29 [926:1] backtrace EXTINFO processing::Module::Run(int, char**) (lib/libprocessingmodule.so + 0x1025) [*0x2ba1d7bb75aa]
May 5 04:21:29 [926:1] backtrace EXTINFO ??? (libexec/pmshellscripts.so + 0x1ca) [*0x401359]
May 5 04:21:29 [926:1] backtrace EXTINFO ??? (processing/pmshellscripts + 0x0) [*0x2ba1d7804505]
May 5 04:21:29 [926:1] backtrace EXTINFO ??? (/lib64/libc.so.6 + 0xf5) [*0x4015f7]
May 5 04:21:29 [926:1] backtrace EXTINFO ??? (processing/pmshellscripts + 0x0) [*(nil)]
May 5 04:21:29 [926:1] libmgr ERROR Error: Type: 'open_cmd_failed'

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2020-05-05
@yellowmew

status code 126
tldp.org/LDP/abs/html/exitcodes.html
Permission problem or command is not an executable
Assumption1: the user under which the program running the script is running on the server (and writing the specified log) does not have access to the /usr/hosting file /python/scripts/open.sh
Assumption2: executable bit not set for script
This is edited chmod +x /usr/hosting/python/scripts/open.sh

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question