Couldn't upload manuscript files in new submission

Hello @yannis,
I tried to upload a docx file to Upload Manuscript option that appears while clicking New Submission. It says, “Failed to fetch” as shown below,

I have sent you the docx file which I uploaded in mattermost as I couldn’t upload here.Please guide me in this.

This should now be fixed on the main branch.

Hey @yannis,
Pulled latest update from git. But the problem still appears. I couldn’t upload docx file. Any problem with the file?

Just an update here. This seems to be an issue with job-xsweet when a conversion takes too long. Solution will be to move kotahi to using a separate xsweet service like Editoria, which seems to be working fine so far.

Okay @yannis . Take your time, work on it and get back to us with the solution. :slightly_smiling_face:

Hello @yannis,
Any updates on the issue?

Hi ShibinaS,

Can I ask , did you install Kotahi yourself?
There may be mis-configuration of the parameters for the xsweet job process - are you able to capture the “Network” panel of the Web Developer tools in the browser? That can help us track down the issue.

Andrew

Hi @intothemist,
I installed kotahi as per the guidelines provided by @yannis. He said he would configure the xsweet server in such a way it works for editoria. But, I could upload epub and pdf files. I couldn’t upload docx files. Please have a look at the “Network” panel of the Web developer tools.

Thanks,
Shibina

Hi
Thanks, that’s the right path, but I wanted to be able to see the URL that is being requested by the code. See on my screenshot, under the Domain column.
If you can monitor that while trying to upload the DOCX file that would be helpful.

Hi,
Thanks for the reply here I upload the details as you want please find the image below here.

Hi

You need to make ‘pubsweet-client’ [‘host’] equal to 192.168.0.73
Try editing config/custom-environment-variables.js firstly, and directly set it to that IP addr.

eg
‘pubsweet-client’: {
protocol: ‘CLIENT_PROTOCOL’,
host: ‘127.0.0.1’,
port: ‘CLIENT_PORT’,
},

Andrew

Hi,
Thanks for the reply, I tried as you said in the custom-environment-variables.js
but still got that issue in that, here i upload the changes I

made please let me know if it is wrong

Hi

Can you show me your docker-compose.yml file please.
Do you set any environmental variables to run the app ?

Andrew

Hi,
This is my docker-compose.yml.

version: ‘3’

services:
client:
build:
context: .
dockerfile: ./Dockerfile-development
depends_on:
- server
command:
[
‘node_modules/.bin/webpack-dev-server’,
‘–config’,
‘./webpack/webpack.development.config.js’,
]
ports:
- ${CLIENT_PORT:-4000}:${CLIENT_PORT:-4000}
environment:
- NODE_ENV=development
- CLIENT_HOST=0.0.0.0
- CLIENT_PORT=${CLIENT_PORT:-4000}
- SERVER_PROTOCOL=http
- SERVER_HOST=server
- SERVER_PORT=3000
volumes:
- ./app:/home/node/app/app
- ./config:/home/node/app/config

server:
build:
context: .
dockerfile: ./Dockerfile-development
depends_on:
- db
entrypoint:
[
‘node_modules/.bin/wait-for-it’,
‘db:5432’,
‘–’,
‘sh’,
‘scripts/setupDevServer.sh’,
]
command:
[
‘node_modules/.bin/nodemon’,
‘startServer.js’,
‘–watch’,
‘server’,
‘–watch’,
‘config’,
‘–ext’,
‘js,graphql’,
]
ports:
- ${SERVER_PORT:-3000}:3000
environment:
- NODE_ENV=development
- POSTGRES_USER=${POSTGRES_USER:-dev}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-password}
- POSTGRES_DB=${POSTGRES_DB:-ncbi_dev}
- POSTGRES_HOST=db
- POSTGRES_PORT=5432
- PUBSWEET_SECRET=${PUBSWEET_SECRET:-dev_secret}
- CLIENT_PROTOCOL=${CLIENT_PROTOCOL:-http}
- CLIENT_HOST=${CLIENT_HOST:-localhost}
- CLIENT_PORT=${CLIENT_PORT:-4000}
- ORCID_CLIENT_ID=${ORCID_CLIENT_ID}
- ORCID_CLIENT_SECRET=${ORCID_CLIENT_SECRET}
volumes:
- ./config:/home/node/app/config
- ./server:/home/node/app/server

