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

Problem creating new account

$
0
0

Michael wrote:

Since we updated to 0.9.8, we have problems creating new accounts.

The error message users are getting is "Something went wrong, perhaps this email is already registered, try the
forgot password link"

production_errors.log shows

<backtrace>[RAILS_ROOT]/vendor/bundle/ruby/2.0.0/gems/redis-3.0.6/lib/redis/client.rb:85:in `call'
[RAILS_ROOT]/vendor/bundle/ruby/2.0.0/gems/redis-3.0.6/lib/redis.rb:1205:in `block in sadd'
[RAILS_ROOT]/vendor/bundle/ruby/2.0.0/gems/redis-3.0.6/lib/redis.rb:36:in `block in synchronize'
/usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize'
[RAILS_ROOT]/vendor/bundle/ruby/2.0.0/gems/redis-3.0.6/lib/redis.rb:36:in `synchronize'
[RAILS_ROOT]/vendor/bundle/ruby/2.0.0/gems/redis-3.0.6/lib/redis.rb:1204:in `sadd'
[RAILS_ROOT]/lib/common_passwords/common_passwords.rb:44:in `load_passwords'
[RAILS_ROOT]/lib/common_passwords/common_passwords.rb:33:in `block in password_list'
[RAILS_ROOT]/lib/common_passwords/common_passwords.rb:32:in `synchronize'

....

