Latest version build FAILED

I’m getting this at the end:

> FAILED
> 
> --------------------
> 
> Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake assets:precompile' failed with return #<Process::Status: pid 17401 exit 1>
> 
> Location of failure: /pups/lib/pups/exec_command.rb:112:in `spawn'
> 
> exec failed with the params {"cd"=>"$home", "hook"=>"assets_precompile", "cmd"=>["su discourse -c 'bundle exec rake assets:precompile'"]}
> 
> cd4f8b1f91b124438e195d81dd23945aa1a9046e482d940a206d49ad89ec2f15
> 
> ** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one.
> 
> ./discourse-doctor may help diagnose the problem.

....I ran discourse-doctor, took the recommendations to remove plugins, which I did and it still won't build.

> ==================== END REBUILD LOG ====================
> Failed to rebuild app.
> 
> Checking your domain name . . .
> 
> Connection to community.intelligentfanatics.com succeeded.
> You should probably remove any non-standard plugins and rebuild.
> Attempting to restart existing container. . . 
> 
> starting up existing container
> + /usr/bin/docker start app
> Error response from daemon: driver failed programming external connectivity on endpoint app (e67212572fc2b6f0124abf12c833718a3356ddaadafed98ce2022b5a596f2537): Error starting userland proxy: listen tcp 0.0.0.0:443: bind: address already in use
> Error: failed to start containers: app
> Failed to restart the container.
> 
> 
> ==================== PLUGINS ====================
>           - git clone https://github.com/discourse/docker_manager.git
>           - git clone https://github.com/davidtaylorhq/discourse-whos-online.git
>           - git clone https://github.com/discourse/discourse-sitemap.git
>           - git clone https://github.com/discourse/discourse-push-notifications.git
>           - git clone https://github.com/procourse/procourse-teaser.git
> ##          - git clone https://github.com/angusmcleod/discourse-locations.git
> ##          - git clone https://github.com/angusmcleod/discourse-layouts.git
>           - git clone https://github.com/discourse/discourse-footnote
> ##          - git clone https://github.com/tshenry/discourse-versatile-banner
> 
> WARNING:
> You have what appear to be non-official plugins.
> If you are having trouble, you should disable them and try rebuilding again.
> 
> See https://github.com/discourse/discourse/blob/master/lib/plugin/metadata.rb for the official list.
> 
> ========================================
> Discourse version at community.intelligentfanatics.com: NOT FOUND
> Discourse version at localhost: NOT FOUND
> 
> 
> ==================== MEMORY INFORMATION ====================
> RAM (MB): 4039
> 
>               total        used        free      shared  buff/cache   available
> Mem:           3944         197        2434          43        1313        3425
> Swap:          4095           0        4095
> 
> ==================== DISK SPACE CHECK ====================
> ---------- OS Disk Space ----------
> Filesystem      Size  Used Avail Use% Mounted on
> /dev/vda1        78G   67G   12G  86% /
> 
> ==================== DISK INFORMATION ====================
> Disk /dev/vda: 80 GiB, 85899345920 bytes, 167772160 sectors
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disklabel type: gpt
> Disk identifier: 0E34F2CF-E596-4CC5-A048-72442450EF39
> 
> Device      Start       End   Sectors  Size Type
> /dev/vda1  227328 167772126 167544799 79.9G Linux filesystem
> /dev/vda14   2048     10239      8192    4M BIOS boot
> /dev/vda15  10240    227327    217088  106M Microsoft basic data
> 
> Partition table entries are not in disk order.
> 
> ==================== END DISK INFORMATION ====================
> 
> ==================== MAIL TEST ====================
> For a robust test, get an address from http://www.mail-tester.com/
> Or just send a test message to yourself.

I updated docker on Ubuntu and rebuilt again, and now I’m seeing this. Please help, site is down:

Done compressing all JS files : 88.98 secs

rake aborted!

SocketError: Failed to open TCP connection to geolite.maxmind.com:443 (getaddrinfo: Name or service not known)

/var/www/discourse/lib/final_destination.rb:406:in `safe_session'

