Quantcast
Channel: Discourse Meta - Latest topics
Viewing all 60721 articles
Browse latest View live

A way to block individual posts from appearing

$
0
0

@DeViLzzz wrote:

I would like to see a way to block individual posts from appearing. It is a feature that is very welcome on Facebook and other places for others and me and I hope I will see it soon at other sites I go to that use Discourse for message boards.

Posts: 2

Participants: 2

Read full topic


Stop discobot from sending email

$
0
0

@hnaseri wrote:

How can I stop discobot from sending greeting emails? I don't want to disable greetings completely. But I also don't want the greeting message to be send to the user via email.

Posts: 10

Participants: 2

Read full topic

Theme-name color does not respect current theme

$
0
0

@ehemsley wrote:

Hi folks,

First of all, thanks for Discourse, it's an amazing piece of software.

I've been setting up a new theme using the new theming system. It works great except for one minor detail - the status bar on Android uses the default theme header background color - it should probably use the color from the currently enabled theme, right?

Thanks!

Posts: 1

Participants: 1

Read full topic

Completely Out of Disk Space

$
0
0

@Ericsworld wrote:

My forum is 1 month old, ~15000 posts... I tried checking it tonight and received a 502 error. I then reloaded my Droplet and tried a ./launcher rebuild and was met with a

"785ef3cb0f4bbe86b21afde2620a966a63e03427e89484b0946a94d1bb34-init: no space left on device.
See '/usr/bin/docker run --help'.
Your Docker installation is not working correctly"

So I did a df -h and saw that my disk was completely full:

Filesystem Size Used Avail Use% Mounted on
udev 981M 0 981M 0% /dev
tmpfs 201M 3.1M 197M 2% /run
/dev/vda1 39G 39G 0 100% /
tmpfs 1001M 0 1001M 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 1001M 0 1001M 0% /sys/fs/cgroup
tmpfs 201M 0 201M 0% /run/user/0

How could this have happened?

I tried apt-get autoclean and apt-get autoremove which didn't help. Also did ./launcher clean and that didn't help. Also tried sudo du -xh -d 1

My disk space is still 39GB/39GB :frowning:

Posts: 14

Participants: 4

Read full topic

Google Cache / Google Crawling

$
0
0

@carlhendy wrote:

Hi all,

Long time lurker and fan of Discourse. Yes, a huge fan so before I go down the SEO path I want to be clear this is not a criticism more of a suggestion. I have searched for this topic but could not find it discuss previously.

I noticed that when Google caches a thread that only parts of the thread are cached with that being the main content.

If you look at the cache of this URL: https://community.coinbase.com/t/how-can-i-get-a-profit-and-loss-statement-showing-my-gains-over-the-past-2-years/9484

Google Cache: http://webcache.googleusercontent.com/search?q=cache%3Ahttps%3A%2F%2Fcommunity.coinbase.com%2Ft%2Fhow-can-i-get-a-profit-and-loss-statement-showing-my-gains-over-the-past-2-years%2F9484&rlz=1C5CHFA_enAU736AU736&oq=cache%3Ahttps%3A%2F%2Fcommunity.coinbase.com%2Ft%2Fhow-can-i-get-a-profit-and-loss-statement-showing-my-gains-over-the-past-2-years%2F9484&aqs=chrome..69i57j69i58.1103j0j4&sourceid=chrome&ie=UTF-8

Google Cache Text Version: webcache.googleusercontent.com/search?q=cache:https://community.coinbase.com/t/how-can-i-get-a-profit-and-loss-statement-showing-my-gains-over-the-past-2-years/9484&num=1&rlz=1C5CHFA_enAU736AU736&strip=1&vwsrc=0

You will noticed that Google is not seeing the "Suggested Topics" or rendering all other links / content on the page.

Would it be possible to get the [Suggested Topics] to be rendered also as this will allow Google and other bots to follow those links and crawl / discover related / new pages for indexing?

In this example: sitepoint.com/community/categories

Google cache: webcache.googleusercontent.com/search?q=cache%3Ahttps%3A%2F%2Fwww.sitepoint.com%2Fcommunity%2Fcategories&rlz=1C5CHFA_enAU736AU736&oq=cache%3Ahttps%3A%2F%2Fwww.sitepoint.com%2Fcommunity%2Fcategories&aqs=chrome..69i57j69i58.963j0j4&sourceid=chrome&ie=UTF-8

We can see that Google is not caching the [Latest] sidebar links which have all the new threads linked to. As this page would be an authorative landing page there would be much value for a website to gain from allowing those [Latest] links to be crawlable to search engine bots.

The basic of web crawling discovery and PageRank scoring are built on search engines (Google) to be able to find links on pages and crawl those links to new pages. This crawling also allows Google to create an "internal PageRank score" which helps pages perform better in SEO, improving visbiolity and traffic.

I have no knowlege as to how much work this would be to allow these other parts of the template to be cached but would beneficial to every website running Discourse.

Any questions please let me know.

Thanks
Carl

p.s had to delete some WWW references as new user only allowed to post 2 links

Posts: 1

Participants: 1

Read full topic

Get it to consume less resouces

$
0
0

@warokada wrote:

I expect to have very few visitors at my forum in the beginning. How can I setup discourse so that it take fewer resources? Are there tutorials or is there something like that in the documentation? I haven't found anything.

Posts: 3

Participants: 2

Read full topic

Trouble while upgrading docker

$
0
0

@yoavweiss wrote:

While upgrading the docker image as indicated by the upgrade process in admin, I tried to follow the process outlines in https://meta.discourse.org/t/how-do-i-update-my-docker-image-to-latest/23325 but hit the following error while running ./launcher rebuild app:

I, [2017-06-02T08:36:23.596063 #14]  INFO -- : > apt-get remove -y postgresql-9.5 postgresql-client-9.5 postgresql-contrib-9.5
E: Sub-process /usr/bin/dpkg returned an error code (1)
I, [2017-06-02T08:36:26.039191 #14]  INFO -- : Reading package lists...
Building dependency tree...
Reading state information...
The following packages will be REMOVED:
  postgresql-9.5 postgresql-client-9.5 postgresql-contrib-9.5
0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
After this operation, 26.1 MB disk space will be freed.
(Reading database ... 34469 files and directories currently installed.)
Removing postgresql-contrib-9.5 (9.5.7-1.pgdg16.04+1) ...
update-alternatives: warning: forcing reinstallation of alternative /usr/share/postgresql/9.5/man/man1/postmaster.1.gz because link group postmaster.1.gz is broken
update-alternatives: error: error creating symbolic link '/usr/share/man/man1/postmaster.1.gz.dpkg-tmp': No such file or directory
dpkg: error processing package postgresql-contrib-9.5 (--remove):
 subprocess installed pre-removal script returned error exit status 2
dpkg: postgresql-9.5: dependency problems, but removing anyway as you requested:
 postgresql-contrib-9.5 depends on postgresql-9.5 (= 9.5.7-1.pgdg16.04+1).

Removing postgresql-9.5 (9.5.7-1.pgdg16.04+1) ...
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of stop.
Removing postgresql-client-9.5 (9.5.7-1.pgdg16.04+1) ...
Processing triggers for postgresql-common (182.pgdg16.04+1) ...
Building PostgreSQL dictionaries from installed myspell/hunspell packages...
Removing obsolete dictionary files:
Errors were encountered while processing:
 postgresql-contrib-9.5



FAILED
--------------------
Pups::ExecError: apt-get remove -y postgresql-9.5 postgresql-client-9.5 postgresql-contrib-9.5 failed with return #<Process::Status: pid 17 exit 100>
Location of failure: /pups/lib/pups/exec_command.rb:108:in `spawn'
exec failed with the params "apt-get remove -y postgresql-9.5 postgresql-client-9.5 postgresql-contrib-9.5"
6f0310973389d86ad7fba289ff678374967077c35de34060c4359bdb6cacfa6c
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one

Is that a known issue? Could you point me to instructions for handling such cases?

Thanks in advance :slight_smile:
Yoav

Posts: 5

Participants: 3

Read full topic

Theming / Skinning Discourse to show Topics in a Responsive "Newsy" way

$
0
0

@shiva wrote:

Is it possible to theme / skin Discourse to show each Post similar to this?

This is a bootstrap theme. You can see it live here.

I am thinking of using Discourse to host a media heavy - think pics and video posts - sports news site.

Is something like this possible without wrestling with the code too much? Are there any designers for hire here who could do something like this?

Posts: 2

Participants: 2

Read full topic


Discourse-akismet-hipchat plugin issue with 1.8.0

$
0
0

@Alex_Harrington wrote:

When upgrading from 1.7.10 to 1.8.0, I get the following error if I leave the discourse-akismet-hipchat plugin enabled.

Removing it from app.yml allows the upgrade to complete as expected.

I, [2017-06-02T09:07:40.831947 #13]  INFO -- : > cd /var/www/discourse && su discourse -c 'bundle exec rake
db:migrate'
rake aborted!
Gem::MissingSpecError: Could not find 'json' (~> 1.8) among 253 total gem(s)
Checked in 'GEM_PATH=/var/www/discourse/vendor/bundle/ruby/2.4.0', execute `gem env` for more information

Complete log:
https://pastebin.com/WSN8TneZ

Posts: 5

Participants: 2

Read full topic

Send email to all members

Forum not being indexed by Google

$
0
0

@Ahsan_Parwez wrote:

Hi all,

I have launched my forum a week ago, the forum has over 11 new threads and only the homepage has indexed by Google. What could be missing?

I have check robots.txt and have also set google search console.

Thanks

  • Ahsan

Posts: 3

Participants: 2

Read full topic

FAILED Error after update

$
0
0

@11145 wrote:

After you try to update, you receive this error. How do I return the discourse?

root@root:~# cd /var/discourse
root@root:/var/discourse# git pull
remote: Counting objects: 25, done.
remote: Compressing objects: 100% (14/14), done.
remote: Total 25 (delta 15), reused 21 (delta 11), pack-reused 0
Unpacking objects: 100% (25/25), done.
From https://github.com/discourse/discourse_docker
   cf18ecc..e7696e0  master     -> origin/master
   02e0cf8..44fbae4  auto       -> origin/auto
Updating cf18ecc..e7696e0
Fast-forward
 image/auto_build.rb             | 45 +++++++++++++++++++++++++++++++++++++++++
 image/base/Dockerfile           | 20 +++++++++++++++---
 image/base/install-imagemagick  |  2 +-
 image/discourse/Dockerfile      | 18 -----------------
 image/discourse_dev/Dockerfile  | 10 ++++-----
 image/discourse_test/Dockerfile |  4 ++--
 launcher                        |  2 +-
 7 files changed, 70 insertions(+), 31 deletions(-)
 create mode 100644 image/auto_build.rb
 delete mode 100644 image/discourse/Dockerfile
root@root:/var/discourse# ./launcher rebuild app

WARNING: We are about to start downloading the Discourse base image
This process may take anywhere between a few minutes to an hour, depending on your network speed

Please be patient

Unable to find image 'discourse/base:2.0.20170531' locally
2.0.20170531: Pulling from discourse/base
62ede6aff2e8: Pulling fs layer
fc19d60a83f1: Pulling fs layer
de413bb911fd: Pulling fs layer
2879a7ad3144: Pulling fs layer
668604fde02e: Pulling fs layer
a33b406cce2c: Pulling fs layer
2879a7ad3144: Waiting
668604fde02e: Waiting
a33b406cce2c: Waiting
de413bb911fd: Verifying Checksum
de413bb911fd: Download complete
fc19d60a83f1: Verifying Checksum
fc19d60a83f1: Download complete
668604fde02e: Verifying Checksum
668604fde02e: Download complete
2879a7ad3144: Verifying Checksum
2879a7ad3144: Download complete
62ede6aff2e8: Verifying Checksum
62ede6aff2e8: Download complete
62ede6aff2e8: Pull complete
fc19d60a83f1: Pull complete
de413bb911fd: Pull complete
2879a7ad3144: Pull complete
668604fde02e: Pull complete
a33b406cce2c: Verifying Checksum
a33b406cce2c: Download complete
a33b406cce2c: Pull complete
Digest: sha256:c822d41adc6c48f73734aab5d79250f5f2afc0024e9ebaab955acb7175c7187a
Status: Downloaded newer image for discourse/base:2.0.20170531
Ensuring launcher is up to date
Fetching origin
Launcher is up-to-date
Stopping old container
+ /usr/bin/docker stop -t 10 app
app
cd /pups && git pull && /pups/bin/pups --stdin
Already up-to-date.
I, [2017-06-02T14:14:40.416247 #13]  INFO -- : Loading --stdin
I, [2017-06-02T14:14:40.427866 #13]  INFO -- : > mkdir -p /shared/postgres_run
I, [2017-06-02T14:14:40.433615 #13]  INFO -- :
I, [2017-06-02T14:14:40.434794 #13]  INFO -- : > chown postgres:postgres /shared/postgres_run
I, [2017-06-02T14:14:40.439479 #13]  INFO -- :
I, [2017-06-02T14:14:40.440463 #13]  INFO -- : > chmod 775 /shared/postgres_run
I, [2017-06-02T14:14:40.448115 #13]  INFO -- :
I, [2017-06-02T14:14:40.449277 #13]  INFO -- : > rm -fr /var/run/postgresql
I, [2017-06-02T14:14:40.453595 #13]  INFO -- :
I, [2017-06-02T14:14:40.454581 #13]  INFO -- : > ln -s /shared/postgres_run /var/run/postgresql
I, [2017-06-02T14:14:40.457042 #13]  INFO -- :
I, [2017-06-02T14:14:40.457609 #13]  INFO -- : > socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 && echo postgres already running stop container ; exit 1
2017/06/02 14:14:40 socat[21] E connect(6, AF=1 "/shared/postgres_run/.s.PGSQL.5432", 36): No such file or directory
I, [2017-06-02T14:14:40.466807 #13]  INFO -- :
I, [2017-06-02T14:14:40.467579 #13]  INFO -- : > rm -fr /shared/postgres_run/.s*
I, [2017-06-02T14:14:40.471326 #13]  INFO -- :
I, [2017-06-02T14:14:40.472127 #13]  INFO -- : > rm -fr /shared/postgres_run/*.pid
I, [2017-06-02T14:14:40.475349 #13]  INFO -- :
I, [2017-06-02T14:14:40.476187 #13]  INFO -- : > mkdir -p /shared/postgres_run/9.5-main.pg_stat_tmp
I, [2017-06-02T14:14:40.478785 #13]  INFO -- :
I, [2017-06-02T14:14:40.479485 #13]  INFO -- : > chown postgres:postgres /shared/postgres_run/9.5-main.pg_stat_tmp
I, [2017-06-02T14:14:40.482064 #13]  INFO -- :
I, [2017-06-02T14:14:40.486848 #13]  INFO -- : File > /etc/service/postgres/run  chmod: +x
I, [2017-06-02T14:14:40.492333 #13]  INFO -- : File > /etc/runit/3.d/99-postgres  chmod: +x
I, [2017-06-02T14:14:40.496764 #13]  INFO -- : File > /root/upgrade_postgres  chmod: +x
I, [2017-06-02T14:14:40.497763 #13]  INFO -- : > chown -R root /var/lib/postgresql/9.5/main
I, [2017-06-02T14:14:40.803708 #13]  INFO -- :
I, [2017-06-02T14:14:40.804109 #13]  INFO -- : > [ ! -e /shared/postgres_data ] && install -d -m 0755 -o postgres -g postgres /shared/postgres_data && sudo -E -u postgres /usr/lib/postgresql/9.5/bin/initdb -D /shared/postgres_data || exit 0
I, [2017-06-02T14:14:40.807044 #13]  INFO -- :
I, [2017-06-02T14:14:40.807826 #13]  INFO -- : > chown -R postgres:postgres /shared/postgres_data
I, [2017-06-02T14:14:40.859662 #13]  INFO -- :
I, [2017-06-02T14:14:40.860649 #13]  INFO -- : > chown -R postgres:postgres /var/run/postgresql
I, [2017-06-02T14:14:40.863529 #13]  INFO -- :
I, [2017-06-02T14:14:40.864191 #13]  INFO -- : > /root/upgrade_postgres
I, [2017-06-02T14:14:40.875399 #13]  INFO -- :
I, [2017-06-02T14:14:40.876499 #13]  INFO -- : > rm /root/upgrade_postgres
I, [2017-06-02T14:14:40.879501 #13]  INFO -- :
I, [2017-06-02T14:14:40.880855 #13]  INFO -- : Replacing data_directory = '/var/lib/postgresql/9.5/main' with data_directory = '/shared/postgres_data' in /etc/postgresql/9.5/main/postgresql.conf
I, [2017-06-02T14:14:40.881787 #13]  INFO -- : Replacing (?-mix:#?listen_addresses *=.*) with listen_addresses = '*' in /etc/postgresql/9.5/main/postgresql.conf
I, [2017-06-02T14:14:40.884178 #13]  INFO -- : Replacing (?-mix:#?synchronous_commit *=.*) with synchronous_commit = $db_synchronous_commit in /etc/postgresql/9.5/main/postgresql.conf
I, [2017-06-02T14:14:40.892068 #13]  INFO -- : Replacing (?-mix:#?shared_buffers *=.*) with shared_buffers = $db_shared_buffers in /etc/postgresql/9.5/main/postgresql.conf
I, [2017-06-02T14:14:40.903854 #13]  INFO -- : Replacing (?-mix:#?work_mem *=.*) with work_mem = $db_work_mem in /etc/postgresql/9.5/main/postgresql.conf
I, [2017-06-02T14:14:40.905011 #13]  INFO -- : Replacing (?-mix:#?default_text_search_config *=.*) with default_text_search_config = '$db_default_text_search_config' in /etc/postgresql/9.5/main/postgresql.conf
I, [2017-06-02T14:14:40.918852 #13]  INFO -- : > install -d -m 0755 -o postgres -g postgres /shared/postgres_backup
I, [2017-06-02T14:14:40.923922 #13]  INFO -- :
I, [2017-06-02T14:14:40.924851 #13]  INFO -- : Replacing (?-mix:#?max_wal_senders *=.*) with max_wal_senders = $db_max_wal_senders in /etc/postgresql/9.5/main/postgresql.conf
I, [2017-06-02T14:14:40.925595 #13]  INFO -- : Replacing (?-mix:#?wal_level *=.*) with wal_level = $db_wal_level in /etc/postgresql/9.5/main/postgresql.conf
I, [2017-06-02T14:14:40.930936 #13]  INFO -- : Replacing (?-mix:#?checkpoint_segments *=.*) with checkpoint_segments = $db_checkpoint_segments in /etc/postgresql/9.5/main/postgresql.conf
I, [2017-06-02T14:14:40.940961 #13]  INFO -- : Replacing (?-mix:#?logging_collector *=.*) with logging_collector = $db_logging_collector in /etc/postgresql/9.5/main/postgresql.conf
I, [2017-06-02T14:14:40.942188 #13]  INFO -- : Replacing (?-mix:#?log_min_duration_statement *=.*) with log_min_duration_statement = $db_log_min_duration_statement in /etc/postgresql/9.5/main/postgresql.conf
I, [2017-06-02T14:14:40.948957 #13]  INFO -- : Replacing (?-mix:^#local +replication +postgres +peer$) with local replication postgres  peer in /etc/postgresql/9.5/main/pg_hba.conf
I, [2017-06-02T14:14:40.949968 #13]  INFO -- : Replacing (?-mix:^host.*all.*all.*127.*$) with host all all 0.0.0.0/0 md5 in /etc/postgresql/9.5/main/pg_hba.conf
I, [2017-06-02T14:14:40.950913 #13]  INFO -- : > HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/9.5/bin/postmaster -D /etc/postgresql/9.5/main
I, [2017-06-02T14:14:40.952832 #13]  INFO -- : > sleep 5
2017-06-02 14:14:41.085 UTC [45] LOG:  database system was shut down at 2017-06-02 14:14:26 UTC
2017-06-02 14:14:41.110 UTC [45] LOG:  MultiXact member wraparound protections are now enabled
2017-06-02 14:14:41.115 UTC [42] LOG:  database system is ready to accept connections
2017-06-02 14:14:41.116 UTC [49] LOG:  autovacuum launcher started
I, [2017-06-02T14:14:45.958077 #13]  INFO -- :
I, [2017-06-02T14:14:45.960145 #13]  INFO -- : > su postgres -c 'createdb discourse' || true
2017-06-02 14:14:46.181 UTC [54] postgres@postgres ERROR:  database "discourse" already exists
2017-06-02 14:14:46.181 UTC [54] postgres@postgres STATEMENT:  CREATE DATABASE discourse;
createdb: database creation failed: ERROR:  database "discourse" already exists
I, [2017-06-02T14:14:46.184976 #13]  INFO -- :
I, [2017-06-02T14:14:46.185808 #13]  INFO -- : > su postgres -c 'psql discourse -c "create user discourse;"' || true
2017-06-02 14:14:46.302 UTC [65] postgres@discourse ERROR:  role "discourse" already exists
2017-06-02 14:14:46.302 UTC [65] postgres@discourse STATEMENT:  create user discourse;
ERROR:  role "discourse" already exists
I, [2017-06-02T14:14:46.305288 #13]  INFO -- :
I, [2017-06-02T14:14:46.305953 #13]  INFO -- : > su postgres -c 'psql discourse -c "grant all privileges on database discourse to discourse;"' || true
I, [2017-06-02T14:14:46.423211 #13]  INFO -- : GRANT

I, [2017-06-02T14:14:46.424216 #13]  INFO -- : > su postgres -c 'psql discourse -c "alter schema public owner to discourse;"'
I, [2017-06-02T14:14:46.525455 #13]  INFO -- : ALTER SCHEMA

I, [2017-06-02T14:14:46.526534 #13]  INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists hstore;"'
NOTICE:  extension "hstore" already exists, skipping
I, [2017-06-02T14:14:46.727490 #13]  INFO -- : CREATE EXTENSION

I, [2017-06-02T14:14:46.728518 #13]  INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists pg_trgm;"'
NOTICE:  extension "pg_trgm" already exists, skipping
I, [2017-06-02T14:14:46.838546 #13]  INFO -- : CREATE EXTENSION

I, [2017-06-02T14:14:46.839755 #13]  INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists hstore;"'
NOTICE:  extension "hstore" already exists, skipping
I, [2017-06-02T14:14:46.940772 #13]  INFO -- : CREATE EXTENSION

I, [2017-06-02T14:14:46.941489 #13]  INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists pg_trgm;"'
NOTICE:  extension "pg_trgm" already exists, skipping
I, [2017-06-02T14:14:47.033720 #13]  INFO -- : CREATE EXTENSION

I, [2017-06-02T14:14:47.034467 #13]  INFO -- : > sudo -u postgres psql discourse
I, [2017-06-02T14:14:47.038455 #13]  INFO -- : update pg_database set encoding = pg_char_to_encoding('UTF8') where datname = 'discourse' AND encoding = pg_char_to_encoding('SQL_ASCII');

I, [2017-06-02T14:14:47.188819 #13]  INFO -- : File > /var/lib/postgresql/take-database-backup  chmod: +x
I, [2017-06-02T14:14:47.194192 #13]  INFO -- : File > /var/spool/cron/crontabs/postgres  chmod:
I, [2017-06-02T14:14:47.195297 #13]  INFO -- : > echo postgres installed!
I, [2017-06-02T14:14:47.198582 #13]  INFO -- : postgres installed!

I, [2017-06-02T14:14:47.206047 #13]  INFO -- : File > /etc/service/redis/run  chmod: +x
I, [2017-06-02T14:14:47.211732 #13]  INFO -- : File > /etc/runit/3.d/10-redis  chmod: +x
I, [2017-06-02T14:14:47.212855 #13]  INFO -- : Replacing daemonize yes with  in /etc/redis/redis.conf
I, [2017-06-02T14:14:47.213839 #13]  INFO -- : Replacing (?-mix:^pidfile.*$) with  in /etc/redis/redis.conf
I, [2017-06-02T14:14:47.215004 #13]  INFO -- : > install -d -m 0755 -o redis -g redis /shared/redis_data
I, [2017-06-02T14:14:47.218558 #13]  INFO -- :
I, [2017-06-02T14:14:47.219611 #13]  INFO -- : Replacing (?-mix:^logfile.*$) with logfile "" in /etc/redis/redis.conf
I, [2017-06-02T14:14:47.225897 #13]  INFO -- : Replacing (?-mix:^bind .*$) with  in /etc/redis/redis.conf
I, [2017-06-02T14:14:47.236317 #13]  INFO -- : Replacing (?-mix:^dir .*$) with dir /shared/redis_data in /etc/redis/redis.conf
I, [2017-06-02T14:14:47.247245 #13]  INFO -- : > echo redis installed
I, [2017-06-02T14:14:47.251367 #13]  INFO -- : redis installed

I, [2017-06-02T14:14:47.252498 #13]  INFO -- : > cat /etc/redis/redis.conf | grep logfile
I, [2017-06-02T14:14:47.258980 #13]  INFO -- : logfile ""

I, [2017-06-02T14:14:47.260181 #13]  INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2017-06-02T14:14:47.262589 #13]  INFO -- : > sleep 10
                _._
           _.-``__ ''-._
      _.-``    `.  `_.  ''-._           Redis 3.0.6 (00000000/0) 64 bit
  .-`` .-```.  ```\/    _.,_ ''-._
 (    '      ,       .-`  | `,    )     Running in standalone mode
 |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379
 |    `-._   `._    /     _.-'    |     PID: 155
  `-._    `-._  `-./  _.-'    _.-'
 |`-._`-._    `-.__.-'    _.-'_.-'|
 |    `-._`-._        _.-'_.-'    |           http://redis.io
  `-._    `-._`-.__.-'_.-'    _.-'
 |`-._`-._    `-.__.-'    _.-'_.-'|
 |    `-._`-._        _.-'_.-'    |
  `-._    `-._`-.__.-'_.-'    _.-'
      `-._    `-.__.-'    _.-'
          `-._        _.-'
              `-.__.-'

155:M 02 Jun 14:14:47.301 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
155:M 02 Jun 14:14:47.301 # Server started, Redis version 3.0.6
155:M 02 Jun 14:14:47.301 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
155:M 02 Jun 14:14:47.302 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
155:M 02 Jun 14:14:47.492 * DB loaded from disk: 0.190 seconds
155:M 02 Jun 14:14:47.492 * The server is now ready to accept connections on port 6379
I, [2017-06-02T14:14:57.268838 #13]  INFO -- :
I, [2017-06-02T14:14:57.269943 #13]  INFO -- : Replacing <policymap> with <policymap>
  <policy domain="coder" rights="none" pattern="EPHEMERAL" />
  <policy domain="coder" rights="none" pattern="URL" />
  <policy domain="coder" rights="none" pattern="HTTPS" />
  <policy domain="coder" rights="none" pattern="MVG" />
  <policy domain="coder" rights="none" pattern="MSL" />
  <policy domain="coder" rights="none" pattern="TEXT" />
  <policy domain="coder" rights="none" pattern="SHOW" />
  <policy domain="coder" rights="none" pattern="WIN" />
  <policy domain="coder" rights="none" pattern="PLT" />
 in /usr/local/etc/ImageMagick-6/policy.xml
I, [2017-06-02T14:14:57.271232 #13]  INFO -- : > /usr/local/bin/ruby -e 'if ENV["DISCOURSE_SMTP_ADDRESS"] == "smtp.example.com"; puts "Aborting! Mail is not configured!"; exit 1; end'
I, [2017-06-02T14:14:57.350554 #13]  INFO -- :
I, [2017-06-02T14:14:57.351338 #13]  INFO -- : > /usr/local/bin/ruby -e 'if ENV["DISCOURSE_HOSTNAME"] == "discourse.example.com"; puts "Aborting! Domain is not configured!"; exit 1; end'
I, [2017-06-02T14:14:57.436687 #13]  INFO -- :
I, [2017-06-02T14:14:57.437527 #13]  INFO -- : > chown -R discourse /home/discourse
I, [2017-06-02T14:14:57.442034 #13]  INFO -- :
I, [2017-06-02T14:14:57.442962 #13]  INFO -- : > rm -f /etc/cron.d/anacron
I, [2017-06-02T14:14:57.445181 #13]  INFO -- :
I, [2017-06-02T14:14:57.447928 #13]  INFO -- : File > /etc/cron.d/anacron  chmod:
I, [2017-06-02T14:14:57.452176 #13]  INFO -- : File > /etc/runit/1.d/copy-env  chmod: +x
I, [2017-06-02T14:14:57.456553 #13]  INFO -- : File > /etc/runit/1.d/enable-brotli  chmod: +x
I, [2017-06-02T14:14:57.460552 #13]  INFO -- : File > /etc/service/unicorn/run  chmod: +x
I, [2017-06-02T14:14:57.464545 #13]  INFO -- : File > /etc/service/nginx/run  chmod: +x
I, [2017-06-02T14:14:57.468762 #13]  INFO -- : File > /etc/runit/3.d/01-nginx  chmod: +x
I, [2017-06-02T14:14:57.473191 #13]  INFO -- : File > /etc/runit/3.d/02-unicorn  chmod: +x
I, [2017-06-02T14:14:57.473983 #13]  INFO -- : Replacing # postgres with sv start postgres || exit 1 in /etc/service/unicorn/run
I, [2017-06-02T14:14:57.474729 #13]  INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2017-06-02T14:14:57.477060 #13]  INFO -- : > cd /var/www/discourse && git reset --hard
181:M 02 Jun 14:14:57.487 # Creating Server TCP listening socket *:6379: bind: Address already in use
Checking out files: 100% (11214/11214), done.
I, [2017-06-02T14:15:01.727871 #13]  INFO -- : HEAD is now at 82ed514 Version bump to v1.9.0.beta1

I, [2017-06-02T14:15:01.735526 #13]  INFO -- : > cd /var/www/discourse && git clean -f
I, [2017-06-02T14:15:01.860534 #13]  INFO -- :
I, [2017-06-02T14:15:01.861501 #13]  INFO -- : > cd /var/www/discourse && git remote set-branches --add origin master
I, [2017-06-02T14:15:01.867137 #13]  INFO -- :
I, [2017-06-02T14:15:01.867617 #13]  INFO -- : > cd /var/www/discourse && git pull
From https://github.com/discourse/discourse
   82ed514..ceedec8  master     -> origin/master
   7ae8733..0eaa6de  beta       -> origin/beta
   d6ec9b3..d46f98a  stable     -> origin/stable
   82ed514..af3dc4e  tests-passed -> origin/tests-passed
I, [2017-06-02T14:15:07.130160 #13]  INFO -- : Updating 82ed514..ceedec8
Fast-forward
 Gemfile.lock                                       |   4 +-
 .../components/group-membership-button.js.es6      |  16 +++
 .../controllers/preferences/categories.js.es6      |   5 +
 .../components/group-membership-button.hbs         |   4 +-
 .../discourse/templates/preferences/categories.hbs |   4 +
 app/controllers/users_email_controller.rb          |   1 -
 app/models/group.rb                                |   5 +
 app/models/post_mover.rb                           |  27 +++--
 app/models/user.rb                                 |   8 ++
 config/locales/client.en.yml                       |   6 +-
 config/locales/server.en.yml                       |   2 +-
 config/site_settings.yml                           |   1 +
 lib/current_user.rb                                |   1 +
 lib/discourse_event.rb                             |   2 +-
 lib/search.rb                                      |   4 +-
 lib/upload_creator.rb                              |  12 ++-
 lib/wizard/builder.rb                              |   2 +-
 .../config/locales/server.de.yml                   |  38 +++----
 .../config/locales/server.en.yml                   |  40 ++++----
 .../config/locales/server.es.yml                   |  38 +++----
 .../config/locales/server.fi.yml                   |  40 ++++----
 .../config/locales/server.id.yml                   |  40 ++++----
 .../config/locales/server.it.yml                   |  38 +++----
 .../config/locales/server.zh_CN.yml                |  36 +++----
 .../advanced_user_narrative.rb                     |  54 +++++-----
 .../lib/discourse_narrative_bot/base.rb            |  15 ++-
 .../certificate_generator.rb                       |   2 +-
 .../discourse_narrative_bot/new_user_narrative.rb  |  85 +++++++++-------
 plugins/discourse-narrative-bot/plugin.rb          |  30 ++++--
 .../advanced_user_narrative_spec.rb                |  65 ++++++------
 .../new_user_narrative_spec.rb                     | 113 ++++++++++++---------
 .../spec/integration/discobot_welcome_post_spec.rb |  67 ++++++++++++
 plugins/discourse-narrative-bot/spec/user_spec.rb  |  24 +----
 spec/components/post_creator_spec.rb               |  23 +++--
 spec/controllers/invites_controller_spec.rb        |  19 +++-
 spec/controllers/session_controller_spec.rb        |  17 +++-
 spec/controllers/user_badges_controller_spec.rb    |  15 ++-
 spec/controllers/users_controller_spec.rb          |  47 ++++++---
 spec/controllers/users_email_controller_spec.rb    |   8 +-
 spec/integration/omniauth_callbacks_spec.rb        |   8 +-
 spec/models/group_spec.rb                          |  17 ++++
 spec/models/post_mover_spec.rb                     |  43 ++++++--
 spec/models/user_spec.rb                           |  12 ++-
 spec/support/discourse_event_helper.rb             |  18 ++++
 44 files changed, 664 insertions(+), 392 deletions(-)
 create mode 100644 plugins/discourse-narrative-bot/spec/integration/discobot_welcome_post_spec.rb
 create mode 100644 spec/support/discourse_event_helper.rb

I, [2017-06-02T14:15:07.131452 #13]  INFO -- : > cd /var/www/discourse && git fetch origin tests-passed
From https://github.com/discourse/discourse
 * branch            tests-passed -> FETCH_HEAD
I, [2017-06-02T14:15:09.015488 #13]  INFO -- :
I, [2017-06-02T14:15:09.016574 #13]  INFO -- : > cd /var/www/discourse && git checkout tests-passed
Switched to a new branch 'tests-passed'
I, [2017-06-02T14:15:09.349961 #13]  INFO -- : Branch tests-passed set up to track remote branch tests-passed from origin.

I, [2017-06-02T14:15:09.350352 #13]  INFO -- : > cd /var/www/discourse && mkdir -p tmp/pids
I, [2017-06-02T14:15:09.405226 #13]  INFO -- :
I, [2017-06-02T14:15:09.405715 #13]  INFO -- : > cd /var/www/discourse && mkdir -p tmp/sockets
I, [2017-06-02T14:15:09.413120 #13]  INFO -- :
I, [2017-06-02T14:15:09.414391 #13]  INFO -- : > cd /var/www/discourse && touch tmp/.gitkeep
I, [2017-06-02T14:15:09.479237 #13]  INFO -- :
I, [2017-06-02T14:15:09.480039 #13]  INFO -- : > cd /var/www/discourse && mkdir -p                    /shared/log/rails
I, [2017-06-02T14:15:09.483498 #13]  INFO -- :
I, [2017-06-02T14:15:09.483729 #13]  INFO -- : > cd /var/www/discourse && bash -c "touch -a           /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr}.log"
I, [2017-06-02T14:15:09.488899 #13]  INFO -- :
I, [2017-06-02T14:15:09.489162 #13]  INFO -- : > cd /var/www/discourse && bash -c "ln    -s           /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr}.log /var/www/discourse/log"
I, [2017-06-02T14:15:09.494726 #13]  INFO -- :
I, [2017-06-02T14:15:09.495163 #13]  INFO -- : > cd /var/www/discourse && bash -c "mkdir -p           /shared/{uploads,backups}"
I, [2017-06-02T14:15:09.501572 #13]  INFO -- :
I, [2017-06-02T14:15:09.502630 #13]  INFO -- : > cd /var/www/discourse && bash -c "ln    -s           /shared/{uploads,backups} /var/www/discourse/public"
I, [2017-06-02T14:15:09.510414 #13]  INFO -- :
I, [2017-06-02T14:15:09.510928 #13]  INFO -- : > cd /var/www/discourse && chown -R discourse:www-data /shared/log/rails /shared/uploads /shared/backups
I, [2017-06-02T14:15:09.881967 #13]  INFO -- :
I, [2017-06-02T14:15:09.882924 #13]  INFO -- : Replacing # redis with sv start redis || exit 1 in /etc/service/unicorn/run
I, [2017-06-02T14:15:09.887624 #13]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/docker_manager.git
Cloning into 'docker_manager'...
I, [2017-06-02T14:15:12.116956 #13]  INFO -- :
I, [2017-06-02T14:15:12.117376 #13]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/onebox.git
Cloning into 'onebox'...
I, [2017-06-02T14:15:14.669870 #13]  INFO -- :
I, [2017-06-02T14:15:14.670751 #13]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-solved.git
Cloning into 'discourse-solved'...
I, [2017-06-02T14:15:16.444680 #13]  INFO -- :
I, [2017-06-02T14:15:16.445101 #13]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/wp-discourse.git
Cloning into 'wp-discourse'...
I, [2017-06-02T14:15:18.958166 #13]  INFO -- :
I, [2017-06-02T14:15:18.958670 #13]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-push-notifications.git
Cloning into 'discourse-push-notifications'...
I, [2017-06-02T14:15:20.189656 #13]  INFO -- :
I, [2017-06-02T14:15:20.190218 #13]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-adplugin.git
Cloning into 'discourse-adplugin'...
I, [2017-06-02T14:15:21.857422 #13]  INFO -- :
I, [2017-06-02T14:15:21.858260 #13]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-translator.git
Cloning into 'discourse-translator'...
I, [2017-06-02T14:15:24.388156 #13]  INFO -- :
I, [2017-06-02T14:15:24.388832 #13]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-cakeday.git
Cloning into 'discourse-cakeday'...
I, [2017-06-02T14:15:26.051035 #13]  INFO -- :
I, [2017-06-02T14:15:26.051732 #13]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-spoiler-alert.git
Cloning into 'discourse-spoiler-alert'...
I, [2017-06-02T14:15:27.346818 #13]  INFO -- :
I, [2017-06-02T14:15:27.348074 #13]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-canned-replies.git
Cloning into 'discourse-canned-replies'...
I, [2017-06-02T14:15:29.323406 #13]  INFO -- :
I, [2017-06-02T14:15:29.324879 #13]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-presence.git
Cloning into 'discourse-presence'...
I, [2017-06-02T14:15:30.646615 #13]  INFO -- :
I, [2017-06-02T14:15:30.647196 #13]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/stereobooster/discourse-vk-login.git
Cloning into 'discourse-vk-login'...
I, [2017-06-02T14:15:31.872773 #13]  INFO -- :
I, [2017-06-02T14:15:31.873896 #13]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discoursehosting/discourse-sitemap.git
Cloning into 'discourse-sitemap'...
I, [2017-06-02T14:15:33.361465 #13]  INFO -- :
I, [2017-06-02T14:15:33.361828 #13]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/xfalcox/discourse-backups-to-dropbox.git
Cloning into 'discourse-backups-to-dropbox'...
I, [2017-06-02T14:15:34.723804 #13]  INFO -- :
I, [2017-06-02T14:15:34.724292 #13]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/LeoMcA/discourse-rss-poster.git
Cloning into 'discourse-rss-poster'...
I, [2017-06-02T14:15:35.945939 #13]  INFO -- :
I, [2017-06-02T14:15:35.946792 #13]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/iunctis/discourse-formatting-toolbar.git
Cloning into 'discourse-formatting-toolbar'...
I, [2017-06-02T14:15:37.583309 #13]  INFO -- :
I, [2017-06-02T14:15:37.583698 #13]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/davidtaylorhq/discourse-whos-online.git
Cloning into 'discourse-whos-online'...
I, [2017-06-02T14:15:38.944463 #13]  INFO -- :
I, [2017-06-02T14:15:38.944914 #13]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-assign.git
Cloning into 'discourse-assign'...
I, [2017-06-02T14:15:40.299655 #13]  INFO -- :
I, [2017-06-02T14:15:40.300451 #13]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/jgujgu/discourse-guest-gate.git
Cloning into 'discourse-guest-gate'...
I, [2017-06-02T14:15:41.760040 #13]  INFO -- :
I, [2017-06-02T14:15:41.760421 #13]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-feature-voting.git
Cloning into 'discourse-feature-voting'...
I, [2017-06-02T14:15:43.260507 #13]  INFO -- :
I, [2017-06-02T14:15:43.261190 #13]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/danskdynamit/discourse-hot-topics.git
Cloning into 'discourse-hot-topics'...
I, [2017-06-02T14:15:44.645226 #13]  INFO -- :
I, [2017-06-02T14:15:44.645738 #13]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/mozilla/discourse-expose-emails-in.git
Cloning into 'discourse-expose-emails-in'...
I, [2017-06-02T14:15:45.873503 #13]  INFO -- :
I, [2017-06-02T14:15:45.874023 #13]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/davidtaylorhq/discourse-telegram-notifications.git
Cloning into 'discourse-telegram-notifications'...
I, [2017-06-02T14:15:47.112390 #13]  INFO -- :
I, [2017-06-02T14:15:47.113456 #13]  INFO -- : > cp /var/www/discourse/config/nginx.sample.conf /etc/nginx/conf.d/discourse.conf
I, [2017-06-02T14:15:47.117816 #13]  INFO -- :
I, [2017-06-02T14:15:47.118478 #13]  INFO -- : > rm /etc/nginx/sites-enabled/default
I, [2017-06-02T14:15:47.120689 #13]  INFO -- :
I, [2017-06-02T14:15:47.121188 #13]  INFO -- : > mkdir -p /var/nginx/cache
I, [2017-06-02T14:15:47.123512 #13]  INFO -- :
I, [2017-06-02T14:15:47.124272 #13]  INFO -- : Replacing pid /run/nginx.pid; with daemon off; in /etc/nginx/nginx.conf
I, [2017-06-02T14:15:47.125073 #13]  INFO -- : Replacing (?m-ix:upstream[^\}]+\}) with upstream discourse { server 127.0.0.1:3000; } in /etc/nginx/conf.d/discourse.conf
I, [2017-06-02T14:15:47.125801 #13]  INFO -- : Replacing (?-mix:server_name.+$) with server_name _ ; in /etc/nginx/conf.d/discourse.conf
I, [2017-06-02T14:15:47.132028 #13]  INFO -- : Replacing (?-mix:client_max_body_size.+$) with client_max_body_size $upload_size ; in /etc/nginx/conf.d/discourse.conf
I, [2017-06-02T14:15:47.140068 #13]  INFO -- : > echo "done configuring web"
I, [2017-06-02T14:15:47.142690 #13]  INFO -- : done configuring web

I, [2017-06-02T14:15:47.143385 #13]  INFO -- : > cd /var/www/discourse && gem update bundler
I, [2017-06-02T14:15:54.969388 #13]  INFO -- : Updating installed gems
Updating bundler
Successfully installed bundler-1.15.1
Gems updated: bundler

I, [2017-06-02T14:15:54.969906 #13]  INFO -- : > cd /var/www/discourse && chown -R discourse /var/www/discourse
I, [2017-06-02T14:16:13.957106 #13]  INFO -- :
I, [2017-06-02T14:16:13.958899 #13]  INFO -- : > cd /var/www/discourse && su discourse -c 'bundle install --deployment --verbose --without test --without development'
I, [2017-06-02T14:16:14.470381 #13]  INFO -- : Running `bundle install --deployment --verbose --without "development"` with bundler 1.15.1
There was an error while trying to write to `/var/www/discourse/.bundle/config`.
There was insufficient space remaining on the device.

I, [2017-06-02T14:16:14.471573 #13]  INFO -- : Terminating async processes
I, [2017-06-02T14:16:14.471764 #13]  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/9.5/bin/postmaster -D /etc/postgresql/9.5/main pid: 42
I, [2017-06-02T14:16:14.472376 #13]  INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 155
155:signal-handler (1496412974) Received SIGTERM scheduling shutdown...
2017-06-02 14:16:14.472 UTC [42] LOG:  received fast shutdown request
2017-06-02 14:16:14.474 UTC [42] LOG:  aborting any active transactions
2017-06-02 14:16:14.474 UTC [49] LOG:  autovacuum launcher shutting down
2017-06-02 14:16:14.478 UTC [46] LOG:  shutting down
155:M 02 Jun 14:16:14.549 # User requested shutdown...
155:M 02 Jun 14:16:14.549 * Saving the final RDB snapshot before exiting.
155:M 02 Jun 14:16:14.551 # Write error saving DB on disk: No space left on device
155:M 02 Jun 14:16:14.552 # Error trying to save the DB, can't exit.
155:M 02 Jun 14:16:14.552 # SIGTERM received but errors trying to shut down the server, check the logs for more information
2017-06-02 14:16:14.604 UTC [46] LOG:  database system is shut down
2017-06-02 14:16:14.607 UTC [50] LOG:  could not write temporary statistics file "pg_stat/db_16384.tmp": No space left on device
2017-06-02 14:16:14.607 UTC [50] LOG:  could not close temporary statistics file "pg_stat/db_1.tmp": No space left on device
2017-06-02 14:16:14.608 UTC [50] LOG:  could not close temporary statistics file "pg_stat/db_12413.tmp": No space left on device
2017-06-02 14:16:14.608 UTC [50] LOG:  could not close temporary statistics file "pg_stat/db_0.tmp": No space left on device
2017-06-02 14:16:14.609 UTC [50] LOG:  could not close temporary statistics file "pg_stat/global.tmp": No space left on device
I, [2017-06-02T14:16:24.480054 #13]  INFO -- : exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid:155 did not terminate cleanly, forcing termination!


FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle install --deployment --verbose --without test --without development' failed with return #<Process::Status: pid 446 exit 31>
Location of failure: /pups/lib/pups/exec_command.rb:108:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"bundle_exec", "cmd"=>["su discourse -c 'bundle install --deployment --verbose --without test --without development'", "su discourse -c 'bundle exec rake db:migrate'", "su discourse -c 'bundle exec rake assets:precompile'"]}
4c921cd3a8d012120c29917150f867105d2a133db6152a22248a9d6445de2550
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one
root@root:/var/discourse#

Posts: 3

Participants: 2

Read full topic

Show indicator when a default text content element has been updated?

$
0
0

@tophee wrote:

This reminds me of a suggestion I've had on my mibd for a while: if you customize a copy under Admin - > Customize - > Text Content and then the default copy gets changed via a discourse upgrade, you will never know about this. In some cases this doesn't matter but in others it does, as in the example above. In some cases, such an upgrade might even break the rendering of the copy entirely because a variable has been added or taken away.

So how about some sort of notification or indicator for copies that have been updated? This may even be useful for copies that you have not customized, just as a "heads up, this has been changed, you might want to take a look".

Posts: 1

Participants: 1

Read full topic

Can't select thumbs up or down in discobot's poll example

$
0
0

@totte wrote:

This happens both here on meta.discourse.org and on my own Discourse installation. Nothing seems to happen when either :thumbsup: or :thumbsdown: are clicked, nor does anything happen when I click "Show results" in @discobot's poll. To reproduce, initiate the advanced user tutorial and follow through 'til you get the reply from the poll step. I tried this in both Firefox 53.0.3 (64-bit) and Chromium version 58.0.3029.110 Built on Ubuntu, running on Ubuntu 16.04 (64-bit).

I thought that this would be an easy fix, but the source code for this checks out:

I don't understand where it went wrong. It seems as if this bit is missing in the finished post:

<i class="fa fa-circle-o" aria-hidden="true"></i>

I was hoping for an easy fix that I could submit myself, but I'm a bit lost now. Posting this via the API seems to work just fine:

post_details = {
    "title": "This is a poll!",
    "raw": "Hey, nice poll! How’d I do in teaching you?\n\n[poll]\n* :+1:\n* :-1:\n[/poll]",
    "category": "1",
    "created_at": "2017-06-01T00:00",
    "tags[]": ["yes", "no", "maybe"]
}

Here is what I found using Pry on my own Discourse installation, my poll looks like this:

raw:
    "[poll type=regular max=16]\n* Everything is going to be alright\n* Everything is not going to be alright\n[/poll]",
cooked:
    "<div class=\"poll\" data-poll-status=\"open\" data-poll-name=\"poll\" data-poll-type=\"regular\" data-poll-max=\"16\">\n<div>\n<div class=\"poll-container\"><ul>\n<li data-poll-option-id=\"374d020e157fb96528625ca6425b4262\">Everything is going to be alright</li>\n<li data-poll-option-id=\"f94147e24ee33997b8f922766b8e7d12\">Everything is not going to be alright</li>\n</ul></div>\n<div class=\"poll-info\"><p><span class=\"info-number\">0</span><span class=\"info-text\">voters</span></p></div>\n</div>\n<div class=\"poll-buttons\"><a title=\"Display the poll results\">Show results</a></div>\n</div>",

...and this was @discobot's reply:

raw:
    "Hey, nice poll! How’d I do in teaching you?\n\n[poll]\n* :+1:\n* :-1:\n[/poll]\n\nSometimes you may wish to **hide details** in your replies:\n\n- When you’re discussing plot points of a movie or TV show that would be a considered a spoiler.\n\n- When your post needs lots of optional details that may be overwhelming when read all at once.\n\n[details=Select this to see how it works!]\n1. Select the <img src=\"/images/font-awesome-gear.png\" width=\"16\" height=\"16\"> gear in the editor.\n2. Select \"Hide Details\".\n3. Edit the details summary and add your content.\n[/details]\n\nCan you use the <img src=\"/images/font-awesome-gear.png\" width=\"16\" height=\"16\"> gear in the editor to add a details section to your next reply?",
cooked:
    "<p>Hey, nice poll! How’d I do in teaching you?</p>\n\n<div class=\"poll\" data-poll-status=\"open\" data-poll-name=\"poll\">\n<div>\n<div class=\"poll-container\"><ul>\n<li data-poll-option-id=\"dd8f2a6a3f3176720523634d9ed247e4\"><img src=\"https://community.chakralinux.org/images/emoji/emoji_one/+1.png?v=3\" title=\":+1:\" class=\"emoji\" alt=\":+1:\"></li>\n<li data-poll-option-id=\"e7e6f976d74764e3d9d19f99bea8befe\"><img src=\"https://community.chakralinux.org/images/emoji/emoji_one/-1.png?v=3\" title=\":-1:\" class=\"emoji\" alt=\":-1:\"></li>\n</ul></div>\n<div class=\"poll-info\"><p><span class=\"info-number\">0</span><span class=\"info-text\">voters</span></p></div>\n</div>\n<div class=\"poll-buttons\"><a title=\"Display the poll results\">Show results</a></div>\n</div>\n\n<p>Sometimes you may wish to <strong>hide details</strong> in your replies:</p>\n\n<ul>\n<li><p>When you’re discussing plot points of a movie or TV show that would be a considered a spoiler.</p></li>\n<li><p>When your post needs lots of optional details that may be overwhelming when read all at once.</p></li>\n</ul>\n\n<details><summary>Select this to see how it works!</summary>\n\n<ol>\n<li>Select the <img src=\"https://community.chakralinux.org/images/font-awesome-gear.png\" width=\"16\" height=\"16\"> gear in the editor.</li>\n<li>Select \"Hide Details\".</li>\n<li>Edit the details summary and add your content.</li>\n</ol>\n\n</details>\n\n<p>Can you use the <img src=\"https://community.chakralinux.org/images/font-awesome-gear.png\" width=\"16\" height=\"16\"> gear in the editor to add a details section to your next reply?</p>",

Posts: 6

Participants: 5

Read full topic

Unsubscribe without unsubscribe link

$
0
0

@hnaseri wrote:

Is there a way to unsubscribe from digest email without having to click on unsubscribe link? what about resubscribing?

Posts: 4

Participants: 2

Read full topic


Odd behavior between different environments

$
0
0

@Brock_Busby wrote:

Hi all we are encountering a strange issue between our Discourse environments.

We have 3 different Discourse test environments. Let's call them:

  • A.domain.com
  • B.domain.com
  • C.domain.com

Environment:

  • Hosted on AWS
  • All 3 share the same redis server and same RDS postgres instance with separate DBs and separate EC2 instances

Problem encountered:

  • I log into A.domain.com and B.domain.com as "administrator" in different Chrome windows
  • I log out of A.domain.com
  • B.domain.com immediately shows that I've been logged out and to refresh!
  • After refreshing I'm still logged into B.domain.com, and logged out of A.domain.com
  • I've also tested with A & C, or B & C with same result
  • We've also tested this on different devices with same result

We are very concerned something is sharing our configs, etc and will cause issues as we migrate to our production environment, or its just a weird browser notification thing.

Any thoughts on what may be causing this? :thinking:

Thanks in advance!

Posts: 5

Participants: 3

Read full topic

Can't find my header custom code

The docker image is too old

$
0
0

@nnamso_ wrote:

You will need to SSH into the machine and update it:

I did the following now the site is offline.

ssh root@serverip
cd /var/discourse
git pull
./launcher rebuild app

mytestimony.com.ng

Posts: 8

Participants: 4

Read full topic

What emails go to community and when?

$
0
0

@Andrea_Roberts wrote:

Hi All,

I'm sure Discourse has a solid cadence built into the tool, but I need to know. When exactly are community members getting auto generated emails from Discourse? Is it only a welcome message and a weekly digest? If yes, what day of the week does the weekly digest get sent or does it vary by when someone signed up? If there are other auto generated emails that go out please let me know or if there is documentation on this I missed somewhere please point me to it.

Thanks,
Andrea

Posts: 4

Participants: 3

Read full topic

Effectively logging search queries

$
0
0

@sam wrote:

For 1.9 we plan to add a search log.

Unfortunately, the "log every search the server makes" approach is incorrect as we perform searches as people are typing which will result in a massively noisy log.

Proposal

  • Create a new table

term, user_id (nullable), ip_address, created_at, clicked_topic_id (nullable), source_id (either header or fullpage)

  • Log on server with the following algorithm on search

UPDATE term
SET term = :new_term
        created_at: :now
WHERE created_at < 5.seconds.ago AND
             position(term in :new_term) = 0 AND
             (user_id = :user_id OR ip_address = :ip_address)

term: new_term,
now: Time.zone.no,
ip_address: request.ip

If update touches zero rows, then insert a **new** search log row

Or, in English

  • Update existing search log row IF:
    • Same user (for anon use ip address, for logged in use user_id)
    • Previous search started with the text of current search, eg: previous was "dog" and new is "dog in white"
    • Previous search was logged less than 5 seconds ago
  • On click on search result (in either full page search or header) update the clicked_topic_id, (have search results return log id, then update it based on log id + user match + in last 10 minutes)

Limiting log size

So the log does not grow forever there should be a site setting for maximum rows to store. Default should be about a million.

A weekly job can delete oldest rows or something.

Thoughts? Feedback?

Posts: 1

Participants: 1

Read full topic

Viewing all 60721 articles
Browse latest View live




Latest Images