BUILD FAILED in 1m 3sError: Process completed with exit code 1.
上記で止まった。中見ると
Task :app:spotlessKotlinCheck FAILED
* What went wrong:
Execution failed for task ':app:spotlessKotlinCheck'.
The following files had format violations:
Unable to find a virtual host listening on port 80 which is currently needed for Certbot to prove to the CA that you control your domain. Please add a virtual host for port 80.. Skipping.
Challenge failed for domain dalomo.net
Error while running apachectl graceful.
Job for httpd.service invalid.
とか
IMPORTANT NOTES: - The following errors were reported by the server:
Domain: dalomo.net
Type: unauthorized
Detail: Invalid response from http://dalomo.net/.well-known/acme-challenge/W************************************
[140.227.173.32]: "<html>\r\n<head><title>502 Bad Gateway</title></head>\r\n
<body>\r\n
<center><h1>502 Bad Gateway</h1></center>\r\n
<hr><center>nginx</cente"
To fix these errors, please make sure that your domain name was entered
correctly and the DNS A/AAAA record(s) for that domain contain(s)
the right IP address.
var cls = document.getElementsByClassName('entrylist-contents-thumb');
var imgurl = "";
for (const c in cls) {
if (!cls.hasOwnProperty(c)) { continue; }
const s = cls[c].querySelector('span');
if (!s) { continue; }
imgurl = s.style.backgroundImage.replace(/url\((['"])?(.*?)\1\)/gi, '$2').split(',')[0];
console.log(imgurl);
}
$ systemctl status helloworld
● helloworld.service - helloworld
Loaded: loaded (/etc/systemd/system/helloworld.service; disabled; vendor preset: disabled)
Active: active (running) since Thu 2020-12-03 22:32:45 JST; 1min 1s ago
Main PID: 13582 (node)
CGroup: /system.slice/helloworld.service
mq13582 /usr/bin/node /home/dalomo/nodejs/helloworld.js
Dec 03 22:32:45 1scp2bi4 systemd[1]: Started helloworld.
Dec 03 22:32:46 1scp2bi4 node[13582]: Server running at http://140.227.173....0/
Hint: Some lines were ellipsized, use -l to show in full.
を、80と443をListenしてるserverの{…}内に追記してみる。そんでnginxとhelloworldのサービス起動すると、502 Bad Gateway…うーん?なんとなく、helloworld.jsのhostnameがよくなさそうな気がしたので、サーバーのIPアドレスから127.0.0.1に変えてみた。もっかい起動すると