Volto: The backend server of your website is not answering

Guide with 3. Bootstrapping A Volto Project — Plone Training 2021 documentation
I install Plone5.2.4 and bin/build with the file:
https://github.com/plone/volto/blob/master/api/buildout.cfg
Activated add-ons

  • collective.folderishtypes: plone.app.contenttypes types with folderish behavior

This provides Plones default types – (collective.folderishtypes.dx )

  • collective.folderishtypes: default

collective.folderishtypes default profile: Installs the folderish content types in Plone. – (collective.folderishtypes 3.0.0)

  • kitconcept.volto site (kitconcept.volto)

Installs the kitconcept.volto add-on. – (kitconcept.volto 2.1.3)

  • plone.restapi

RESTful hypermedia API for Plone. – (plone.restapi 7.2.0)
Also I have build my-volto-app and run it success.
root@mail:/opt/my-volto-app# RAZZLE_API_PATH=http://207.148.69.121:8890/Plone yarn start:prod
yarn run v1.22.5
$ NODE_ENV=production node build/server.js
API server (API_PATH) is set to: http://207.148.69.121:8890/Plone
:performing_arts: Volto started at http://localhost:3000
but when I visit the page: https://mall.buyerclub.cn/207.148.69.121:3000
the web page shows something like:
The backend server of your website is not anwering, we apologize for the inconvenience. Please try to re-load the page and try again. If the problem persists please contact the site administrators.

Thank you.

Anyone could help me what need to set in backend ?

Thanks
Alex

You need to make the backend available under:

https://mall.buyerclub.cn/api

and then point the RAZZLE_API_PATH to "https://mall.buyerclub.cn/api".

Hi Tisto

Thanks for you so kind reply

As a newbies, I don't know how can make the backend available under

https://mall.buyerclub.cn/api

root@mail:/opt/my-volto-app# RAZZLE_API_PATH=http://207.148.69.121:8890/Plone yarn start:prod
yarn run v1.22.5
$ NODE_ENV=production node build/server.js
API server (API_PATH) is set to: http://207.148.69.121:8890/Plone
Volto started at http://localhost:3000 !

My Plone web site is http://207.148.69.121:8890/Plone domain name: www.kyholdings.ml
volto site: http://207.148.69.121:3000 domain name is mall.buyerclub.cn

Does " API server (API_PATH) is set to: http://207.148.69.121:8890/Plone " mean Plone web site already available in API_PATH?

  1. What's the right location of the volto project?

Here is the location of the my-volto-app: /opt/my-volto-app

Also the Plone operated on /opt/shop/zinstance

Maybe the my-volto-app should be moved to the folder /opt/shop/zinstance/src?

How can I keep the volto running even I closed the SSH terminal.

Yours Sincerely
Alex Zhang

REF volto/README.md at main · plone/volto · GitHub
I really don't understand what's the mean:

if you have experience with Plone and you have all the dependencies installed on your system, you can use the supplied buildout in the api folder by issuing the command:

make build-backend

In which place run the command: make build-backend?
inPlone zinstance folder, I can run make update, but when I run make build-backend
root@mail:/opt/shop/zinstance# make build-backend
make: *** No rule to make target 'build-backend'. Stop.

According to your first post you have a running Plone instance and you have Volto installed. Now you need to plug them together.

This is one way (replace Apache with NGINX if you want) : Cors Error even after changing buildout file : Volto - #10 by ksuess

For mimicing a deployment you build and then start in production mode:

Run a production build:

PORT=3000 RAZZLE_API_PATH=http://voltodeployment.example.com/api/ yarn build

Start Volto in production mode:

yarn start:prod

For development you do not build, you just start Volto:

PORT=3000 RAZZLE_API_PATH=http://voltodeployment.example.com/api/ yarn start

remark:

*http://voltodeployment.example.com/api/ * is your Plone backend with REST API and CORS configured.