Can't add domains on 5.6.1?
-
I am trying to add a new domain back into my cloudron (updated to 5.6.1) and receive the following incredibly cryptic error (yes, the HTML is in the error I see):
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height" /> <title> Cloudron App Error </title> <!-- Use static style as we can't include local stylesheets --> <style> html { height: 100%; width: 100%; padding: 0; } body { background-color: white; padding: 0; margin: 0; height: 100%; width: 100%; text-align: center; font-family: "Roboto","Helvetica Neue",Helvetica,Arial,sans-serif; font-size: 13px; line-height: 1.846; } .content { display: flex; width: 100%; height: 100%; flex-direction: column; justify-content: center; } footer { background-color: #EFEFEF; bottom: 0; width: 100%; color: #555; font-size: 12px; text-align: center; padding: 5px; z-index: 1000; position: fixed; opacity: .5; transition: all .25s; } footer:hover { opacity: 1; } a { color: #2196f3; text-decoration: none; background-color: transparent; } a:hover { color: #0a6ebd; text-decoration: underline; } </style> </head> <body> <div class="content"> <h1></h1> <h2>Something has gone wrong</h2> <p>This app is currently not responding. Try refreshing the page.</p> </div> <footer> <span class="text-muted"><a href="https://cloudron.io" target="_blank">Cloudron</a></span> </footer> </body> </html>
FYI it is a namecheap domain so I am using an API key to add it, if that helps.
-
To add to this, the logs thankfully show the stack trace
TypeError: Cannot read property 'map' of undefined at /home/yellowtent/box/src/dns/namecheap.js:84:99 at Parser.<anonymous> (/home/yellowtent/box/node_modules/xml2js/lib/parser.js:304:18) at Parser.emit (events.js:198:13) at SAXParser.onclosetag (/home/yellowtent/box/node_modules/xml2js/lib/parser.js:262:26) at emit (/home/yellowtent/box/node_modules/sax/lib/sax.js:640:35) at emitNode (/home/yellowtent/box/node_modules/sax/lib/sax.js:645:5) at closeTag (/home/yellowtent/box/node_modules/sax/lib/sax.js:905:7) at SAXParser.write (/home/yellowtent/box/node_modules/sax/lib/sax.js:1449:13) at Parser.exports.Parser.Parser.parseString (/home/yellowtent/box/node_modules/xml2js/lib/parser.js:323:31) at Parser.parseString (/home/yellowtent/box/node_modules/xml2js/lib/parser.js:5:59) [ /home/yellowtent/box/box.js:57:17 ]
-
@atrilahiji I am able to add namecheap domains just fine here. Maybe there was a temporary issue with name cheap ?
Regardless, there is a bug in Cloudron code that caused the crash and I have fixed it with https://git.cloudron.io/cloudron/box/-/commit/8c78889e88f18b628444478dd40ab2f38dc7fa36 . If you want to apply the patch the file is
/home/yellowtent/box/src/dns/namecheap.js
on the server. -
@atrilahiji I use Namecheap too, decent service but equally the Cloudflare free DNS services is pretty solid and not had any trouble with that & Cloudon. Just mentioning in case you got stuck or hadn't compared that option.