Mak encountered issues installing Discourse on DreamCompute (Ubuntu 18.04) following the official guide. The installation froze after two lines, and subsequent attempts to rerun ./discourse-setup failed with “No such file or directory” and a non-empty /var/discourse directory. pfaffman suggested rebooting and running dpkg --configure -a, then deleting /var/discourse before recloning. Mak tried these steps but hit a dpkg frontend locked error. After creating a new var/discourse folder, installation succeeded after dpkg --configure -a worked. However, accessing via domain (testing.iapct.org) failed with a Chrome SSL error: NET::ERR_CERT_COMMON_NAME_INVALID, likely due to HSTS and DNS issues. Running ./discourse-doctor produced file-not-found errors. Ultimately, Mak reported the issue resolved after DNS server fixes, confirming the site now works.
dpkg: error: dpkg frontend is locked by another process
Instead of using the same folder, I create a “var/discourse” and install discourse. It ran into the same error but “dpkg --configure -a” works this time and discourse is successfully installed.
It connects fine using the IP address, but not with the domain. Below is the message when trying to connect with my domain. Is it the problem from the server side?
# Your connection is not private
Attackers might be trying to steal your information from **testing.iapct.org** (for example, passwords, messages or credit cards). [Learn more](chrome-error://chromewebdata/#)
NET::ERR_CERT_COMMON_NAME_INVALID
Help improve Safe Browsing by sending some [system information and page content](chrome-error://chromewebdata/#) to Google. [Privacy Policy](chrome-error://chromewebdata/#)
ReloadHide advanced
testing.iapct.org normally uses encryption to protect your information. When Google Chrome tried to connect to testing.iapct.org this time, the website sent back unusual and incorrect credentials. This may happen when an attacker is trying to pretend to be testing.iapct.org, or a Wi-Fi sign-in screen has interrupted the connection. Your information is still secure because Google Chrome stopped the connection before any data was exchanged.
You cannot visit testing.iapct.org right now because the website uses HSTS. Network errors and attacks are usually temporary, so this page will probably work later.
I ran ./discourse-doctor. This is the error I got at the end.
cp: cannot create regular file 'shared/standalone/log/var-log/NzM2OWE5M2Q2ZWY3MjJm.txt': No such file or directory
cp: cannot stat '/var/log/NzM2OWE5M2Q2ZWY3MjJm.txt': No such file or directory
The output of this program may be available at http://testing.iapct.org/NzM2OWE5M2Q2ZWY3MjJm.txt
You should inspect that file carefully before sharing the URL.
You can examine the output of this script with
LESS=-Ri less /tmp/discourse-debug.txt