I have a production Press server that I set up about 2 months ago it’s running fine, no problems there.
But now I started a new project to self-host Frappe Cloud from scratch, and I’m hitting two problems:
-
Deploy Candidate builds → when I build & deploy, the status stays stuck at “Scheduled” and never proceeds.
-
Update Agent task → when I try to update the agent from Press, I get this error:
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Looks like the agent is returning an empty/invalid JSON, so response.json() fails.
]
This is weird because my older prod setup works fine, but on this new self-hosted one, both the deploy and the update agent fail.
error
`
App Versions
{"frappe": "15.75.0","press": "0.7.0"}
Route
Form/Database Server/m1.zinyecloud.com
Traceback
Traceback (most recent call last): File "env/lib/python3.10/site-packages/requests/models.py", line 971, in json return complexjson.loads(self.text, **kwargs) File "/usr/lib/python3.10/json/__init__.py", line 346, in loads return _default_decoder.decode(s) File "/usr/lib/python3.10/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python3.10/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from Nonejson.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)During handling of the above exception, another exception occurred:Traceback (most recent call last): File "apps/frappe/frappe/app.py", line 115, in application response = frappe.api.handle(request) File "apps/frappe/frappe/api/__init__.py", line 49, in handle data = endpoint(**arguments) File "apps/frappe/frappe/api/v1.py", line 36, in handle_rpc_call return frappe.handler.handle() File "apps/frappe/frappe/handler.py", line 51, in handle data = execute_cmd(cmd) File "apps/frappe/frappe/handler.py", line 84, in execute_cmd return frappe.call(method, **frappe.form_dict) File "apps/frappe/frappe/__init__.py", line 1754, in call return fn(*args, **newargs) File "apps/frappe/frappe/handler.py", line 334, in run_doc_method response = doc.run_method(method) File "apps/frappe/frappe/model/document.py", line 1007, in run_method out = Document.hook(fn)(self, *args, **kwargs) File "apps/frappe/frappe/model/document.py", line 1367, in composer return composed(self, method, *args, **kwargs) File "apps/frappe/frappe/model/document.py", line 1349, in runner add_to_return_value(self, fn(self, *args, **kwargs)) File "apps/frappe/frappe/model/document.py", line 1004, in fn return method_object(*args, **kwargs) File "apps/frappe/frappe/utils/typing_validations.py", line 32, in wrapper return func(*args, **kwargs) File "apps/press/press/press/doctype/server/server.py", line 475, in update_agent return agent.update() File "apps/press/press/agent.py", line 1173, in update return self.post("update", data={"url": url, "branch": branch}) File "apps/press/press/agent.py", line 880, in post return self.request("POST", path, data, raises=raises) File "apps/press/press/agent.py", line 920, in request self.handle_request_failure(agent_job, response) File "apps/press/press/agent.py", line 909, in request json_response = response.json() File "env/lib/python3.10/site-packages/requests/models.py", line 975, in json raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Request Data
{ "type": "POST", "args": { "docs": "{\"name\":\"m1.zinyecloud.com\",\"owner\":\"Administrator\",\"creation\":\"2025-08-04 15:43:26.481787\",\"modified\":\"2025-08-04 15:59:24.116242\",\"modified_by\":\"Administrator\",\"docstatus\":0,\"idx\":0,\"status\":\"Active\",\"hostname\":\"m1\",\"hostname_abbreviation\":\"m1\",\"domain\":\"zinyecloud.com\",\"cluster\":\"Default\",\"provider\":\"Generic\",\"public\":1,\"is_self_hosted\":0,\"enable_physical_backup\":0,\"halt_agent_jobs\":0,\"enable_binlog_indexing\":0,\"is_server_setup\":1,\"is_server_renamed\":0,\"is_server_prepared\":0,\"team\":\"00qcv9ju74\",\"auto_add_storage_min\":25,\"auto_add_storage_max\":250,\"auto_increase_storage\":1,\"ip\":\"5.161.30.109\",\"private_ip\":\"5.161.30.109\",\"agent_password\":\"********************************\",\"self_hosted_mariadb_server\":\"5.161.30.109\",\"mariadb_root_password\":\"********************************\",\"server_id\":1,\"is_primary\":1,\"is_replication_setup\":0,\"ssh_port\":22,\"root_public_key\":\"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDE7tjtqxyuZEvKk+YbfCGZDFZ/fbkzFLwQyDwCVbhyll88XLAIFiRamF3H7DzGlv8WqXGDTc6S0+/wZecHTQQUsTGe7RzyVnSAN7/a60GPn1XzP30czDDua6Di8RmFoPrYPRM97bc9XZcMcLw1RlK7DFRbECVhr5q2uhPoGSVU4HHV8bF9PKLKzCAAr0NiNEf0rCmEBShVCWHT/Cez/B5PkDgSuTZVHT1AxhnGqw037lLAu8SYirc+UAfzgr0/cAPxsTZMcJEuiDRWfOutIno7fuDW6axNh75w/ptqfu0EFivSSwW6k/k5rjXF59XH7meh1DTwVqb7vExqWfl2/HA2qWki4veoEPYuJbijpQe0sDRUUvuXgGFScC95jT2NyLTbVoaSzYfX3U0DkoTABE2Pw49p0S9BI5hW3svX/5N5vsMPdgcd0DYUL974g+ErW/usvljejEGGj5RKG/AXx5OZqaVuHD9h6GtRqtazjgU2CK19ltoU0mBuE7zaGjFqHnc= ansible-generated on Database\",\"ram\":0,\"has_data_volume\":0,\"memory_high\":0,\"memory_max\":0,\"memory_swap_max\":0.1,\"memory_allocator\":\"TCMalloc\",\"is_performance_schema_enabled\":0,\"is_stalk_setup\":0,\"stalk_gdb_collector\":0,\"stalk_strace_collector\":0,\"stalk_function\":\"status\",\"stalk_variable\":\"Threads_running\",\"stalk_threshold\":25,\"stalk_interval\":1,\"stalk_cycles\":5,\"stalk_sleep\":300,\"binlog_retention_days\":14,\"binlogs_removed\":0,\"doctype\":\"Database Server\",\"mariadb_system_variables\":[],\"tags\":[],\"mounts\":[{\"name\":1,\"owner\":\"Administrator\",\"creation\":\"2025-08-04 15:43:26.481787\",\"modified\":\"2025-08-04 15:59:24.116242\",\"modified_by\":\"Administrator\",\"docstatus\":0,\"idx\":1,\"mount_type\":\"Volume\",\"volume_id\":\"103015637\",\"filesystem\":\"ext4\",\"status\":\"Success\",\"source\":\"/dev/disk/by-id/scsi-0HC_Volume_103015637\",\"uuid\":\"316c5b09-d2db-43e3-873b-91e71e69130c\",\"mount_point\":\"/var/lib/mysql\",\"mount_options\":\"defaults\",\"mount_point_owner\":\"root\",\"mount_point_group\":\"root\",\"mount_point_mode\":\"0755\",\"parent\":\"m1.zinyecloud.com\",\"parentfield\":\"mounts\",\"parenttype\":\"Database Server\",\"doctype\":\"Server Mount\"}],\"__last_sync_on\":\"2025-08-06T11:14:33.725Z\"}", "method": "update_agent" }, "headers": {}, "error_handlers": {}, "url": "/api/method/run_doc_method", "request_id": null}
Response Data
{"exception": "requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)","exc_type": "JSONDecodeError","_exc_source": "press (app)"}
`
Any input will be appreciated …Also i have a small doubt whether this error is due to the new agent code…
