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

Installation failing on AWS EC2 with Ubuntu 16.04

$
0
0

@Aman_Jagga wrote:

I followed a standard guide to install Discourse on EC2 using docker by following this link



While running the launcher to install discourse I am getting error something like user requested shut down. Full logs are available here



I saw that people have faced the similar problem on installation through digitalOcean as well which is highlighted in this link in the last comments




But doubt if it can actually be a solution to my problem. I am using t2.micro instance from EC2 which already has 1 GB RAM

Any help or first hand experience will be much appreciated

Posts: 3

Participants: 3

Read full topic


Can I share the /plugins folder to make rebuild faster?

$
0
0

@mrded wrote:

Is it possible to share /plugins folder or something, so I can easily update plugins without rebuilding an image every time?

Posts: 7

Participants: 2

Read full topic

Discourse moved to var/www after update

$
0
0

@craft37 wrote:

Hi there,
Subj - discourse moved to var/www/discourse after update somehow.

Updating process was started with ./launcher via ssh, once broken after my laptop got uncharged, and than restarted again successful.

In general it's unexpected but is it need any fix to relocate application back to var/discourse ?
Ubuntu 14.04 latest
Discourse v1.7.0.beta7 +44

Thank you!

Posts: 1

Participants: 1

Read full topic

Random cannot reply thread

$
0
0

@lifehome wrote:

Hi all,

Does anyone have idea why the message "seems unclear, is it a complete sentence?" randomly pops out, when a user tries to post a reply to a thread, or even creating a new thread?:sob:

--Ivan

Posts: 2

Participants: 2

Read full topic

Links counter bug

$
0
0

@barreeeiroo wrote:

Hi

The links counter has a problem: it doesn't count only when you enter an URL, it also counts right mouse clicks, so it can be raised very fast and without any sense

Can you fix it?

Posts: 3

Participants: 2

Read full topic

Errors were encountered while processing: postgresql-contrib-9.5

$
0
0

@CamilleRoux wrote:

Hi!

My instance failed to bootstrap (beta Git version).

Here is the templates I'm using

templates:
  - "templates/postgres.9.3.template.yml"
  - "templates/redis.template.yml"
  - "templates/sshd.template.yml"
  - "templates/web.template.yml"
  - "templates/web.ssl.template.yml"
  - "templates/web.letsencrypt.ssl.template.yml"
  #- "templates/web.ratelimited.template.yml"

