-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create new app via API call: what is "detached"? plus other questions... #55
Comments
detached means that the HTTP call returns as soon as CapRover engines receives the http call. Not passing Clicking on Update and Save calls this method: All of the updates you want to perform are in this method. |
According to this:
In my case the default And when creating an app, I'm trying to pass the whole config via a json file with
This creates the app OK, with persistent data checked, but it doesn't add the env vars and ports. What am I doing wrong? |
Two separate things here: 1- 2- Regarding the api call: you cannot register the app and update the configs in one go. You have to first register the app. Wait a big and then update your config through calling |
Try using a different root domain. Also try experimenting to see if the issue is happening when you setup your server manually as well - or it's only happening when you're using the config file. |
I now see why letsencrypt was setting up a certificate... I am of course passing an email via
I think that helped, but having done more attempts I'm not so sure, because I seem to get an error when I run Remaining questions: (1) after doing (2) usually I enable https on all apps that I create, but there doesn't seem to be a parameter for this in the update path? There is a (3) is there any way of making this work for the same root domain again, even soon after the previous attempt? I am finding that if I try to use the same root domain again (or maybe even the same main domain but different sub-domain e.g. So, when I delete the host server and spin up a new one, now when I run
And yes, I did give it plenty of time before running this, despite the Another time I saw:
But when I run the very same
So in my script I just run the Any idea why? Something to do with having set up ssl the previous time messing up the next time, even for e.g. |
What is the error message? And what are the steps to repro the isse?
There is Regarding your 3rd issue:
Is there any change you're recycling your old IP and you have a caching layer in the middle? |
Re (1):
Actually it seems to be an info message and not an error message:
So actually it seems that the call completes, so I can probably just ignore the message. Re (2): thanks, I'll have a look at those. Re (3):
It seems to work the first time for a new domain (rather than subdomain), but for subsequent server setups (even with a different subdomain name) the issue happens again.
Hmm, it's possible I suppose. Well it definitely is the case that the cloud server provider keeps re-allocating the same IP address to me, each time I spin up a new server (at least for today). DNS is handled by cloudflare, but the DNS entry is set to "DNS only" (not "Proxied") so I don't think there is any caching going on as such. But I suppose that re-using the IP for the new server might still cause its own issues. I would understand if it required a certain length of time to propagate, but the issue is solved by running |
Your setup is a bit complex, but basically what you're describing could be reproducible by simply wiping the CapRover server and reinstalling CapRover. This is the steps that are equivalent to what you're doing:
Can you confirm if the issue is reproducible via running through these steps. If so, let's create a new issue with these exact repro steps and I'll look into it |
After "remove and re-install CapRover", before running |
I'm trying to create a new app via the CLI (or rather in a script), and see that I need to use a custom api call, as explained here and here.
When looking here for the right parameters to pass, I think it is the
registerNewApp()
method that is relevant. But what does thedetached
query string part mean?What I have so far is:
Is the above correct so far, and does the path need to include
?detached=1
?The app I am trying to create has persistent data... I'm specifying that already above via the
data
argument.But the app also needs:
Websocket Support
enabledHow do I set those up via the
caprover api
call?The text was updated successfully, but these errors were encountered: