Request Timed Out - salary slip submit

I have migrated site to my local server using

  1. bench --site [sitename] --force restore /path/to/SQLFILE
  2. bench --site [sitename] migrate

After this, i cannot submit salary slips.
The error I get in chrome is - Request Timed Out - salary slip submit
The developer’s console shows -

Failed to load resource: the server responded with a status of 504 (Gateway Time-out)
desk.min.js?ver=1504767052.01:1501 Unable to handle failed response
desk.min.js?ver=1504767052.01:1502 TypeError: Cannot read property ‘exc’ of undefined
at after_save (form.min.js?ver=1504767052.01:704)
at Object.error [as error_callback] (form.min.js?ver=1504767052.01:2301)
at _ (desk.min.js?ver=1504767052.01:1440)
at Object. (desk.min.js?ver=1504767052.01:1496)
at i (jquery.min.js:2)
at Object.fireWith [as rejectWith] (jquery.min.js:2)
at z (jquery.min.js:4)
at XMLHttpRequest. (jquery.min.js:4)
(anonymous) @ desk.min.js?ver=1504767052.01:1502
i @ jquery.min.js:2
fireWith @ jquery.min.js:2
z @ jquery.min.js:4
(anonymous) @ jquery.min.js:4

Kindly help me with the same

Your timeout seems to be due to a problem with your js code:

desk.min.js?ver=1504767052.01:1501 Unable to handle failed response
desk.min.js?ver=1504767052.01:1502 TypeError: Cannot read property ‘exc’ of undefined
at after_save (form.min.js?ver=1504767052.01:704)

I suggest ‘bench clear-cache’ and ‘bench clear-website-cache’ and/or restart your ERPNext server.

If that does not solve your problem then lookup ‘reinstall nodejs’ and follow those steps

I tried every command and even reinstalled nodejs but I get the same error. Is there any other solution.

Other options to try:

I assume you have done ‘bench update’

‘bench reinstall’ then as you have done ‘bench restore /path/to/SQLFILE’

Possibly ‘bench switch-to-master’ then ‘bench switch-to-develop’ (or the reverse depending on which of the two you are running) might restore whatever missing property seems to be causing the problem?

Did you solve this? I am having exactly the same problem. Please help