job-xsweet:
image: pubsweet/job-xsweet
depends_on:
- server
command:
[
‘bash’,
‘./scripts/wait-for-it.sh’,
‘–timeout=60’,
‘server:3000’,
–,
‘node’,
‘src/xsweet.js’,
]
environment:
- DATABASE_URL=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}
volumes:
- ./scripts/wait-for-it.sh:/home/node/scripts/wait-for-it.sh

db:
image: postgres:10-alpine
ports:
- ${POSTGRES_PORT:-5432}:5432
environment:
- POSTGRES_USER
- POSTGRES_DB
- POSTGRES_PASSWORD
volumes:
- ./scripts/test.sql:/docker-entrypoint-initdb.d/test.sql

HI

And the environment variables? Are you setting shell (bash etc) variables before you start docker ?

Did you make sure you restarted the services after you changed ‘custom-environment-variables.js’ right?

Andy

HI

Actually I made a mistake re: custom-environment-variables.js - thats meant to be a mapping to other environment variables , not to a particular value.

Can you please post 1) any environment variables you set on the cmd line for the shell, before you start docker, and 2) The beginnings of the log file output when you start docker

Andy

Hi

Also, please post a copy of your config/development.js !

For the next test, revert the changes I asked for in ‘custom-environment-variables.js’ i.e set it back to
‘pubsweet-client’: {
protocol: ‘CLIENT_PROTOCOL’,
host: ‘CLIENT_HOST’,
port: ‘CLIENT_PORT’,
},

(As I said, that was a mistake, I was going from memory)

Then change ‘config/development.js’ so that the section,

‘pubsweet-client’: {
protocol: ‘http’,
host: ‘127.0.0.1’,
port: 4000,
},

but set the pubsweet_client part " host: ‘192.168.0.73’ "
and restart, and do the test again

Thanks

Andy

Hi,
Thanks for the reply, No I’m not restart the services after I changed , I’ll try and let you know.

Hi Andy,
Thanks for the reply, For set environment variables in command line I m using “source config/development.env” and I post the log file for docker client db. please let me know posted log file is as you expected.