[RAILS_ROOT]/vendor/bundle/ruby/2.0.0/bin/thin:23:in `&lt;main&gt;'</backtrace>
  <message>ERR wrong number of arguments for 'sadd' command</message>
  <url>http://test1101b.discoursehosting.net/users</url>
  <exception-class>Redis::CommandError</exception-class>
</hash>

When removing line 44 (redis.sadd) from common_passwords.rb the problem goes away.

def self.load_passwords
      passwords = File.readlines(PASSWORD_FILE)
      redis.sadd LIST_KEY, passwords[0,5000].map!(&:chomp)
    rescue Errno::ENOENT
      # tolerate this so we don't block signups
      Rails.logger.error "Common passwords file #{PASSWORD_FILE} is not found! Common password checking is skipped."
    end

The 10k-common-passwords.txt file is there, and it's readable.

Anyone have any idea what is going on here?

Posts: 6

Participants: 3

Read full topic


Newly created category does not show in category list until another one is created

$
0
0

A Zeynel wrote:

I don't know if this is a bug or if I am doing something wrong, but when I create a new category, it is not included in the pull-down list of categories. When I create another one then the previous one becomes available.

Posts: 2

Participants: 2

Read full topic

Brand new plugin interface

$
0
0

Sam Saffron wrote:

I have been working on a heavily simplified plugin interface so its a lot easier for people to get started with extending Discourse.

For example:

Say you wanted to extend Discourse and add Ubuntu SSO to the dialog.

Place a file called plugin.rb in the directory plugins/ubuntu_sso

###plugins/ubuntu_sso/plugin.rb

# name: discourse-ubuntu
# about: ubuntu login support for Discourse
# version: 0.1
# authors: Sam Saffron, Marco Ceppi

auth_provider :title => 'with Ubuntu',
              :authenticator => Auth::OpenIdAuthenticator.new('ubuntu','https://login.ubuntu.com', trusted: true),
              :message => 'Authenticating with Ubuntu (make sure pop up blockers are not enbaled)',
              :frame_width => 1000,   # the frame size used for the pop up window, overrides default
              :frame_height => 800

register_css <<CSS

.btn-social.ubuntu {
  background: #dd4814;
}

.btn-social.ubuntu:before {
  font-family: Ubuntu;
  content: "U";
}

CSS

Run bundle exec rake assets:precompile
Restart you services.

Done, you have working Ubuntu SSO.

This interface is still not complete, as I finalize it I will be adding more examples here.

The /plugins directory is ignored by git so you can place your extensions there safely.

Longer term plans

  1. Possibly use a Rails::Engine for greater flexibility
  2. More hooks
  3. Admin UI to enable or disable plugins (with multisite support)
  4. Central plugin repo
  5. External gem dependencies

If you are interested in extending the interface etc, let me know.

cc @marcoceppi

Posts: 63

Participants: 29

Read full topic

Performance issue on Digital Ocean with discourse_docker

$
0
0

Passante wrote:

Hi guys,
our community is trying to move from vbulletin forum to discourse and we need your help!
We just published the discourse forum to test it but we are facing some performance issues.

We need to understand how powerful the server should be to manage our users and tweak the discourse installation to get rid of all errors we are facing.

Here the specs of the server:
VPS on Digital ocean 1 CPU 1GB RAM 30 SSD
Discourse_Docker by sam on Docker 0.7 Ubuntu 13.04 x64

Upgrading to 0.9.8.1 to resolved the overload issue with sidekiq only partially.

As you can see the load is still high but not due anymore to the sidekiq daemons.

Right the traffic of the new discourse installation is really small as you can see from stats:

  1. We see some worrying errors in the log:

2014-01-11T11:52:36Z 13074 TID-ou7ftz24o INFO: [Sidetiq] Sidetiq is covered by the 3-clause BSD license.
2014-01-11T11:52:36Z 13074 TID-ou7ftz24o INFO: [Sidetiq] See LICENSE and http://opensource.org/licenses/BSD-3-Clause for licensing details.
2014-01-11T11:52:36Z 13074 TID-ou7ftz24o INFO: [Sidetiq] Sidetiq::Supervisor start
2014-01-11T11:52:36Z 13074 TID-ou7fr1d0s INFO: [Sidetiq] Sidetiq::Actor::Clock id: 70073752552160 initialize
2014-01-11T11:52:36Z 13074 TID-ou7frgm90 INFO: [Sidetiq] Sidetiq::Actor::Handler id: 70073753259860 initialize
2014-01-11T11:52:36Z 13074 TID-ou7fri1rg INFO: [Sidetiq] Sidetiq::Actor::Handler id: 70073753368280 initialize
2014-01-11T11:52:36Z 13074 TID-ou7fr1d0s WARN: [Sidetiq] Can't link Sidetiq::Actor::Clock. Sidekiq::Manager not running. Retrying in 5 seconds ...
2014-01-11T11:52:36Z 13074 TID-ou7frgm90 WARN: [Sidetiq] Can't link Sidetiq::Actor::Handler. Sidekiq::Manager not running. Retrying in 5 seconds ...
2014-01-11T11:52:36Z 13074 TID-ou7fri1rg WARN: [Sidetiq] Can't link Sidetiq::Actor::Handler. Sidekiq::Manager not running. Retrying in 5 seconds ...
2014-01-11T11:52:41Z 13074 TID-ou7fr1d0s WARN: [Sidetiq] Can't link Sidetiq::Actor::Clock. Sidekiq::Manager not running. Retrying in 5 seconds ...
2014-01-11T11:52:41Z 13074 TID-ou7frgm90 WARN: [Sidetiq] Can't link Sidetiq::Actor::Handler. Sidekiq::Manager not running. Retrying in 5 seconds ...
2014-01-11T11:52:41Z 13074 TID-ou7fri1rg WARN: [Sidetiq] Can't link Sidetiq::Actor::Handler. Sidekiq::Manager not running. Retrying in 5 seconds ...
[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
[36] 11 Jan 11:53:31.026 10 changes in 300 seconds. Saving...
[36] 11 Jan 11:53:31.033
Background saving started by pid 13664
[13664] 11 Jan 11:53:31.259 DB saved on disk
[13664] 11 Jan 11:53:31.261
RDB: 1 MB of memory used by copy-on-write
[36] 11 Jan 11:53:31.337 Background saving terminated with success
2014-01-11 11:54:06 UTC LOG: unexpected EOF on client connection with an open transaction
2014-01-11 11:54:17 UTC LOG: unexpected EOF on client connection with an open transaction
2014-01-11 11:54:41 UTC LOG: could not receive data from client: Connection reset by peer
2014-01-11 11:55:06 UTC LOG: could not send data to client: Broken pipe
2014-01-11 11:55:06 UTC FATAL: connection to client lost
2014-01-11 11:56:57 UTC LOG: unexpected EOF on client connection with an open transaction
[36] 11 Jan 11:58:32.081
10 changes in 300 seconds. Saving...
[36] 11 Jan 11:58:32.091 Background saving started by pid 16882
[16882] 11 Jan 11:58:32.372
DB saved on disk
[16882] 11 Jan 11:58:32.376 RDB: 1 MB of memory used by copy-on-write
[36] 11 Jan 11:58:32.394
Background saving terminated with success
[36] 11 Jan 12:03:33.052 10 changes in 300 seconds. Saving...
[36] 11 Jan 12:03:33.063
Background saving started by pid 19647
[19647] 11 Jan 12:03:33.661 DB saved on disk
[19647] 11 Jan 12:03:33.667
RDB: 1 MB of memory used by copy-on-write
[36] 11 Jan 12:03:33.676 Background saving terminated with success
> 2014-01-11 12:14:52 UTC LOG: unexpected EOF on client connection with an open transaction[36] 11 Jan 12:18:36.082 10 changes in 300 seconds. Saving...
[36] 11 Jan 12:18:36.089 Background saving started by pid 27906
[27906] 11 Jan 12:18:36.321
DB saved on disk
[27906] 11 Jan 12:18:36.325 RDB: 1 MB of memory used by copy-on-write
[36] 11 Jan 12:18:36.395
Background saving terminated with success
[36] 11 Jan 12:23:37.032 10 changes in 300 seconds. Saving...
[36] 11 Jan 12:23:37.041
Background saving started by pid 30263
[30263] 11 Jan 12:23:37.456 DB saved on disk
[30263] 11 Jan 12:23:37.468
RDB: 1 MB of memory used by copy-on-write
[36] 11 Jan 12:23:37.550 Background saving terminated with success
> 2014-01-11 12:23:56 UTC LOG: could not receive data from client: Connection reset by peer
2014-01-11 12:23:56 UTC LOG: unexpected EOF on client connection with an open transaction
2014-01-11 12:24:16 UTC LOG: could not receive data from client: Connection reset by peer
2014-01-11 12:24:16 UTC LOG: unexpected EOF on client connection with an open transaction
2014-01-11 12:39:42 UTC LOG: unexpected EOF on client connection with an open transaction
*
root@discourse:/opt/discourse_docker#

EOF errors are related to bad gateways errors trying to inserting new posts.

  1. Monitoring the CPu of the server while posting, it spikes considerably with one user inserting a post and then we constantly get bad gateway error and some times the server is not responding to pings due to high load.

  2. After the boostrap phase, we see this king of errors:
    df: Warning: cannot read table of mounted file systems: No such file or directory

I strongly believe docker is the way to semplify the discourse deploy, but as you can see it needs still some improvements. Helping us would help other people how are approching to discourse project without being RoR gurus.

Thanks in advance for any help.

Posts: 3

Participants: 2

Read full topic

Error after update to 0.9.8.1

$
0
0

zh99998 wrote:

i'm updating discourse from 0.9.7.9 to 0.9.8.1

after update, when rake db:migrate, it says database "discourse" not found.
i'm using old database name "discourse_prod", so i change my db name to "discourse"
and then it says

[discourse@sc73 discourse]$ RUBY_GC_MALLOC_LIMIT=90000000 RAILS_ENV=production bundle exec rake db:migrate
rake aborted!
uninitialized constant VestalVersions
/data/mycard/discourse/config/initializers/vestal_versions.rb:1:in `<top (required)>'
/data/mycard/discourse/vendor/bundle/ruby/2.0.0/gems/railties-4.0.2/lib/rails/engine.rb:609:in `block (2 levels) in <class:Engine>'
/data/mycard/discourse/vendor/bundle/ruby/2.0.0/gems/railties-4.0.2/lib/rails/engine.rb:608:in `each'
/data/mycard/discourse/vendor/bundle/ruby/2.0.0/gems/railties-4.0.2/lib/rails/engine.rb:608:in `block in <class:Engine>'
/data/mycard/discourse/vendor/bundle/ruby/2.0.0/gems/railties-4.0.2/lib/rails/initializable.rb:30:in `instance_exec'
/data/mycard/discourse/vendor/bundle/ruby/2.0.0/gems/railties-4.0.2/lib/rails/initializable.rb:30:in `run'
/data/mycard/discourse/vendor/bundle/ruby/2.0.0/gems/railties-4.0.2/lib/rails/initializable.rb:55:in `block in run_initializers'
/data/mycard/discourse/vendor/bundle/ruby/2.0.0/gems/railties-4.0.2/lib/rails/initializable.rb:44:in `each'
/data/mycard/discourse/vendor/bundle/ruby/2.0.0/gems/railties-4.0.2/lib/rails/initializable.rb:44:in `tsort_each_child'
/data/mycard/discourse/vendor/bundle/ruby/2.0.0/gems/railties-4.0.2/lib/rails/initializable.rb:54:in `run_initializers'
/data/mycard/discourse/vendor/bundle/ruby/2.0.0/gems/railties-4.0.2/lib/rails/application.rb:215:in `initialize!'
/data/mycard/discourse/vendor/bundle/ruby/2.0.0/gems/railties-4.0.2/lib/rails/railtie/configurable.rb:30:in `method_missing'
/data/mycard/discourse/config/environment.rb:5:in `<top (required)>'
/data/mycard/discourse/vendor/bundle/ruby/2.0.0/gems/railties-4.0.2/lib/rails/application.rb:189:in `require_environment!'
/data/mycard/discourse/vendor/bundle/ruby/2.0.0/gems/railties-4.0.2/lib/rails/application.rb:250:in `block in run_tasks_blocks'
Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)

