Site Operations are failing

Site operations (creation, suspension, delete) are failing. Any idea how to fix it

Status Code: 500

Response: {
“error”: [
“Traceback (most recent call last):”,
" File "/home/frappe/agent/env/lib/python3.8/site-packages/redis/client.py", line 1367, in execute_transaction",
" response = self.parse_response(connection, "
")“,
" File "/home/frappe/agent/env/lib/python3.8/site-packages/redis/client.py", line 1435, in parse_response”,
" result = Redis.parse_response(self, connection, command_name, **options)“,
" File "/home/frappe/agent/env/lib/python3.8/site-packages/redis/client.py", line 565, in parse_response”,
" response = connection.read_response()“,
" File "/home/frappe/agent/env/lib/python3.8/site-packages/redis/connection.py", line 536, in read_response”,
" raise response",
“redis.exceptions.ExecAbortError: Transaction discarded because of previous errors.”,
“”,
“During handling of the above exception, another exception occurred:”,
“”,
“Traceback (most recent call last):”,
" File "/home/frappe/agent/env/lib/python3.8/site-packages/flask/app.py", line 1949, in full_dispatch_request",
" rv = self.dispatch_request()“,
" File "/home/frappe/agent/env/lib/python3.8/site-packages/flask/app.py", line 1935, in dispatch_request”,
" return self.view_functionsrule.endpoint",
" File "/home/frappe/agent/repo/agent/web.py", line 56, in wrapper",
" return fn(*args, **kwargs)“,
" File "/home/frappe/agent/repo/agent/web.py", line 706, in archive_site”,
" Server()“,
" File "/home/frappe/agent/repo/agent/job.py", line 176, in wrapper”,
" queue(priority).enqueue_call(“,
" File "/home/frappe/agent/env/lib/python3.8/site-packages/rq/queue.py", line 670, in enqueue_call”,
" return self.enqueue_job(job, pipeline=pipeline, at_front=at_front)“,
" File "/home/frappe/agent/env/lib/python3.8/site-packages/rq/queue.py", line 1014, in enqueue_job”,
" pipe.execute()“,
" File "/home/frappe/agent/env/lib/python3.8/site-packages/redis/client.py", line 1503, in execute”,
" return conn.retry.call_with_retry(“,
" File "/home/frappe/agent/env/lib/python3.8/site-packages/redis/retry.py", line 62, in call_with_retry”,
" return do()“,
" File "/home/frappe/agent/env/lib/python3.8/site-packages/redis/client.py", line 1504, in ”,
" lambda: execute(conn, stack, raise_on_error),“,
" File "/home/frappe/agent/env/lib/python3.8/site-packages/redis/client.py", line 1370, in _execute_transaction”,
" raise errors[0][1]“,
" File "/home/frappe/agent/env/lib/python3.8/site-packages/redis/client.py", line 1360, in execute_transaction",
" self.parse_response(connection, "
")”,
" File "/home/frappe/agent/env/lib/python3.8/site-packages/redis/client.py", line 1435, in parse_response",
" result = Redis.parse_response(self, connection, command_name, **options)“,
" File "/home/frappe/agent/env/lib/python3.8/site-packages/redis/client.py", line 565, in parse_response”,
" response = connection.read_response()“,
" File "/home/frappe/agent/env/lib/python3.8/site-packages/redis/connection.py", line 536, in read_response”,
" raise response",
“redis.exceptions.ResponseError: Command # 1 (SADD rq:queues rq:queue:default) of pipeline caused error: MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk. Commands that may modify the data set are disabled, because this instance is configured to report errors during writes if RDB snapshotting fails (stop-writes-on-bgsave-error option). Please check the Redis logs for details about the RDB error.”
]
}

Hi,

Is this a new installation or one that had been working and this error started happening?

Check to see if Redis is running and that you are not running out of disk space.

It has been running for a few day. Please, can I DM you?

Lets keep the discussion here so others may see and potentially help.

Please describe the operating environment - the version of Frappe and any apps, how it is hosted and the resources available. We can take it from there.

1 Like

I was able to create an f2 server that works. However, it seems like my f1 server disk is full and i barely have 10 sites hosted there.

System load: 0.4 Processes: 196
Usage of /: 99.9% of 37.23GB Users logged in: 0
Memory usage: 9% IPv4 address for eth0:
Swap usage: 0% IPv6 address for eth0:

=> / is using 99.9% of 37.23GB

When app server runs out of space, re-scalling doesn’t fix it, disk space needs to be resized manually. f1(App Server) works now.

Also avoid creating multiple benches on a 4GB server.

1 Like