Moralis-admin-cli deploy "unknown problem"

have you got any solution?

did you try with CLI API Key and CLI API Secret?

Yes I did and went through correctly but the last step gave error:
En error occured when trying to deploy
Error: Request failed with status code 502
at createError (C:\Users\user\AppData\Roaming\npm\node_modules\moralis-admin-cli\node_modules\axios\lib\core\createError.js:16:15)
at settle (C:\Users\user\AppData\Roaming\npm\node_modules\moralis-admin-cli\node_modules\axios\lib\core\settle.js:17:12)
at IncomingMessage.handleStreamEnd (C:\Users\user\AppData\Roaming\npm\node_modules\moralis-admin-cli\node_modules\axios\lib\adapters\http.js:269:11)
at IncomingMessage.emit (node:events:402:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1343:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
.
.
.

can you try to reinstall moralis-admin-cli? I would expect it to work

OK, I will try now, should I uninstalled first?

you could install it in a separate folder too:

npm init --yes
npm install --save moralis-admin-cli

and then use it from that folder

Thank you for your replay,
Still got the same issue?
I created a new folder called (mor) in the project and install above commands (init, install) then I move public index file to the new folder then write commands:
C:\Users\user…\mor>moralis-admin-cli deploy
Specify Moralis Api Key: …
Specify Moralis Api Secret: …
What server do you want to connect to?: 0

I got similar error?
En error occured when trying to deploy
Error: Request failed with status code 502
at createError (C:\Users\user\AppData\Roaming\npm\node_modules\moralis-admin-cli\node_modules\axios\lib\core\createError.js:16:15)
at settle (C:\Users\user\AppData\Roaming\npm\node_modules\moralis-admin-cli\node_modules\axios\lib\core\settle.js:17:12)
at IncomingMessage.handleStreamEnd (C:\Users\user\AppData\Roaming\npm\node_modules\moralis-admin-cli\node_modules\axios\lib\adapters\http.js:269:11)
at IncomingMessage.emit (node:events:402:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1343:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {…

you don’t have to move index.html in that folder named mor, it should be in a folder where only index.html is

I deleted now (index.html) from mor folder but gave error:
C:\Users\user\marketplace1\marketplace1\mor>moralis-admin-cli deploy
Destination folder must contain: index.html!

you create a new folder, named index_folder for example, you put there index.html, and then you call
moralis-admin-cli deploy --folderPath index_folder

still the same error?
C:\Users\user\marketplace1\marketplace1>moralis-admin-cli deploy --folderPath public
Specify Moralis Api Key: …
Specify Moralis Api Secret: …
Following servers were found:
(0) Marketplace_
What server do you want to connect to?: 0
En error occured when trying to deploy
Error: Request failed with status code 502
at createError (C:\Users\user\AppData\Roaming\npm\node_modules\moralis-admin-cli\node_modules\axios\lib\core\createError.js:16:15)
at settle (C:\Users\user\AppData\Roaming\npm\node_modules\moralis-admin-cli\node_modules\axios\lib\core\settle.js:17:12)
at IncomingMessage.handleStreamEnd (C:\Users\user\AppData\Roaming\npm\node_modules\moralis-admin-cli\node_modules\axios\lib\adapters\http.js:269:11)
at IncomingMessage.emit (node:events:402:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1343:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {

ok, can you try to check the server then, to restart/update it

Thank you very much for your help
It deployed successfully after updating the server
but now the site is empty (only blank white page)?
I run it in local server and works fine!

you may need to upload the contents of deploy folder to see something, or maybe there is an error, you can look in browser console

Thank you for quick replay,
what do you mean by upload? where should I include the content?

Regarding to the console, is there any command that I can type to figure out or debug?

After build you have a build folder that you should deploy if is a react app, if is vanilla js you have to upload the folder where index.html is. If you already uploaded you can look in browser console for errors

Yes, I double check now and found build folder in the project but it is empty nothing there?
yes I use react
Should I run, npm build ?

Yes, I think that you should build it first

Thank you very much
it works now
What I have done is:

npm run build

then generate build folder that include index.html

then I run:

C:\Users\user…>moralis-admin-cli deploy --folderPath build
Specify Moralis Api Key: …
Specify Moralis Api Secret: …
Following servers were found:
(0) Marketplace_
What server do you want to connect to?: 0
Deployed successfully!

Now if I want my custom host name? I already have one
is Moralis has any paid service for that? and how I do that?

that custom host name is not yet supported by Moralis Server yet, we are working on implementing it