Here is what I get when I execute ./launcher rebuild app

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, [2016-11-08T16:42:43.632690 #15]  INFO -- : Loading --stdin
I, [2016-11-08T16:42:43.641225 #15]  INFO -- : > apt-get remove -y postgresql-9.5 postgresql-client-9.5 postgresql-contrib-9.5
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LANG = "fr_FR.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
E: Sub-process /usr/bin/dpkg returned an error code (1)
I, [2016-11-08T16:42:45.908508 #15]  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 ... 34341 files and directories currently installed.)
Removing postgresql-contrib-9.5 (9.5.5-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.5-1.pgdg16.04+1).

Removing postgresql-9.5 (9.5.5-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.5-1.pgdg16.04+1) ...
Processing triggers for postgresql-common (177.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"
4a144bfb01e96e35da31aa0dae839f3e344cc9e0b667e20e6ae355f36251c673
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one

Posts: 3

Participants: 2

Read full topic

Discourse login for odnoklassniki

$
0
0

@azaleas wrote:

We are creating a forum, which will be heavily used by russian audience. I found Vk.com plugin for login. Is there anything similar to that for odnoklassniki?

Posts: 2

Participants: 2

Read full topic

File extensions with multiple periods not processed correctly

$
0
0

@samnazarko wrote:

Hello

I want to allow people to upload .tar.gz (gzipped tar) on our forum. I have added tgz and .tar.gz as valid file extensions in Settings -> Files.

However when I try and upload a .tar.gz file, it is rejected, and Discourse says that acceptable formats include 'targz':

Discourse should be able to handle attachments with more than one dot in the file extension.

Cheers

Sam

Posts: 2

Participants: 2

Read full topic


Discourse blog comments like your blog comments

How do I remove users from "Staff" category?

$
0
0

@Jessica_CockroachDB wrote:

How can I revoke a user's "staff" flag and reassign it to a different employee? My 10 "staff" seats are all currently spoken for, but some are assigned to people no longer with the company.

Posts: 2

Participants: 2

Read full topic

Discourse failed to backup on stable

$
0
0

@gkln wrote:

Continuing:

which still happens for us on stable, shortly after updating to version 1.6.6.

We have no automatic backup since November 5th, 2016 and are unable to initiate a manual backup:

[2016-11-08 20:09:23] 'Guiwy' has started the backup!
[2016-11-08 20:09:23] Marking backup as running...
[2016-11-08 20:09:23] Making sure '/var/www/discourse/tmp/backups/default/2016-11-08-200923' exists...
[2016-11-08 20:09:23] Making sure '/var/www/discourse/public/backups/default' exists...
[2016-11-08 20:09:23] Backup process was cancelled!
[2016-11-08 20:09:23] Notifying 'Guiwy' of the end of the backup...

Any ideas?


Additionally and it may be related, we experienced a constant increase in CPU load since this update:

and many page loading issue today. Rebuild and reboot helped but for how long?

Posts: 4

Participants: 3

Read full topic

Where is the nginx conf location after installation?

$
0
0

@sessionstart wrote:

Hello guys,

I just now finished the installation and want to make some changes in nginx configuration. I followed the tutorial of the installation under 30 mins, which is using the Docker to get started. So when I sshed the server, using the command: cd /etc/nginx, I found that there is no such directory.

I am using Ubuntu 16.04 LTS. Please help tell me the nginx conf file location with Docker installation.

Thanks!

Posts: 2

Participants: 2

Read full topic

Discourse setup with Digital Ocean - Not sending SparkPost activation email

$
0
0

@Ryan_French wrote:

Hi,

I have setup a new Discourse on Digital Ocean, I am using Sparkpost for my mail.

I have setup and configured both the SPF and DKIM records with my domain provider and all is good.

However I still do not receive the first activation email when I sign up with admin account. I've followed your email troubleshooting article and this hasn't really fixed the issue.

I would love to know what the problem is and if this has occurred before with previous users?

Thanks,
Ryan.

Posts: 25

Participants: 6

Read full topic

Approve all existing users en-masse to facilitate enabling "must approve users"

$
0
0

@barryvan wrote:

So far, I've been running our forum in invite-only mode -- which is great. I'd now like to start opening it up a little bit more, such that I can send people to the address to sign up, but require approval of their accounts before they gain access. The "must approve users" setting's warning is making me a little leery of enabling it, though.

In reading through recent posts here on meta, it looks like:

  • Invited users are not considered "approved" by default.
  • If I enable this flag, and use the UI to approve each user, they won't receive "your account has been approved" emails.

What I'd really like to do is approve all the users currently in the system en-masse, and then flip the switch. (I would really, really prefer not to manually approve each user, as I have 140 at the moment.) A couple of questions related to this:

  • Can I simply do this by updating the database:

update users set
  approved = true, approved_by_id = 1, approved_at = current_timestamp
where not approved and active

Posts: 1

Participants: 1

Read full topic

I accidentally deleted our app.yaml file

$
0
0

@ossia wrote:

I SSH'd into the server, opened the app.yml using nano, and attempted to copy everything out so I could have a backup copy. It turns out my backup copy was truncated and I lost everything above this line (and yes, I pasted the mangled code in and saved it, not realizing it was truncated):

  - volume:
      host: /var/discourse/shared/standalone
      guest: /shared
  - volume:
      host: /var/discourse/shared/standalone/log/var-log
      guest: /var/log

## The docker manager plugin allows you to one-click upgrade Discourse
## http://forum.freecodecamp.com/admin/docker
hooks:
  after_code:
    - exec:
        cd: $home/plugins
        cmd:
          - git clone https://github.com/discourse/docker_manager.git

## Remember, this is YAML syntax - you can only have one block with a name
run:
  - exec: echo "Beginning of custom commands"

  ## If you want to set the 'From' email address for your first registration, uncomment and change:
  #- exec: rails r "SiteSetting.notification_email='info@unconfigured.discourse.org'"
  ## After getting the first signup email, re-comment the line. It only needs to run once.

  ## If you want to configure password login for root, uncomment and change:
  ## Use only one of the following lines:
  #- exec: /usr/sbin/usermod -p 'PASSWORD_HASH' root
  #- exec: /usr/sbin/usermod -p "$(mkpasswd -m sha-256 'RAW_PASSWORD')" root

  - exec: echo "End of custom commands"

Here's what I've tried: creating a new Digital Ocean instance, copying its app.yml, updating it accordingly to the best of my abilities and pasting it in.

I am still getting the following errors:

2016-11-09 05:21:42 UTC [54-1] postgres@postgres ERROR:  database "discourse" already exists
2016-11-09 05:21:42 UTC [54-2] postgres@postgres STATEMENT:  CREATE DATABASE discourse;
createdb: database creation failed: ERROR:  database "discourse" already exists

and

I, [2016-11-09T05:21:57.982696 #13]  INFO -- :
I, [2016-11-09T05:21:57.982940 #13]  INFO -- : > cd /var/www/discourse && bash -c "touch -a           /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr}.log"
I, [2016-11-09T05:21:57.987517 #13]  INFO -- :
I, [2016-11-09T05:21:57.987819 #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"

Which ends in this:

I, [2016-11-09T05:28:26.158932 #13]  INFO -- : Purging temp files
Bundling assets
Compressing Javascript and Generating Source Maps

I, [2016-11-09T05:28:26.176039 #13]  INFO -- : File > /usr/local/bin/discourse  chmod: +x
I, [2016-11-09T05:28:26.182901 #13]  INFO -- : File > /usr/local/bin/rails  chmod: +x
I, [2016-11-09T05:28:26.188062 #13]  INFO -- : File > /usr/local/bin/rake  chmod: +x
I, [2016-11-09T05:28:26.193387 #13]  INFO -- : File > /etc/update-motd.d/10-web  chmod: +x
I, [2016-11-09T05:28:26.196390 #13]  INFO -- : File > /etc/logrotate.d/rails  chmod:
I, [2016-11-09T05:28:26.198889 #13]  INFO -- : File > /etc/logrotate.d/nginx  chmod:
I, [2016-11-09T05:28:26.203369 #13]  INFO -- : File > /etc/runit/1.d/00-ensure-links  chmod: +x
I, [2016-11-09T05:28:26.207612 #13]  INFO -- : File > /root/.bash_profile  chmod: 644
I, [2016-11-09T05:28:26.208931 #13]  INFO -- : Replacing (?-mix:server.+{) with limit_req_zone $binary_remote_addr zone=flood:10m rate=$reqs_per_secondr/s;
limit_req_zone $binary_remote_addr zone=bot:10m rate=$reqs_per_minuter/m;
limit_req_status 429;
server {
 in /etc/nginx/conf.d/discourse.conf
I, [2016-11-09T05:28:26.209512 #13]  INFO -- : Replacing (?-mix:location @discourse {) with location @discourse {
  limit_req zone=flood burst=$burst_per_second nodelay;
  limit_req zone=bot burst=$burst_per_minute nodelay; in /etc/nginx/conf.d/discourse.conf
I, [2016-11-09T05:28:26.210119 #13]  INFO -- : > echo "Beginning of custom commands"
I, [2016-11-09T05:28:26.212130 #13]  INFO -- : Beginning of custom commands

I, [2016-11-09T05:28:26.212312 #13]  INFO -- : > echo "End of custom commands"
I, [2016-11-09T05:28:26.213933 #13]  INFO -- : End of custom commands

I, [2016-11-09T05:28:26.214102 #13]  INFO -- : Terminating async processes
I, [2016-11-09T05:28:26.214178 #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, [2016-11-09T05:28:26.214310 #13]  INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 155
1552016-11-09 05:28:26 UTC [42-2] LOG:  received fast shutdown request
2016-11-09 05:28:26 UTC [42-3] LOG:  aborting any active transactions
2016-11-09 05:28:26 UTC [49-2] LOG:  autovacuum launcher shutting down
2016-11-09 05:28:26 UTC [46-1] LOG:  shutting down
:signal-handler (1478669306) Received SIGTERM scheduling shutdown...
2016-11-09 05:28:26 UTC [46-2] LOG:  database system is shut down
155:M 09 Nov 05:28:26.301 # User requested shutdown...
155:M 09 Nov 05:28:26.302 * Saving the final RDB snapshot before exiting.
155:M 09 Nov 05:28:30.033 * DB saved on disk
155:M 09 Nov 05:28:30.033 # Redis is now ready to exit, bye bye...

Posts: 3

Participants: 2

Read full topic


Letter Avatar Is not loading in my Country Because the URL has proxy in it

$
0
0

@achu wrote:

I have created my first discourse forum. It's called http://ankiforum.com For Anki -The Intelligent OpenSource flash card users (If you are Anki flashcard user, please join :wink: )

So, In my country internet is restricted. Since Discourse has proxy word in its letter avatar URL, letter_avatar_proxy/v2/letter/n/da6949/90.png avatars are broken and the look like this:

Is there any way I can change that URL name?

Thanks,

Posts: 5

Participants: 2

Read full topic

Edits to Wikis with Replies Should Cause Timestamp Change / Post Shown as Updated

$
0
0

@alexs wrote:

Note I use the terms topic / post & Wiki interchangeably throughout the post, all mentions of topics / posts are referring to Wikis.

At the moment, edits to Wikis which don't have replies cause the topic's timestamp to be updated & the topic to be bumped to the top of the New / Updated posts list.
But once a user has replied to the topic, only edits to that last reply will cause the topic's timestamp etc. to update.

I need users who have never interacted with the post before to be alerted of those changes - for example, I have a Wiki which lists upcoming events -

And I need that topic to appear at the top of the New / Updated posts list when details of an event are added / changed.

Pinning the post to the top of the list is not an option because we have too many Wikis like this & it would swamp the feed.

Once a topic is closed (to prevent replies), edits to that topic which are still possible, don't cause the timestamp etc. updates so this isn't an option either.

If there are any other potential solutions, please do let me know..

Note

But once a user has replied to the topic, only edits to that last reply will cause the timestamp etc. update.

This seems to contradict the below guidance but that is the bahviour that I've observed.

Posts: 2

Participants: 2

Read full topic

Need help in customizing header in latest discourse verison

$
0
0

@akshatknsl wrote:

Hi,

I have been using discourse version 1.6 for past few months in production, we had customized the headers of discourse using the HTML/CSS customizations by applying the HTML changes on header hbs template.

Recently, I have been facing a lot of spams and wanted to install Akismet plugin for this, but unfortunately that requires rebuilding discourse and after upgrade I am loosing all the headers.

The same customization which were working in 1.6 are no more working.

I urgently need help on how to customize the latest version of discourse, or any other way I can install a Akismet plugin without rebuilding docker.

Thanks
Akshat

Posts: 12

Participants: 3

Read full topic

How do I place a text file in the root directory of my Discourse website?

$
0
0

@Noahqw wrote:

I'm trying to verify ownership of my domain for MailJet so I can send emails through my domain. I need to place a text file in the root directory of my Discourse website. But which folder is that? I've installed it on Ubuntu 16.04.

Posts: 2

Participants: 2

Read full topic

Existing JS module import into ES6 plugin

$
0
0

@ntadej wrote:

I'm writing a markdown plugin which needs an external JS for server side code. How to import the module properly so it will be detected by mini_racer. I can either import JS module (as git submodule) or already compiled min.js.

If I just do register_asset 'file.js', :server_side it works in browser, but not when I try to rebuild post HTML.

Posts: 1

Participants: 1

Read full topic

Viewing all 60613 articles
Browse latest View live




Latest Images