Posts: 4

Participants: 1

Read full topic

Errors testing on Mac OS X

Support for Piwik Analytics as an alternative to Google Analytics

$
0
0

Lee_Ars wrote:

I do my own analytics with Piwik, a FOSS self-hosted Google Analytics-like platform. It relies on a similar bit of javascript in the <head> section of each page.

Obviously this is a low-priority question, but might it be possible to have Discourse support Piwik as an alternative to GA in the site settings? Actually, all it would take is the ability to inject the javascript code into each page's <head> (or in the <body>—that works fine, too).

Thanks smile

Posts: 14

Participants: 6

Read full topic

What kind of "Category Philosophy" do you recommend?

$
0
0

A Zeynel wrote:

I counted 16 or 17 categories here, but I am already approaching that number, and it is only me posting now. The subject of nutrition is huge. What kind of category scheme do you suggest I use? Is it better to use sub-categories? I see that there are no sub-categories here.

Posts: 2

Participants: 2

Read full topic


Underscores in linked text can cause markdown bug

$
0
0

Alexander wrote:

In a RubyRogues Parley thread, a user posted a link to a URL with a bunch of underscores, and noted that it didn't render properly.

From playing with it here a bit, it looks like putting one or more underscores in the linked text can cause a bunch of weird rendering decisions. If there are underscores around the link itself, it gets weird too.