root@editoria:~/kotahi_development/kotahi# docker logs 6c68c1e4cf76
:information_source: 「wds」: Project is running at http://0.0.0.0:4200/
:information_source: 「wds」: webpack output is served from /
:information_source: 「wds」: Content not from webpack is served from /home/node/app
:information_source: 「wds」: 404s will fallback to /index.html
:information_source: 「wdm」: wait until bundle finished: /
[BABEL] Note: The code generator has deoptimised the styling of /home/node/app/node_modules/xpub-edit/node_modules/@pubsweet/ui-toolkit/node_modules/lodash/lodash.js as it exceeds the max of 500KB.
:information_source: 「wdm」: Hash: 634d48bdb08dc586123e
Version: webpack 4.44.2
Time: 106006ms
Built at: 01/04/2021 11:23:04 AM
Asset Size Chunks Chunk Names
index.html 210 bytes [emitted]
js/bundle.js 12.8 MiB app [emitted] app
js/bundle.js.gz 2.35 MiB [emitted]
js/bundle.js.map 12.5 MiB app [emitted] [dev] app
js/bundle.js.map.gz 2.24 MiB [emitted]
logo-aperture.png 18.5 KiB [emitted]
pubsweet-rgb-small.jpg 47.5 KiB [emitted]
pubsweet-rgb-small.jpg.gz 28.3 KiB [emitted]
pubsweet.jpg 47.5 KiB [emitted]
pubsweet.jpg.gz 28.3 KiB [emitted]
Entrypoint app = js/bundle.js js/bundle.js.map
[0] multi …/node_modules/webpack-dev-server/client?http://0.0.0.0:4200 …/node_modules/webpack/hot/dev-server.js react-hot-loader/patch ./app 64 bytes {app} [built]
[…/config/journal/index.js] 375 bytes {app} [built]
[…/node_modules/history/esm/history.js] 28.1 KiB {app} [built]
[…/node_modules/react-dom/index.js] 1.33 KiB {app} [built]
[…/node_modules/react-hot-loader/dist/react-hot-loader.development.js] 98.2 KiB {app} [built]
[…/node_modules/react-hot-loader/index.js] 1.55 KiB {app} [built]
[…/node_modules/react-hot-loader/patch.js] 229 bytes {app} [built]
[…/node_modules/react/index.js] 190 bytes {app} [built]
[…/node_modules/regenerator-runtime/runtime.js] 23.8 KiB {app} [built]
[…/node_modules/strip-ansi/index.js] 161 bytes {app} [built]
[…/node_modules/webpack-dev-server/client/index.js?http://0.0.0.0:4200] …/node_modules/webpack-dev-server/client?http://0.0.0.0:4200 4.29 KiB {app} [built]
[…/node_modules/webpack-dev-server/client/overlay.js] 3.51 KiB {app} [built]
[…/node_modules/webpack-dev-server/client/socket.js] 1.53 KiB {app} [built]
[…/node_modules/webpack/hot/dev-server.js] 1.59 KiB {app} [built]
[./app.js] 1.73 KiB {app} [built]
+ 1665 hidden modules
Child html-webpack-plugin for “index.html”:
1 asset
Entrypoint undefined = index.html
[…/node_modules/html-webpack-plugin/lib/loader.js!./index.ejs] 437 bytes {0} [built]
[…/node_modules/html-webpack-plugin/node_modules/lodash/lodash.js] 528 KiB {0} [built]
[…/node_modules/webpack/buildin/global.js] 472 bytes {0} [built]
[…/node_modules/webpack/buildin/module.js] 497 bytes {0} [built]
:information_source: 「wdm」: Compiled successfully.
[HPM] Error occurred while trying to proxy request /subscriptions from 192.168.0.73:4200 to ws://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /graphql from 192.168.0.73:4200 to http://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /subscriptions from 192.168.0.73:4200 to ws://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /subscriptions from 192.168.0.73:4200 to ws://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /graphql from 192.168.0.73:4200 to http://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /subscriptions from 192.168.0.73:4200 to ws://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /subscriptions from 192.168.0.73:4200 to ws://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /subscriptions from 192.168.0.73:4200 to ws://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /subscriptions from 192.168.0.73:4200 to ws://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /subscriptions from 192.168.0.73:4200 to ws://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /subscriptions from 192.168.0.73:4200 to ws://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /subscriptions from 192.168.0.73:4200 to ws://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /graphql from 192.168.0.73:4200 to http://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /graphql from 192.168.0.73:4200 to http://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /subscriptions from 192.168.0.73:4200 to ws://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /subscriptions from 192.168.0.73:4200 to ws://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /graphql from 192.168.0.73:4200 to http://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /subscriptions from 192.168.0.73:4200 to ws://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /graphql from 192.168.0.73:4200 to http://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /graphql from 192.168.0.73:4200 to http://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /subscriptions from 192.168.0.73:4200 to ws://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /graphql from 192.168.0.73:4200 to http://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /graphql from 192.168.0.73:4200 to http://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /public/logo-aperture.png from 192.168.0.73:4200 to http://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /subscriptions from 192.168.0.73:4200 to ws://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /subscriptions from 192.168.0.73:4200 to ws://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /graphql from 192.168.0.73:4200 to http://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /subscriptions from 192.168.0.73:4200 to ws://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /subscriptions from 192.168.0.73:4200 to ws://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /subscriptions from 192.168.0.73:4200 to ws://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /auth/orcid from 192.168.0.73:4200 to http://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /graphql from 192.168.0.73:4200 to http://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /graphql from 192.168.0.73:4200 to http://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /subscriptions from 192.168.0.73:4200 to ws://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /subscriptions from 192.168.0.73:4200 to ws://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /subscriptions from 192.168.0.73:4200 to ws://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /subscriptions from 192.168.0.73:4200 to ws://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /graphql from 192.168.0.73:4200 to http://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /subscriptions from 192.168.0.73:4200 to ws://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /subscriptions from 192.168.0.73:4200 to ws://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /subscriptions from 192.168.0.73:4200 to ws://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /graphql from 192.168.0.73:4200 to http://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
:information_source: 「wds」: Project is running at http://0.0.0.0:4200/
:information_source: 「wds」: webpack output is served from /
:information_source: 「wds」: Content not from webpack is served from /home/node/app
:information_source: 「wds」: 404s will fallback to /index.html
[HPM] Error occurred while trying to proxy request /subscriptions from 192.168.0.73:4200 to ws://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /graphql from 192.168.0.73:4200 to http://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /graphql from 192.168.0.73:4200 to http://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /subscriptions from 192.168.0.73:4200 to ws://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[BABEL] Note: The code generator has deoptimised the styling of /home/node/app/node_modules/xpub-edit/node_modules/@pubsweet/ui-toolkit/node_modules/lodash/lodash.js as it exceeds the max of 500KB.
:information_source: 「wdm」: wait until bundle finished: /login
:information_source: 「wdm」: Hash: 44f016eab230bebe7694
Version: webpack 4.44.2
Time: 85939ms
Built at: 01/06/2021 7:51:05 AM
Asset Size Chunks Chunk Names
index.html 210 bytes [emitted]
js/bundle.js 12.8 MiB app [emitted] app
js/bundle.js.gz 2.35 MiB [emitted]
js/bundle.js.map 12.5 MiB app [emitted] [dev] app
js/bundle.js.map.gz 2.24 MiB [emitted]
logo-aperture.png 18.5 KiB [emitted]
pubsweet-rgb-small.jpg 47.5 KiB [emitted]
pubsweet-rgb-small.jpg.gz 28.3 KiB [emitted]
pubsweet.jpg 47.5 KiB [emitted]
pubsweet.jpg.gz 28.3 KiB [emitted]
Entrypoint app = js/bundle.js js/bundle.js.map
[0] multi …/node_modules/webpack-dev-server/client?http://0.0.0.0:4200 …/node_modules/webpack/hot/dev-server.js react-hot-loader/patch ./app 64 bytes {app} [built]
[…/config/journal/index.js] 375 bytes {app} [built]
[…/node_modules/history/esm/history.js] 28.1 KiB {app} [built]
[…/node_modules/react-dom/index.js] 1.33 KiB {app} [built]
[…/node_modules/react-hot-loader/dist/react-hot-loader.development.js] 98.2 KiB {app} [built]
[…/node_modules/react-hot-loader/index.js] 1.55 KiB {app} [built]
[…/node_modules/react-hot-loader/patch.js] 229 bytes {app} [built]
[…/node_modules/react/index.js] 190 bytes {app} [built]
[…/node_modules/regenerator-runtime/runtime.js] 23.8 KiB {app} [built]
[…/node_modules/strip-ansi/index.js] 161 bytes {app} [built]
[…/node_modules/webpack-dev-server/client/index.js?http://0.0.0.0:4200] …/node_modules/webpack-dev-server/client?http://0.0.0.0:4200 4.29 KiB {app} [built]
[…/node_modules/webpack-dev-server/client/overlay.js] 3.51 KiB {app} [built]
[…/node_modules/webpack-dev-server/client/socket.js] 1.53 KiB {app} [built]
[…/node_modules/webpack/hot/dev-server.js] 1.59 KiB {app} [built]
[./app.js] 1.73 KiB {app} [built]
+ 1665 hidden modules
Child html-webpack-plugin for “index.html”:
1 asset
Entrypoint undefined = index.html
[…/node_modules/html-webpack-plugin/lib/loader.js!./index.ejs] 437 bytes {0} [built]
[…/node_modules/html-webpack-plugin/node_modules/lodash/lodash.js] 528 KiB {0} [built]
[…/node_modules/webpack/buildin/global.js] 472 bytes {0} [built]
[…/node_modules/webpack/buildin/module.js] 497 bytes {0} [built]
:information_source: 「wdm」: Compiled successfully.
[HPM] Error occurred while trying to proxy request /graphql from 192.168.0.73:4200 to http://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /graphql from localhost:4200 to http://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /subscriptions from localhost:4200 to ws://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /subscriptions from localhost:4200 to ws://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /subscriptions from 192.168.0.73:4200 to ws://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /subscriptions from localhost:4200 to ws://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /subscriptions from localhost:4200 to ws://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /subscriptions from localhost:4200 to ws://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /subscriptions from 192.168.0.73:4200 to ws://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /subscriptions from localhost:4200 to ws://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /subscriptions from localhost:4200 to ws://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /graphql from localhost:4200 to http://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /subscriptions from 192.168.0.73:4200 to ws://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /subscriptions from localhost:4200 to ws://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /subscriptions from 192.168.0.73:4200 to ws://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /subscriptions from localhost:4200 to ws://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /subscriptions from localhost:4200 to ws://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /subscriptions from 192.168.0.73:4200 to ws://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
:information_source: 「wds」: Project is running at http://0.0.0.0:4200/
:information_source: 「wds」: webpack output is served from /
:information_source: 「wds」: Content not from webpack is served from /home/node/app
:information_source: 「wds」: 404s will fallback to /index.html
[HPM] Error occurred while trying to proxy request /graphql from localhost:4200 to http://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /graphql from localhost:4200 to http://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /graphql from 192.168.0.73:4200 to http://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /subscriptions from 192.168.0.73:4200 to ws://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
:information_source: 「wdm」: wait until bundle finished: /static/profiles/placeholder.png
:information_source: 「wdm」: wait until bundle finished: /public/logo-aperture.png
:information_source: 「wdm」: wait until bundle finished: /login
[BABEL] Note: The code generator has deoptimised the styling of /home/node/app/node_modules/xpub-edit/node_modules/@pubsweet/ui-toolkit/node_modules/lodash/lodash.js as it exceeds the max of 500KB.
:information_source: 「wdm」: Hash: aff033bc3bfc0476e8d3
Version: webpack 4.44.2
Time: 55287ms
Built at: 01/06/2021 8:17:04 AM
Asset Size Chunks Chunk Names
index.html 210 bytes [emitted]
js/bundle.js 12.8 MiB app [emitted] app
js/bundle.js.gz 2.35 MiB [emitted]
js/bundle.js.map 12.5 MiB app [emitted] [dev] app
js/bundle.js.map.gz 2.24 MiB [emitted]
logo-aperture.png 18.5 KiB [emitted]
pubsweet-rgb-small.jpg 47.5 KiB [emitted]
pubsweet-rgb-small.jpg.gz 28.3 KiB [emitted]
pubsweet.jpg 47.5 KiB [emitted]
pubsweet.jpg.gz 28.3 KiB [emitted]
Entrypoint app = js/bundle.js js/bundle.js.map
[0] multi …/node_modules/webpack-dev-server/client?http://0.0.0.0:4200 …/node_modules/webpack/hot/dev-server.js react-hot-loader/patch ./app 64 bytes {app} [built]
[…/config/journal/index.js] 375 bytes {app} [built]
[…/node_modules/history/esm/history.js] 28.1 KiB {app} [built]
[…/node_modules/react-dom/index.js] 1.33 KiB {app} [built]
[…/node_modules/react-hot-loader/dist/react-hot-loader.development.js] 98.2 KiB {app} [built]
[…/node_modules/react-hot-loader/index.js] 1.55 KiB {app} [built]
[…/node_modules/react-hot-loader/patch.js] 229 bytes {app} [built]
[…/node_modules/react/index.js] 190 bytes {app} [built]
[…/node_modules/regenerator-runtime/runtime.js] 23.8 KiB {app} [built]
[…/node_modules/strip-ansi/index.js] 161 bytes {app} [built]
[…/node_modules/webpack-dev-server/client/index.js?http://0.0.0.0:4200] …/node_modules/webpack-dev-server/client?http://0.0.0.0:4200 4.29 KiB {app} [built]
[…/node_modules/webpack-dev-server/client/overlay.js] 3.51 KiB {app} [built]
[…/node_modules/webpack-dev-server/client/socket.js] 1.53 KiB {app} [built]
[…/node_modules/webpack/hot/dev-server.js] 1.59 KiB {app} [built]
[./app.js] 1.73 KiB {app} [built]
+ 1665 hidden modules
Child html-webpack-plugin for “index.html”:
1 asset
Entrypoint undefined = index.html
[…/node_modules/html-webpack-plugin/lib/loader.js!./index.ejs] 437 bytes {0} [built]
[…/node_modules/html-webpack-plugin/node_modules/lodash/lodash.js] 528 KiB {0} [built]
[…/node_modules/webpack/buildin/global.js] 472 bytes {0} [built]
[…/node_modules/webpack/buildin/module.js] 497 bytes {0} [built]
:information_source: 「wdm」: Compiled successfully.
[HPM] Error occurred while trying to proxy request /graphql from localhost:4200 to http://server:3000 (ECONNRESET) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /subscriptions from localhost:4200 to ws://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /subscriptions from localhost:4200 to ws://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /subscriptions from 192.168.0.73:4200 to ws://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /subscriptions from localhost:4200 to ws://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /subscriptions from localhost:4200 to ws://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /subscriptions from localhost:4200 to ws://server:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
:information_source: 「wds」: Project is running at http://0.0.0.0:4200/
:information_source: 「wds」: webpack output is served from /
:information_source: 「wds」: Content not from webpack is served from /home/node/app
:information_source: 「wds」: 404s will fallback to /index.html
[BABEL] Note: The code generator has deoptimised the styling of /home/node/app/node_modules/xpub-edit/node_modules/@pubsweet/ui-toolkit/node_modules/lodash/lodash.js as it exceeds the max of 500KB.
:information_source: 「wdm」: Hash: aff033bc3bfc0476e8d3
Version: webpack 4.44.2
Time: 50823ms
Built at: 01/06/2021 8:26:02 AM
Asset Size Chunks Chunk Names
index.html 210 bytes [emitted]
js/bundle.js 12.8 MiB app [emitted] app
js/bundle.js.gz 2.35 MiB [emitted]
js/bundle.js.map 12.5 MiB app [emitted] [dev] app
js/bundle.js.map.gz 2.24 MiB [emitted]
logo-aperture.png 18.5 KiB [emitted]
pubsweet-rgb-small.jpg 47.5 KiB [emitted]
pubsweet-rgb-small.jpg.gz 28.3 KiB [emitted]
pubsweet.jpg 47.5 KiB [emitted]
pubsweet.jpg.gz 28.3 KiB [emitted]
Entrypoint app = js/bundle.js js/bundle.js.map
[0] multi …/node_modules/webpack-dev-server/client?http://0.0.0.0:4200 …/node_modules/webpack/hot/dev-server.js react-hot-loader/patch ./app 64 bytes {app} [built]
[…/config/journal/index.js] 375 bytes {app} [built]
[…/node_modules/history/esm/history.js] 28.1 KiB {app} [built]
[…/node_modules/react-dom/index.js] 1.33 KiB {app} [built]
[…/node_modules/react-hot-loader/dist/react-hot-loader.development.js] 98.2 KiB {app} [built]
[…/node_modules/react-hot-loader/index.js] 1.55 KiB {app} [built]
[…/node_modules/react-hot-loader/patch.js] 229 bytes {app} [built]
[…/node_modules/react/index.js] 190 bytes {app} [built]
[…/node_modules/regenerator-runtime/runtime.js] 23.8 KiB {app} [built]
[…/node_modules/strip-ansi/index.js] 161 bytes {app} [built]
[…/node_modules/webpack-dev-server/client/index.js?http://0.0.0.0:4200] …/node_modules/webpack-dev-server/client?http://0.0.0.0:4200 4.29 KiB {app} [built]
[…/node_modules/webpack-dev-server/client/overlay.js] 3.51 KiB {app} [built]
[…/node_modules/webpack-dev-server/client/socket.js] 1.53 KiB {app} [built]
[…/node_modules/webpack/hot/dev-server.js] 1.59 KiB {app} [built]
[./app.js] 1.73 KiB {app} [built]
+ 1665 hidden modules
Child html-webpack-plugin for “index.html”:
1 asset
Entrypoint undefined = index.html
[…/node_modules/html-webpack-plugin/lib/loader.js!./index.ejs] 437 bytes {0} [built]
[…/node_modules/html-webpack-plugin/node_modules/lodash/lodash.js] 528 KiB {0} [built]
[…/node_modules/webpack/buildin/global.js] 472 bytes {0} [built]
[…/node_modules/webpack/buildin/module.js] 497 bytes {0} [built]
:information_source: 「wdm」: Compiled successfully.

Hi,
I revert custom-environment-variables.js and changed the development.js as you said here I post my development.js.

module.exports = {
‘pubsweet-server’: {
db: {
database: ‘simplej’,
user: ‘test’,
},
protocol: ‘http’,
host: ‘localhost’,
port: 3000,
pool: { min: 0, max: 10, idleTimeoutMillis: 1000 },
secret: ‘secret-string’,
},
‘pubsweet-client’: {
protocol: ‘http’,
host: ‘192.168.0.73’,
port: 4000,
},
mailer: {
from: ‘simplej@example.com’,
path: ${__dirname}/test-mailer,
},
dbManager: {
username: ‘admin’,
password: ‘12345678’,
email: ‘admin@admin.com’,
admin: true,
},
}

after i changed i got following error