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

How much can Discourse scale?

$
0
0

@enigmaty wrote:

I have forum with 7 million posts and 20k users. I want to migrate to Discourse. Can Discourse handle this?

Posts: 2

Participants: 2

Read full topic


How to do multiple values properly in decorate widget javascript?

$
0
0

@yyhmsg wrote:

I feel silly even asking this, but I've tried every variation I know of and my javascript is not strong... Anyhow, I'm trying to add multiple menu items to the hamburger menu via the api.decorateWidget function.

I've tried this:

 <script type="text/discourse-plugin" version="0.4">
      api.decorateWidget('hamburger-menu:generalLinks', () => {
        return [{ href: 'https://yinyanghouse.com/', rawLabel: 'Our Blog' }, { href: 'https://store.yinyanghouse.com', rawLabel: 'Our Store'}];
      });
    </script>

But that doesn't show up -- doing it like this does work:

<script type="text/discourse-plugin" version="0.4">
  api.decorateWidget('hamburger-menu:generalLinks', () => {
    return { href: 'https://yinyanghouse.com/', rawLabel: 'Our Blog' };
  });
  api.decorateWidget('hamburger-menu:generalLinks', () => {
    return { href: 'https://store.yinyanghouse.com/', rawLabel: 'Our Store' };
  });

</script>

But it seems like there should be a way to put those into an array and return that?

Posts: 2

Participants: 2

Read full topic

How to determine the ID of each group for use with the API?

$
0
0

@lkramer wrote:

Hello all. I'm using the API to set users' groups and it requires the numerical ID of the group but I can't seem to find that anywhere.

Thanks very much for any help anyone can provide!

Posts: 3

Participants: 2

Read full topic

Bulk add to group does not increment group membership counts

$
0
0

@bbendick wrote:

When using the "Bulk add" feature, the group count on admin/groups/custom is not incremented. Only after adding a single user from the normal admin screen does that counter get properly updated.

Posts: 4

Participants: 2

Read full topic

Discourse as an LMS / Discourse integration with an LMS

$
0
0

@trudat wrote:

Continuing the discussion from Customized Discourse Help Needed (requests below):

Hi Jay,
Like you I am looking into using Discourse as an LMS or integrating it with an LMS. I find most LMSes too be too bloated with features, and need something a lot more flexible and user-driven. I'm curious: what were the plugins you wrote? Or maybe I should ask: what plugins would you like to create if you had unlimited resources that would make Discourse into a better LMS-like tool?

Posts: 2

Participants: 2

Read full topic

Why post_number?

$
0
0

@Kevin_Wildenradt wrote:

I've noticed that all posts bear both a post_id and a post_number. I understand that post_id is the unique identifier of the post in the entire forum, while post_number is the number of the post in its topic. Posts identify themselves as replies to other posts by referencing the post_number of another post in the reply_to_post_number field. Whenever any topic (or section of posts from a topic) is retrieved from the server, it contains a sorted array of the post_id's of every post in the topic. The front end provides access to specific post_numbers via the URL, but when such a URL is actually accessed the request made to the back end is in terms of post_ids (presumably accessed from the above mentioned array).

This is all well and good, but it seems like everything post_number is used for could be accomplished with post_id instead: post_id's are always increasing, so they can be used to determine the relative ordering of posts in a topic. Since they are globally unique they are certainly unique within each topic, and so could be used in a reply_to_post_id that serves the same purpose as reply_to_post_number.

TLDR; What purpose does post_number serve that could not be easily accomplished with post_id? If there is none then removing it would streamline the data model, which would seem to be a good thing.

Posts: 2

Participants: 2

Read full topic

Problem setup on AWS: EC2, RDS, ElastiCache

$
0
0

@cean wrote:

Hi,

I have been following this guide to install Discourse on whole AWS services.

EC2 for Instance, RDS for Database, ElastiCache for Redis, Cloudfront for CDN and finally SES for Emails.

No problem for Cloudfront and SES.

However, I am having issues at build. Here's logs when I do ./launcher rebuild app or ./launcher bootstrap app

Logs