Posts: 4

Participants: 3

Read full topic

Developer samples?

$
0
0

Watchman Monitoring wrote:

I'm installing discourse locally, so I can bundle the newrelic gem, and got almost to the end of https://github.com/discourse/discourse/blob/master/docs/DEVELOPMENT-OSX-NATIVE.md

when it calls for me to copy config/database.yml.development-sample from
https://github.com/discourse/discourse/tree/master/config

The file is missing frowning

I'm not sure if the file should be put back, or if the setup needs updating, but wanted to bring it up for discussion.

Posts: 5

Participants: 3

Read full topic

Asset pipeline dependency issues with plugins

$
0
0

Michael wrote:

[I don't know if this is a bug, or if we just don't really understand how it should work, recategorise at will]

We already noticed this during the development of the AdSense plugin, but our test environment wasn't very clean, so we blamed that. This weekend we installed a new test server and the problem still seems to exist.

When installing a plugin using rake plugin:install , followed by rake assets:precompile and a restart, the client translations (from config/locales/client.en.yml in the plugin directory) are often missing.

We found we had to do a rm -rf public/assets/application* and clean tmp/cache as well before precompiling the assets in order to make sure the assets are recompiled to include the new client translations. Even rake assets:clean doesn't seem to do the trick. Such a harsh delete causes downtime for the forum while precompiling the new asset files, so this is not really a desired way of doing things.

There's probably something I'm missing here, since I'm not very familiar with the asset pipeline. As far as I understand, those files must be added to the Sprockets manifest. But I'm clueless how this is done, especially with plugins. And I'm even more clueless how Sprockets does seem to find those files after all when the compiled assets are removed.

Posts: 1

Participants: 1

Read full topic

Advertising Specifications - List / Plugin Request

$
0
0

Briancguy wrote:

Here is a list of the type of advertising options I would like in Discourse. Perhaps others can add to this list. I'm not a software engineer so I don't know how difficult these are - but perhaps they could be implemented via a Plugin.

Banner Ads Options

  • Horizonal Banner ads placed between messages at the "list" view (Admin can specify how frequently ads show up)
  • Horizonal Banner ads placed between messages in the Message view when there are multiple postings (Admin can specify how frequently ads show up)
  • Horizonal Banner ad placed below the horizontal line (and above the "Invite Friends to Reply" button, when in Message view
  • Vertical banner ads on right of screen when in Message view. Some people have expressed the desire to have a floating 300 by 250 ad. Another approach might be periodically placed ads down the right side (repeats of the same or different ads every second or third message or so). It would be nice to be able to vary the frequency of the ads on the pages from 100% of pages to 1% of pages (see research below).
  • Support for Amazon affiliate ads - I'm thinking specifically of books, in the small text or small image type of ads. These could go either on the right side of the messages, or

Email Ads

  • Banner or Text / adwords ads at the top and/or bottom of outgoing emails to users (digest or notification emails)
  • Bulk email ad send to mailing list/subscriber list - with field to paste HTML into, to send. Periodically it would be nice to be able to send out special notifications and/or advertisements to users - directly from Discourse. With reporting on "opens", etc. similar to mailchimp, etc.

If Discourse does get some standard integration of advertising options (i.e. banner or text ads) - it would be very nice if it reflected the current research in this area:

http://www.bps-research-digest.blogspot.co.uk/2011/10/are-we-really-blind-to-internet-banners.html10

The lessons for web advertisers are clear: don't advertise on every page, vary ad location, and make sure the ad topic is congruent with the web-site content.

ResearchBlogging.orgHervet, G., Guérard, K., Tremblay, S., & Chtourou, M. (2011). Is banner blindness genuine? Eye tracking internet text advertising. Applied Cognitive Psychology, 25 (5), 708-716 DOI: 10.1002/acp.1742

Posts: 7

Participants: 3

Read full topic

Scroll Problem with How to Geek Forum / Chrome

$
0
0

Briancguy wrote:

I've been exploring How to Geek DIscourse implementation since Jeff told me tonight that its a good example of a site thats using most of the Discourse features as they come "out of the box".

I'm new to that form (and not registered) but When I click on a lot of the forum links (I'm using Chrome Version 29.0.1547.76 on a Macbook Air 13) they open up at the end of the discussion - at the very bottom, frequently with no visible post at all. This seems like a bug.