/var/www/discourse/lib/final_destination.rb:357:in `safe_get'

/var/www/discourse/lib/final_destination.rb:129:in `get'

/var/www/discourse/lib/file_helper.rb:47:in `download'

/var/www/discourse/lib/discourse_ip_info.rb:30:in `mmdb_download'

/var/www/discourse/lib/tasks/assets.rake:228:in `block (3 levels) in <top (required)>'

/var/www/discourse/lib/tasks/assets.rake:227:in `each'

/var/www/discourse/lib/tasks/assets.rake:227:in `block (2 levels) in <top (required)>'

Caused by:

SocketError: getaddrinfo: Name or service not known

/var/www/discourse/lib/final_destination.rb:406:in `safe_session'

/var/www/discourse/lib/final_destination.rb:357:in `safe_get'

/var/www/discourse/lib/final_destination.rb:129:in `get'

/var/www/discourse/lib/file_helper.rb:47:in `download'

/var/www/discourse/lib/discourse_ip_info.rb:30:in `mmdb_download'

/var/www/discourse/lib/tasks/assets.rake:228:in `block (3 levels) in <top (required)>'

/var/www/discourse/lib/tasks/assets.rake:227:in `each'

/var/www/discourse/lib/tasks/assets.rake:227:in `block (2 levels) in <top (required)>'

Tasks: TOP => assets:precompile

(See full trace by running task with --trace)

I, [2020-01-30T12:09:12.310959 #1] INFO -- : Downloading MaxMindDB...

Compressing Javascript and Generating Source Maps

I, [2020-01-30T12:09:12.311607 #1] INFO -- : Terminating async processes

I, [2020-01-30T12:09:12.311675 #1] INFO -- : Sending INT to HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/10/bin/postmaster -D /etc/postgresql/10/main pid: 49

2020-01-30 12:09:12.311 UTC [49] LOG: received fast shutdown request

I, [2020-01-30T12:09:12.312218 #1] INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 166

166:signal-handler (1580386152) Received SIGTERM scheduling shutdown...

2020-01-30 12:09:12.313 UTC [49] LOG: aborting any active transactions

2020-01-30 12:09:12.315 UTC [49] LOG: worker process: logical replication launcher (PID 58) exited with exit code 1

2020-01-30 12:09:12.319 UTC [53] LOG: shutting down

2020-01-30 12:09:12.338 UTC [49] LOG: database system is shut down

166:M 30 Jan 2020 12:09:12.380 # User requested shutdown...

166:M 30 Jan 2020 12:09:12.381 * Saving the final RDB snapshot before exiting.

166:M 30 Jan 2020 12:09:12.488 * DB saved on disk

166:M 30 Jan 2020 12:09:12.488 # Redis is now ready to exit, bye bye...

FAILED

--------------------

Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake assets:precompile' failed with return #<Process::Status: pid 17370 exit 1>

Location of failure: /pups/lib/pups/exec_command.rb:112:in `spawn'

exec failed with the params {"cd"=>"$home", "hook"=>"assets_precompile", "cmd"=>["su discourse -c 'bundle exec rake assets:precompile'"]}

3eab46c79efb74664914511284ddb6c248fd657ff3a39c4bde249ddc767cd249

** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one.

Maxmind now requires registration. There is an option to defer this for a month or so.

3 Likes

Are you on latest? I’ve done several installs and did an upgrade less than twelve hours ago.

This didn’t work. Got the MaxMind key and added the env: variable to app.yml still get this:
rake aborted!

SocketError: Failed to open TCP connection to geolite.maxmind.com:443 (getaddrinfo: Name or service not known)

/var/www/discourse/lib/final_destination.rb:406:in `safe_session'

/var/www/discourse/lib/final_destination.rb:357:in `safe_get'

/var/www/discourse/lib/final_destination.rb:129:in `get'

/var/www/discourse/lib/file_helper.rb:47:in `download'

/var/www/discourse/lib/discourse_ip_info.rb:30:in `mmdb_download'

/var/www/discourse/lib/tasks/assets.rake:228:in `block (3 levels) in <top (required)>'

