Internal Server Error: After upgrade to ERPNEXT 8.0

1 Go to bench-repo folder
2 git pull or git pull origin
3 Go back to frappe-bench folder
4 Run bench update
5 bench use “Your site name”
6 bench migrate
7 bench clear-cache
8 bench start.

no 2 ( how , can you type the line command )

Hello @Ahmed_Khalifa,

If you want to get latest bench-repo code then
Go to bench-repo directory and then execute git pull command.

bench-repo$ git pull

1 Like

working now thanks mr. yogendrasinh

when make backup from database, and make restore , what the database sql_file_path name ?

bench backup
then
bench --site erpnext.vm restore ( sql_file_path )

Hello @Ahmed_Khalifa

Below is the command to restore database:

bench --site site_name --force restore /path/to/copied/latest_date_time_sql_backup.gz

If still have any doubts go through below link:

1 Like

Still not working. It says updating… @yogendrasinh

Hello @Amarjeet_Singh_Sintu,

Can You please provide us any screen shot or full traceback.

what is traceback? please tell me I am new and I don’t know @Chandresh_Thakkar @MaysaaSafadi @yogendrasinh @srajelli @Ahmed_Khalifa

Hello @Amarjeet_Singh_Sintu

I think it’s your cache or browser history problem.
Remove your browser history and cache.

Are you in production mode or development mode?

see below link for that:

Traceback means the report about the processes which are executed during the specific operation.

And if the execution flow breaks somewhere then the reason is given in that traceback.

How do I get the traceback (report)? @Chandresh_Thakkar @MaysaaSafadi @yogendrasinh @srajelli @Ahmed_Khalifa

In production mode… @yogendrasinh

This should help for the
traceback logs:

in Production mode…

Traceback
when i type frappe@erpnext:~/frappe-bench$ find . -name socketio.log NOTHING COMES UP
frappe@erpnext:~/frappe-bench$ find ./logs/node-socketio.error.log NOTHING COMES UP

BUT WHEN I TYPE
frappe@erpnext:~/frappe-bench$ ./logs/node-socketio.error.log IT SAYS " PERMISSION DENIED"

Please help URGENT @clarkej @krnkris

~
means your directory structure

@Amarjeet_Singh_Sintu
You should find the
frappe-bench directory in your directory structure and do all the steps in it

Hope this helps.

I tried but as I explained it says permission denied as below:

when i type frappe@erpnext:~/frappe-bench$ find . -name socketio.log NOTHING COMES UP
frappe@erpnext:~/frappe-bench$ find ./logs/node-socketio.error.log NOTHING COMES UP

BUT WHEN I TYPE
frappe@erpnext:~/frappe-bench$ ./logs/node-socketio.error.log IT SAYS " PERMISSION DENIED"

Please help URGENT @clarkej @krnkris

I donwloaded the text files of logs from frappe-bench/logs but the files have more charactors than allowed here. My error log had 1,65,880 charactors while only 32000 are allowed in this forum @krnkris

events.js:72
throw er; // Unhandled ‘error’ event
^
Error: Redis connection to localhost:12000 failed - connect ECONNREFUSED
at errnoException (net.js:901:11)
at Object.afterConnect [as oncomplete] (net.js:892:19)

/home/frappe/frappe-bench/node_modules/socket.io/node_modules/engine.io/node_modules/uws/uws.js:3
const http = require(‘http’);
^^^^^
SyntaxError: Use of const in strict mode.
at Module._compile (module.js:439:25)
at Object.Module._extensions…js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Server.init (/home/frappe/frappe-bench/node_modules/socket.io/node_modules/engine.io/lib/server.js:119:16)
at new Server (/home/frappe/frappe-bench/node_modules/socket.io/node_modules/engine.io/lib/server.js:65:8)
at Function.attach (/home/frappe/frappe-bench/node_modules/socket.io/node_modules/engine.io/lib/engine.io.js:123:16)
at Server.initEngine (/home/frappe/frappe-bench/node_modules/socket.io/lib/index.js:274:21)
at /home/frappe/frappe-bench/node_modules/socket.io/lib/index.js:259:10

/home/frappe/frappe-bench/node_modules/socket.io/node_modules/engine.io/node_modules/uws/uws.js:3
const http = require(‘http’);
^^^^^
SyntaxError: Use of const in strict mode.
at Module._compile (module.js:439:25)
at Object.Module._extensions…js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Server.init (/home/frappe/frappe-bench/node_modules/socket.io/node_modules/engine.io/lib/server.js:119:16)
at new Server (/home/frappe/frappe-bench/node_modules/socket.io/node_modules/engine.io/lib/server.js:65:8)
at Function.attach (/home/frappe/frappe-bench/node_modules/socket.io/node_modules/engine.io/lib/engine.io.js:123:16)
at Server.initEngine (/home/frappe/frappe-bench/node_modules/socket.io/lib/index.js:274:21)
at /home/frappe/frappe-bench/node_modules/socket.io/lib/index.js:259:10