I, [2016-11-07T19:31:18.480826 #13] INFO -- : > cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate'
Failed to report error: Name or service not known 2 Name or service not known subscribe failed, reconnecting in 1 second. Call stack ["/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/redis-3.3.1/lib/redis/connection/hiredis.rb:19:in connect'", "/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/redis-3.3.1/lib/redis/connection/hiredis.rb:19:inconnect'", "/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/redis-3.3.1/lib/redis/client.rb:336:in establish_connection'", "/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/redis-3.3.1/lib/redis/client.rb:101:inblock in connect'", "/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/redis-3.3.1/lib/redis/client.rb:293:in with_reconnect'", "/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/redis-3.3.1/lib/redis/client.rb:100:inconnect'", "/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/redis-3.3.1/lib/redis/client.rb:276:in with_socket_timeout'", "/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/redis-3.3.1/lib/redis/client.rb:133:incall_loop'", "/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/redis-3.3.1/lib/redis/subscribe.rb:43:in subscription'", "/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/redis-3.3.1/lib/redis/subscribe.rb:12:insubscribe'", "/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/redis-3.3.1/lib/redis.rb:2760:in _subscription'", "/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/redis-3.3.1/lib/redis.rb:2138:inblock in subscribe'", "/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/redis-3.3.1/lib/redis.rb:58:in block in synchronize'", "/usr/local/lib/ruby/2.3.0/monitor.rb:214:inmon_synchronize'", "/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/redis-3.3.1/lib/redis.rb:58:in synchronize'", "/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/redis-3.3.1/lib/redis.rb:2137:insubscribe'", "/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/message_bus-2.0.2/lib/message_bus/backends/redis.rb:304:in global_subscribe'", "/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/message_bus-2.0.2/lib/message_bus.rb:513:inglobal_subscribe_thread'", "/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/message_bus-2.0.2/lib/message_bus.rb:461:in `block in new_subscriber_thread'"]
URGENT: could not translate host name "censored_endpoint:5432" to address: Name or service not known
Failed to initialize site default
rake aborted!
Name or service not known

(...)

FAILED


Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate' failed with return #<Process::Status: pid 844 exit 1>
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'"]}
f84cadbb62af834c90c52ee65e80d069b259bd28a387223fc2f9d5c608046478
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one

Here's app.yml config:

app.yml
## this is the all-in-one, standalone Discourse Docker container template
##
## After making changes to this file, you MUST rebuild
## /var/discourse/launcher rebuild app
##
## BE *VERY* CAREFUL WHEN EDITING!
## YAML FILES ARE SUPER SUPER SENSITIVE TO MISTAKES IN WHITESPACE OR ALIGNMENT!
## visit http://www.yamllint.com/ to validate this file as needed

templates:
## - "templates/postgres.template.yml"
## - "templates/redis.template.yml"
  - "templates/sshd.template.yml"
  - "templates/web.template.yml"
  - "templates/web.ratelimited.template.yml"
## Uncomment these two lines if you wish to add Lets Encrypt (https)
  - "templates/web.ssl.template.yml"
  - "templates/web.letsencrypt.ssl.template.yml"

## which TCP/IP ports should this container expose?
## If you want Discourse to share a port with another webserver like Apache or nginx,
## see https://meta.discourse.org/t/17247 for details
expose:
  - "80:80"   # http
  - "443:443" # https

params:
  db_default_text_search_config: "pg_catalog.english"

  ## Set db_shared_buffers to a max of 25% of the total memory.
  ## will be set automatically by bootstrap based on detected RAM, or you can override
  db_shared_buffers: "128MB"

  ## can improve sorting performance, but adds memory usage per-connection
  #db_work_mem: "40MB"

  ## Which Git revision should this container use? (default: tests-passed)
  #version: tests-passed

env:
  LANG: en_US.UTF-8
  # DISCOURSE_DEFAULT_LOCALE: en

  ## How many concurrent web requests are supported? Depends on memory and CPU cores.
  ## will be set automatically by bootstrap based on detected CPUs, or you can override
  UNICORN_WORKERS: 2

  ## TODO: configure connectivity to the databases
  DISCOURSE_DB_SOCKET: ''
  DISCOURSE_DB_NAME: discourse
  DISCOURSE_DB_POOL: 15
  DISCOURSE_DB_USERNAME: discourse
  DISCOURSE_DB_PASSWORD: censored
  DISCOURSE_DB_HOST: 'censored_endpoint:5432'
  DISCOURSE_REDIS_HOST: 'censored_endpoint:6379'
  ## TODO: The domain name this Discourse instance will respond to
  DISCOURSE_HOSTNAME: 'censored'

  ## Uncomment if you want the container to be started with the same
  ## hostname (-h option) as specified above (default "$hostname-$config")
  #DOCKER_USE_HOSTNAME: true

  ## TODO: List of comma delimited emails that will be made admin and developer
  ## on initial signup example 'user1@example.com,user2@example.com'
  DISCOURSE_DEVELOPER_EMAILS: 'censored'

  ## TODO: The SMTP mail server used to validate new accounts and send notifications
  DISCOURSE_SMTP_ADDRESS: email-smtp.eu-west-1.amazonaws.com         # required
  DISCOURSE_SMTP_PORT: 587
  DISCOURSE_SMTP_USER_NAME: censored
  DISCOURSE_SMTP_PASSWORD: censored
  DISCOURSE_SMTP_ENABLE_START_TLS: true           # (optional, default true)

  ## If you added the Lets Encrypt template, uncomment below to get a free SSL certificate
  LETSENCRYPT_ACCOUNT_EMAIL: censored

  ## The CDN address for this Discourse instance (configured to pull)
  ## see https://meta.discourse.org/t/14857 for details
  DISCOURSE_CDN_URL: //censored

## The Docker container is stateless; all data is stored in /shared
volumes:
  - volume:
      host: /var/discourse/shared/web-only
  guest: /shared
  - volume:
  host: /var/discourse/shared/web-only/log/var-log
  guest: /var/log

## Plugins go here
## see https://meta.discourse.org/t/19157 for details
hooks:
  after_code:
- exec:
    cd: $home/plugins
    cmd:
      - git clone https://github.com/discourse/docker_manager.git

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

AWS is all set. Neither I think it's AWS side. Please help :slight_smile:

Posts: 2

Participants: 1

Read full topic

Custom Emoji feature requests

$
0
0

@DiscipleGeek wrote:

A couple of requests:

  • The ability to rename custom emojis
  • A separate class for built-in emojis and custom emojis. I have several custom emojis that are bigger than the normal emoji size and are non-squared dimensions. If I remove the height and width limitations via CSS so that the custom emojis display correctly, the built-in emojis become very large. It would be nice to be able to style custom and built-in separately.

Posts: 1

Participants: 1

Read full topic


Is it possible to run Discourse on hyper.sh?

$
0
0

@mrded wrote:

I probably already know the answer. Still want to know your opinion, because it's one of the easy-to-install docker hostings. May be a good idea to optimise everything for it, rather than just Digital Ocean.

Posts: 2

Participants: 2

Read full topic

Discourse exports

$
0
0

@mylisia wrote:

Whenever I try to export a list of Discourse users, it downloads as a .csv.gz file. Obviously, that won't open, and when I change the file extension to just a .csv, the data is jumbled. What's the issue here?

Posts: 2

Participants: 2

Read full topic

Broken links (blank page) with # appearing in URL

$
0
0

@frabrunelle wrote:

Earlier today, I posted a topic and I noticed that there was an issue with some of the links:

The first two links inside that topic were broken:

https://riot.im/app/#/room/#safenetwork:matrix.org
https://riot.im/app/#/room/#safenetwork-dev:matrix.org

If you right click on the link and open it in a new tab, it works fine. But if you do a normal click on the link, it brings you to a blank page with the following URL: https://safenetforum.org/clicks/track?url=https%3A%2F%2Friot.im%2Fapp%2F%23%2Froom%2F%23safenetwork%3Amatrix.org&post_id=105936&topic_id=11711

I found a temporary fix: if I link to https://riot.im/app/#/room/%23safenetwork:matrix.org (%23 instead of #) it works fine! but I would still like to be able to use the normal link if possible :slight_smile: thank you!

Posts: 2

Participants: 2

Read full topic

Missing [en.admin.export_csv.user_archive_confirm]

Images lost when migrating to self-hosting

$
0
0

@vicki wrote:

I followed the instructions listed on how to move your Discourse instance to a different server as we move our forum from being Discourse-hosted to self-hosted. However, when I load the self-hosted instance (at a test URL), all of the images are gone.

This includes the logo and favicon images throughout the site.

Is there a way to migrate the images over from our Discourse-hosted version to the self-hosted instance? Or should I go about the migration in a different way?

Posts: 4

Participants: 2

Read full topic

A "safe mode" to easily disable all third party plugins

$
0
0

@codinghorror wrote:

One common problem with Discourse installs:

  • you update to the latest version

  • due to internal Discourse changes, one of your plugins breaks

  • the plugin doesn't just break, it breaks your entire site which now has JS errors or maybe even a white screen

  • you open a meta support topic about how updating Discourse broke your whole site :sadpanda:

  • we ask "hmm, did you try disabling all third party plugins"

We need a much easier way for people to enter 'safe mode' where only official Discourse plugins that are bundled with Discourse during a clean install are loaded.

I am open to whatever implementation makes sense, but switching to "safe mode" needs to be much easier to stem the flood of support topics on Discourse updates breaking third party plugins.

(This is on the official 1.7 release list as well.)

Posts: 4

Participants: 4

Read full topic

Nice Android app


Embedded youtube full screen bug part deux

Refresh needed to update message participants after removal of group

$
0
0

@LeoMcA wrote:

Continuing the discussion from Reply as new message to same recipients:

This issue appeared as I was testing my soon-to-be-PR-worthy implementation of the above.

Steps to reproduce:

  1. Write message to a group and a member of that group
  2. Remove the group from the message: only you will be left in topic.details.allowed_users
  3. Refresh the page: the member of the removed group will appear in topic.details.allowed_users

Because a picture tells a thousand words, what you see after step 2:

And after step 3:

Expected result:

No refresh is needed to get to the result of step 3.


I expect the same thing happens (in reverse) if you add a group to a message which a user is a recipient of.

I'll probably get on fixing this after I submit the PR for the above feature, and I think I've mostly figured out how I would fix it, but feedback before that is very welcome.

Posts: 1

Participants: 1

Read full topic

How do I stop new users from posting links?

$
0
0

@alwayslookright wrote:

Have a few discourse forums and one is getting new user spam every 5 minutes. I can't seem to find where to disable links for new users. Any help appreciated.

Posts: 6

Participants: 4

Read full topic

Fatal: ambiguous argument '@'

$
0
0

@JerryLiu wrote:

dear all,
I get some error info, can not start my discourse, when my first exce ./launch rebuild app .

:sob:

CentOS

Need you help.

正在获取 origin
fatal: ambiguous argument '@': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git [...] -- [...]'
fatal: Not a valid object name @
./launcher: 第 644 行:[: @: 期待一元表达式
./launcher: 第 654 行:[: aab5d67efdbeb3d79962276ba76e483f90d9679a: 期待一元表达式
Launcher has diverged source, this is only expected in Dev mode
cd /pups && git pull && /pups/bin/pups --stdin

Posts: 4

Participants: 1

Read full topic

Logs/ throws Job errors related to images also images never get lightboxed

$
0
0

@ottodevs wrote:

If some admin considers it, this topic should be closed, since is the same than my edited answer at: https://meta.discourse.org/t/some-images-get-lightboxed-some-not-in-the-same-post/50989/9
Sorry for the inconvenience.

EDIT: I finally managed to fixed it with a combination of: dns changed at our provider, database remapping of every ocurrence with the wrong url, posts:rebake, and reverting all things tested before, like changing docker dns, changing template config, edited hosts and so, nothing of that was needed and at the end probably was making the situation worse. On sidekiq it did like 30k row changes, so patience is also the key.
If somebody gets into the same situation I will be willing to share the details of what I did.

Hi, from last discourse update our log is giving us some errors like this:

Job exception: bad component(expected absolute path component): /imagestatic/clipping/304/de7/7ef/304de77efb57642905817baea219aaed/imagen-sin-titulo.jpg?mtime=1392134799

Also new images posted don't get lightboxed, I search and try some solutions from other posts but it didn't fix the problem...
Could it be related to that errors?

All images are uploaded in our server.
I tried posts:rebake and changing DNS config

Posts: 1

Participants: 1

Read full topic

Viewing all 67521 articles
Browse latest View live