Server Migration Issues

I have setup my mongodb and redis servers. I tried to run the parse migration server and I get:

{“error”:“unauthorized”}

Does anyone know how to fix this? The docs don’t tell you what to do next…

You get that error when you try to access a url? That is the expected error of you try to access an url directly in the browser without setting the app id, at least for cloud functions.

Hey @futurehelp,

Can you let us know what steps are you stuck in for this in the migration tutorial?

Did you have you appId when interacting with the server url?

Also,

For DB IP address, you said you have trouble to find it in MongoDB?

Did you try to scour the info in the MongoDB Dashboard, they should have the info there.

I finished up to this point:

https://v1docs.moralis.io/moralis-dapp/getting-started/self-hosting-moralis-server/production-environment-setup

Here is my env file (passwords missing)

MORALIS_API_KEY=‘KEY’

PORT = 1337;

MASTER_KEY = ‘KEY’

APPLICATION_ID = ‘001’

SERVER_URL = ‘http://localhost:1337/server’

CLOUD_PATH = ‘./build/cloud/main.js’

DATABASE_URI = ‘mongodb+srv://USERNAME:[email protected]/?retryWrites=true&w=majority’

REDIS_CONNECTION_STRING = ‘redis://default:[email protected]:12293’

RATE_LIMIT_TTL = 30

RATE_LIMIT_AUTHENTICATED = 50

RATE_LIMIT_ANONYMOUS = 20

USE_STREAMS = true

STREAMS_WEBHOOK_URL = ‘/streams-webhook’

I was able to use Compass to connect to the Moralis mongoDB.

I was able to use Compass to connect to the moralis mongoDB. What is the next step to route the listening to my webhooks?

Can you give more info about what you want to do?

Yes I am trying to house all the data from my listeners on my own mongodb and allow them to call the proper webhooks.

I have completed all the docs up to the end of the data migration:
https://v1docs.moralis.io/moralis-dapp/getting-started/self-hosting-moralis-server/migrate-data

I was wondering what I needed to do next in order to use my own servers? Thanks for any help or suggestions you can give me!