MCPcopy
hub / github.com/caprover/caprover / printError

Function printError

src/utils/CaptainInstaller.ts:117–153  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

115 }
116
117 function printError() {
118 console.log(' ')
119 console.log(' ')
120 console.log(
121 'Are you trying to run CapRover on a local machine or a machine without a public IP?'
122 )
123 console.log(
124 'In that case, you need to add this to your installation command:'
125 )
126 console.log(" -e MAIN_NODE_IP_ADDRESS='127.0.0.1' ")
127 console.log(' ')
128 console.log(' ')
129 console.log(' ')
130 console.log(
131 'Otherwise, if you are running CapRover on a VPS with public IP:'
132 )
133 console.log(
134 `Your firewall may have been blocking an in-use port: ${portToTest}`
135 )
136 console.log(
137 'A simple solution on Ubuntu systems is to run "ufw disable" (security risk)'
138 )
139 console.log('Or [recommended] just allowing necessary ports:')
140 console.log(CaptainConstants.disableFirewallCommand)
141 console.log(' ')
142 console.log(' ')
143 console.log('See docs for more details on how to fix firewall issues')
144 console.log(' ')
145 console.log(
146 'Finally, if you are an advanced user, and you want to bypass this check (NOT RECOMMENDED),'
147 )
148 console.log(
149 "you can append the docker command with an addition flag: -e BY_PASS_PROXY_CHECK='TRUE'"
150 )
151 console.log(' ')
152 console.log(' ')
153 }
154
155 return new Promise<void>(function (resolve, reject) {
156 let finished = false

Callers 1

checkPortOrThrowFunction · 0.85

Calls 1

logMethod · 0.80

Tested by

no test coverage detected