/home/frappe/frappe-bench/node_modules/socket.io/node_modules/engine.io/node_modules/uws/uws.js:3
const http = require(‘http’);
^^^^^
SyntaxError: Use of const in strict mode.
at Module._compile (module.js:439:25)
at Object.Module._extensions…js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Server.init (/home/frappe/frappe-bench/node_modules/socket.io/node_modules/engine.io/lib/server.js:119:16)
at new Server (/home/frappe/frappe-bench/node_modules/socket.io/node_modules/engine.io/lib/server.js:65:8)
at Function.attach (/home/frappe/frappe-bench/node_modules/socket.io/node_modules/engine.io/lib/engine.io.js:123:16)
at Server.initEngine (/home/frappe/frappe-bench/node_modules/socket.io/lib/index.js:274:21)
at /home/frappe/frappe-bench/node_modules/socket.io/lib/index.js:259:10

/home/frappe/frappe-bench/node_modules/socket.io/node_modules/engine.io/node_modules/uws/uws.js:3
const http = require(‘http’);
^^^^^
SyntaxError: Use of const in strict mode.
at Module._compile (module.js:439:25)
at Object.Module._extensions…js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Server.init (/home/frappe/frappe-bench/node_modules/socket.io/node_modules/engine.io/lib/server.js:119:16)
at new Server (/home/frappe/frappe-bench/node_modules/socket.io/node_modules/engine.io/lib/server.js:65:8)
at Function.attach (/home/frappe/frappe-bench/node_modules/socket.io/node_modules/engine.io/lib/engine.io.js:123:16)
at Server.initEngine (/home/frappe/frappe-bench/node_modules/socket.io/lib/index.js:274:21)
at /home/frappe/frappe-bench/node_modules/socket.io/lib/index.js:259:10

/home/frappe/frappe-bench/node_modules/socket.io/node_modules/engine.io/node_modules/uws/uws.js:3
const http = require(‘http’);
^^^^^
SyntaxError: Use of const in strict mode.
at Module._compile (module.js:439:25)
at Object.Module._extensions…js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Server.init (/home/frappe/frappe-bench/node_modules/socket.io/node_modules/engine.io/lib/server.js:119:16)
at new Server (/home/frappe/frappe-bench/node_modules/socket.io/node_modules/engine.io/lib/server.js:65:8)
at Function.attach (/home/frappe/frappe-bench/node_modules/socket.io/node_modules/engine.io/lib/engine.io.js:123:16)
at Server.initEngine (/home/frappe/frappe-bench/node_modules/socket.io/lib/index.js:274:21)
at /home/frappe/frappe-bench/node_modules/socket.io/lib/index.js:259:10

/home/frappe/frappe-bench/node_modules/socket.io/node_modules/engine.io/node_modules/uws/uws.js:3
const http = require(‘http’);
^^^^^
SyntaxError: Use of const in strict mode.
at Module._compile (module.js:439:25)
at Object.Module._extensions…js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Server.init (/home/frappe/frappe-bench/node_modules/socket.io/node_modules/engine.io/lib/server.js:119:16)
at new Server (/home/frappe/frappe-bench/node_modules/socket.io/node_modules/engine.io/lib/server.js:65:8)
at Function.attach (/home/frappe/frappe-bench/node_modules/socket.io/node_modules/engine.io/lib/engine.io.js:123:16)
at Server.initEngine (/home/frappe/frappe-bench/node_modules/socket.io/lib/index.js:274:21)
at /home/frappe/frappe-bench/node_modules/socket.io/lib/index.js:259:10

/home/frappe/frappe-bench/node_modules/socket.io/node_modules/engine.io/node_modules/uws/uws.js:3
const http = require(‘http’);
^^^^^
SyntaxError: Use of const in strict mode.
at Module._compile (module.js:439:25)
at Object.Module._extensions…js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Server.init (/home/frappe/frappe-bench/node_modules/socket.io/node_modules/engine.io/lib/server.js:119:16)
at new Server (/home/frappe/frappe-bench/node_modules/socket.io/node_modules/engine.io/lib/server.js:65:8)
at Function.attach (/home/frappe/frappe-bench/node_modules/socket.io/node_modules/engine.io/lib/engine.io.js:123:16)
at Server.initEngine (/home/frappe/frappe-bench/node_modules/socket.io/lib/index.js:274:21)
at /home/frappe/frappe-bench/node_modules/socket.io/lib/index.js:259:10

/home/frappe/frappe-bench/node_modules/socket.io/node_modules/engine.io/node_modules/uws/uws.js:3
const http = require(‘http’);
^^^^^
SyntaxError: Use of const in strict mode.
at Module._compile (module.js:439:25)
at Object.Module._extensions…js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Server.init (/home/frappe/frappe-bench/node_modules/socket.io/node_modules/engine.io/lib/server.js:119:16)
at new Server (/home/frappe/frappe-bench/node_modules/socket.io/node_modules/engine.io/lib/server.js:65:8)
at Function.attach (/home/frappe/frappe-bench/node_modules/socket.io/node_modules/engine.io/lib/engine.io.js:123:16)
at Server.initEngine (/home/frappe/frappe-bench/node_modules/socket.io/lib/index.js:274:21)
at /home/frappe/frappe-bench/node_modules/socket.io/lib/index.js:259:10

/home/frappe/frappe-bench/node_modules/socket.io/node_modules/engine.io/node_modules/uws/uws.js:3
const http = require(‘http’);
^^^^^
SyntaxError: Use of const in strict mode.
at Module._compile (module.js:439:25)
at Object.Module._extensions…js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
a

These logs show that nodejs is outdated. You can upgrade by downloading from Nodejs website - Node.js or follow the instructions on this website - Managing Node.js Versions with nvm