Error: Did not receive valid response from server

Ubuntu 22.04
Asterisk 20.5.0
After installation and the first launch, when you click the Apply Config button, a window pops up with an error “Error: Did not receive valid response from server
XHR response code: 401 XHR responseText: undefined jQuery status: error”

When you click the Submit button, it takes you to the authorization page.

From the error.log file:
[Wed Nov 29 10:17:05.152925 2023] [proxy_fcgi:error] [pid 1557:tid 140152029840960] [remote] AH01071: Got error ‘PHP message: PHP Warning: session_regenerate_id(): Session ID cannot be regenerated when there is no active session in /home/dozzirovka/domains/ on line 76; PHP message: PHP Warning: session_start(): open(/home/dozzirovka/domains/, O_RDWR) failed: Permission denied (13) in /home/dozzirovka/domains/ on line 77; PHP message: PHP Warning: session_start(): Failed to read session data: files (path: /home/dozzirovka/domains/ in /home/dozzirovka/domains/ on line 77’, referer: h…s://
[Wed Nov 29 10:17:53.781326 2023] [proxy_fcgi:error] [pid 1558:tid 140151786296896] [client] AH01071: Got error ‘Primary script unknown’, referer: h…p://
At the same time, the combination FreePBX 16 - Asterisk 18 works properly and does not cause such an error.
Please help me understand and solve this problem.

Got it. The topic can be closed.

What was the issue, and how did you solve it? It might help future readers.

1 Like

I set permissions to 775 for the tmp directory where the session files are located and changed the owner and group to asterisk.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.