/var/www/discourse/lib/tasks/assets.rake:227:in `each'

/var/www/discourse/lib/tasks/assets.rake:227:in `block (2 levels) in <top (required)>'

Caused by:

SocketError: getaddrinfo: Name or service not known

/var/www/discourse/lib/final_destination.rb:406:in `safe_session'

/var/www/discourse/lib/final_destination.rb:357:in `safe_get'

/var/www/discourse/lib/final_destination.rb:129:in `get'

/var/www/discourse/lib/file_helper.rb:47:in `download'

/var/www/discourse/lib/discourse_ip_info.rb:30:in `mmdb_download'

/var/www/discourse/lib/tasks/assets.rake:228:in `block (3 levels) in <top (required)>'

/var/www/discourse/lib/tasks/assets.rake:227:in `each'

/var/www/discourse/lib/tasks/assets.rake:227:in `block (2 levels) in <top (required)>'

Tasks: TOP => assets:precompile

(See full trace by running task with --trace)

I, [2020-01-30T12:32:16.157133 #1] INFO -- : Downloading MaxMindDB...

Compressing Javascript and Generating Source Maps

I, [2020-01-30T12:32:16.157661 #1] INFO -- : Terminating async processes

I, [2020-01-30T12:32:16.158004 #1] INFO -- : Sending INT to HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/10/bin/postmaster -D /etc/postgresql/10/main pid: 50

I, [2020-01-30T12:32:16.158137 #1] INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 167

2020-01-30 12:32:16.158 UTC [50] LOG: received fast shutdown request

167:signal-handler (1580387536) Received SIGTERM scheduling shutdown...

2020-01-30 12:32:16.159 UTC [50] LOG: aborting any active transactions

2020-01-30 12:32:16.162 UTC [50] LOG: worker process: logical replication launcher (PID 59) exited with exit code 1

2020-01-30 12:32:16.166 UTC [54] LOG: shutting down

2020-01-30 12:32:16.189 UTC [50] LOG: database system is shut down

167:M 30 Jan 2020 12:32:16.258 # User requested shutdown...

167:M 30 Jan 2020 12:32:16.258 * Saving the final RDB snapshot before exiting.

167:M 30 Jan 2020 12:32:16.326 * DB saved on disk

167:M 30 Jan 2020 12:32:16.326 # Redis is now ready to exit, bye bye...

FAILED

--------------------

Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake assets:precompile' failed with return #<Process::Status: pid 17409 exit 1>

Location of failure: /pups/lib/pups/exec_command.rb:112:in `spawn'

exec failed with the params {"cd"=>"$home", "hook"=>"assets_precompile", "cmd"=>["su discourse -c 'bundle exec rake assets:precompile'"]}

2e6688e01632ba4fc76141a9d33a60cf7833eec413cd34ee54a77e7abccc3e80

** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one.

./discourse-doctor may help diagnose the problem.

I was on the previous version (can’t remember 2.4?) and it said critical updates for 2.5, so I ran it in the web admin. It failed. When I tried again it said everything was updated, but it still showed there were updates and I was on the previous version. So I SSH into the server and run “./launcher rebuild app” and it keeps failing. I even removed all of the 3rd party plugins from app.yml and did what @Remah recommended, still won’t build/launch

This implies that you have a dns/networking problem or maxmind is broken/down.

This fixed it:

DISCOURSE_REFRESH_MAXMIND_DB_DURING_PRECOMPILE_DAYS: 100

Well I spoke too soon, it compiled and the server is running now, but all I see is this now:
Screen Shot 2020-01-30 at 1.54.54 PM

Could the force upgrade of docker have caused another issue?

I had “stable” in the app.yml I commented that out, so hopefully the “tests passed” version runs better. Compile worked and site is back online. Looks like I’m on version 2.4.0.beta10 now… I was trying to stay on Stable, but stable is not so stable :frowning:

1 Like

Is that the mini profiler? AFAIK that’s only part of dev installs not production sites.

It appears for the admin account account on my production site.

4 Likes