# Locations Plugin 🌍

**URL:** <https://meta.discourse.org/t/locations-plugin/69742>\
**Category:** Plugin\
**Tags:** paid-support\
**Created:** [September 10, 2017, 10:36am UTC](https://meta.discourse.org/t/locations-plugin/69742 "2017-09-10T10:36:41Z")\
**Posts on this page:** 1\
**Showing post:** 498

<div class="post-metadata">

**Author:** ![k4rtik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/k4rtik/32/119508_2.png) [@k4rtik](https://meta.discourse.org/u/k4rtik)\
**Post date:** [April 25, 2020, 8:45pm UTC](https://meta.discourse.org/t/locations-plugin/69742/498 "2020-04-25T20:45:26Z")

</div>

I cannot start the Discourse app because of the locations plugin currently. Attaching log below, it works if I comment out locations in `app.yml`. Can someone prioritize this and fix it?

Also, is there a way to only upgrade to tests-passed version of the plugin (if there is such a thing), like how the main discourse app does? So that we do not run into such issues in future.

> **Log**
>
> ```
> 5: from /var/www/discourse/plugins/discourse-layouts/plugin.rb:49:in `block in activate!'
> 4: from /var/www/discourse/lib/discourse_event.rb:13:in `trigger'
> 3: from /usr/local/lib/ruby/2.6.0/set.rb:338:in `each'
> 2: from /usr/local/lib/ruby/2.6.0/set.rb:338:in `each_key'
> 1: from /var/www/discourse/lib/discourse_event.rb:14:in `block in trigger'
> /var/www/discourse/plugins/discourse-locations/plugin.rb:234:in `block in activate!': uninitialized constant DiscourseLayouts::WidgetHelper
> Did you mean? DiscourseLayouts::WidgetSerializer (NameError)
> 
> **INCOMPATIBLE PLUGIN**
> 
> You are unable to build Discourse due to errors in the plugin at
> /var/www/discourse/plugins/discourse-locations
> 
> Please try removing this plugin and rebuilding again!
> I, [2020-04-25T20:32:06.399307 #1] INFO -- : gem install icalendar -v 2.4.1 -i /var/www/discourse/plugins/discourse-events/gems/2.6.5 --no-document --ignore-dependencies --no-user-install
> HEADS UP! iCalendar 2.0 is not backwards-compatible with 1.x. Please see the README for the new syntax
> 
> HEADS UP! icalendar 2.2.0 switches to non-strict parsing as default. Please see the README if you
> rely on strict parsing for information on how to enable it.
> 
> ActiveSupport is required for TimeWithZone support, but not required for general use.
> Successfully installed icalendar-2.4.1
> 1 gem installed
> gem install geocoder -v 1.4.4 -i /var/www/discourse/plugins/discourse-locations/gems/2.6.5 --no-document --ignore-dependencies --no-user-install
> Successfully installed geocoder-1.4.4
> 1 gem installed
> 
> I, [2020-04-25T20:32:06.400580 #1] INFO -- : Terminating async processes
> I, [2020-04-25T20:32:06.400773 #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-04-25T20:32:06.400979 #1] INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 167
> 167:signal-handler (1587846726) Received SIGTERM scheduling shutdown...
> 2020-04-25 20:32:06.401 UTC [50] LOG: received fast shutdown request
> 2020-04-25 20:32:06.403 UTC [50] LOG: aborting any active transactions
> 2020-04-25 20:32:06.406 UTC [50] LOG: worker process: logical replication launcher (PID 59) exited with exit code 1
> 167:M 25 Apr 2020 20:32:06.406 # User requested shutdown...
> 167:M 25 Apr 2020 20:32:06.406 * Saving the final RDB snapshot before exiting.
> 2020-04-25 20:32:06.409 UTC [54] LOG: shutting down
> 2020-04-25 20:32:06.439 UTC [50] LOG: database system is shut down
> 167:M 25 Apr 2020 20:32:06.502 * DB saved on disk
> 167:M 25 Apr 2020 20:32:06.502 # Redis is now ready to exit, bye bye...
> 
> FAILED
> --------------------
> Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate' failed with return #<Process::Status: pid 13098 exit 1>
> Location of failure: /pups/lib/pups/exec_command.rb:112:in `spawn'
> exec failed with the params {"cd"=>"$home", "hook"=>"db_migrate", "cmd"=>["su discourse -c 'bundle exec rake db:migrate'"]}
> b5a02d7f9df6b6a9dc160e269de30eef49bb0aeaf5dcb1b712bab5e6edad4030
> **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.
> root@discuss:/var/discourse#
> 
> ```

---

_[View the full topic](https://meta.discourse.org/t/locations-plugin/69742)._