For example - here is what it typically looks like when I click on a representative link:

https://www.evernote.com/shard/s106/sh/e94eb651-2248-4224-b301-241daec168f0/9ee4a6918a4b37b8d5771c352ed1c94c

Posts: 11

Participants: 4

Read full topic

New account is created before the verification link is clicked

$
0
0

A Zeynel wrote:

I am testing creation of new accounts in my new Discourse forum. I noticed that the account is created in the admin Active Users panel before I clicked the link in the verification email. Is this how it is supposed to be?

I also noticed that the verification emails always go to gmail's spam folder. Is there a way to fix that? Or do we need to warn the users to check their spam folder?

Posts: 10

Participants: 3

Read full topic

Explicitly disallowed file types?

$
0
0

Michael Brown wrote:

In the Site Settings, the Discourse administrator can configure a list of allowed file types for uploaded files.

Which file types should be explicitly disallowed - such that we prevent (or at least pop up VERY SEVERE WARNINGS) administrators from even allowing them?

  • .htm, .html: to prevent XSS attacks

Posts: 2

Participants: 2

Read full topic


Reply not disabled if topic closed while viewing

$
0
0

Jay wrote:

Continuing the discussion from When topic is closed, you can still invite someone to reply:

Ok, in that case: Raising it as a separate issue (originally I thought it might be the same bug).

If viewing a topic and it is closed by someone while you are viewing it, the reply buttons at the bottom and in the closing-post are not disabled. Even if you are not already writing a reply, the buttons allow you to start composing a new one.

Posts: 5

Participants: 3

Read full topic

[Private Group Management] possible admin + frontend extensions/simplifications

$
0
0

almereyda wrote:

Continuing the discussion from User and group permissions for private categories/boards and GitHub:


Considering I want to add a user to a private category.

Right now I have to add a person to a (security) group in admin and then add this group to the category in frontend.

I'd like to grant moderators the permission to add users to groups within the second tab of frontend's Edit Category screen without ever entering /admin, whereas I'd love to interact with group memberships in /admin/users/*/.

Is there any other discussion going on related to this idea?

Posts: 3

Participants: 2

Read full topic

Allow authentication via multiple services on one account

$
0
0

davidcelis wrote:

If you have all six authentication services enabled as well as username/password and you're a fairly forgetful person (like me), it's possible you'll repeatedly forget what service you used to authenticate with a Discourse installation. It would be nice if, after my initial signup, I could go into my preferences and create more *userinfo associations with my account so that I can choose any old service to login to my existing account.

Posts: 33

Participants: 6

Read full topic

UX confusion (or me confusion) is it possible to edit old posts or only your most recent post in a topic?

$
0
0

jon wrote:

Sorry since this is a very basic question but when I go to edit a post in a topic, it seems like I am only able to edit the last post in that topic that I have. I'm curious if this is correct and intentional? Is there a doc that goes over UI conventions? I'm really enjoying discourse but still figuring it out.

thx in advance

Posts: 3

Participants: 2

Read full topic

Integrating Forum login with another login

$
0
0

Nitin Shivaram wrote:

We are thinking of using this forum as an embedded feature in our portal. To avoid undue spam we don't want to allow anon posts.

A good user experience would be to have the login (from portal) integrated with the forum login so users don't have to login 2 times. Is this something that is possible with Discourse forum now? If not, is this something that is planned?

Are there other ways of handling this?

Posts: 4

Participants: 4

Read full topic

Viewing all 60721 articles
Browse latest View live




Latest Images