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

Delete user from discourse-docker using ssh

$
0
0

@Ninetailz wrote:

Hello,

How do you remove user by using

./launcher enter app

and deleting the user by rake?
Just like you create admin with

rake admin:create

Is there a way to delete user like that?

Thanks,
NInetailz

Posts: 5

Participants: 4

Read full topic


Links without sub-folder path in embedded comments (Continue Discussion and user links)

$
0
0

@Strikki_Strik wrote:

I've just found a bug with combination of embedded comments and sub-folder installation:
'Continue Discussion' button and user links does not respect subfolder path.
But 'Start Discussion' button does respect subfolder path.
So I can only post once on embedded thread.

Here is the example: http://nsr24.com/football/game/705041
Discourse installed into: http://nsr24.com/social/en/
'Start Discussion' url is http://nsr24.com/social/en/t/bournemouth-west-ham-united-new-sports-rating/13
'Continue Discussion' url is just /t/bournemouth-west-ham-united-new-sports-rating/13

Discourse Version v1.5.0.beta8 +11 (Docker + subfolder official guide)

Posts: 6

Participants: 3

Read full topic

Cannot get this topic out of my unread list due to whispers

$
0
0

@mcwumbly wrote:

This topic says there are 2 unread posts in it, but I can't find them.

I've scrolled through the entire thing.

I'm guessing there are either deleted posts or whisper posts in it... The URL changes from /44 to /42 after I click on it in the topic list.

I haven't tried to do "dismiss unread" yet in case it's helpful to leave it in this state to get more info before I attempt that.

Posts: 5

Participants: 4

Read full topic

Migrating a large forum

$
0
0

@zh99998 wrote:

I'm migrating a many-years-old large forum from Discuz to discourse.
there is about 100k users, 3M posts and 150GB attachments.

I'm using the discuz_x import script to do this now, but it's very slow, and may take many many days to finish it.

is there any advice for me writing a faster import script?

Posts: 3

Participants: 3

Read full topic

Does DISCOURSE_SMTP_ADDRESS do MX lookup

$
0
0

@Blaisorblade wrote:

What's the content of DISCOURSE_SMTP_ADDRESS? Is it the actual hostname of the SMTP server, or can Discourse perform an MX lookup? I do need Discourse to do the MX lookup, and couldn't find any actual info in docs, even though I tracked this down to http://api.rubyonrails.org/classes/ActionMailer/Base.html. Docs mostly just talk of SMTP credentials. (For comparison, Postfix gives control over this behavior, while MSMTP just doesn't support MX lookup on the relay host).

Unfortunately I can't even try this out for now on my staging Discourse instance — it runs on the same physical server (our only one), and I can't touch this because Docker/AUFS are causing not-yet-diagnosed instabilities: stopping my production Discourse instance fails and leaves it unusable until rebooting the host. (No, not my lucky day — and it was a bad idea to trust Docker to actually be robust).

Posts: 7

Participants: 4

Read full topic

From DISCOURSE_SMTP_ADDRESS in discourse_docker to /var/www/discourse/config/discourse.conf

$
0
0

@Blaisorblade wrote:

I'm trying to diagnose a major issue with AUFS affecting my forums, and need to understand some detail in Docker startup to do this properly.

Question

Does stopping or starting up Discourse modify /var/www/discourse/config/discourse.conf, or is it changed only when rebuilding a container? I think I've confirmed that rebuilding a container will change it, through code in /var/discourse/templates/web.template.yml (from @sam's discourse_docker repository).

I think I do just need the answer to that question; if you disagree and want to double check, below's more info.

TL;DR. Background

Basically, changes to smtp_address in /var/www/discourse/config/discourse.conf are not autoreloaded, docker stop/restart <Discourse_Container> hangs repeatably, with processes inside the container using 100% CPU in kernel space and outputting kernel stacktraces that suggest "infinite loop", and after rebooting the host, the changes to /var/www/discourse/config/discourse.conf are gone, even though I never rebuilt the container. So, either Discourse is overwriting it, or AUFS is losing the changes.

Why??

My mail server sysadmin asked me to urgently fix my Discourse configuration, and rebuilding the container right away would have been too much downtime (though of course I planned to do that eventually).

Evidence for kernel bug

Since I'm suspecting a kernel bug, and you shouldn't trust me on that just so, here's the smoking gun — a process in state D (uninterruptible sleep) for two minutes.

Jan 12 16:16:07 kamino kernel: [1254339.769725] INFO: task runsv:26554 blocked for more than 120 seconds.
Jan 12 16:16:07 kamino kernel: [1254339.769927]       Tainted: G           OX 3.13.0-74-generic #118-Ubuntu
Jan 12 16:16:07 kamino kernel: [1254339.770135] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
Jan 12 16:16:07 kamino kernel: [1254339.770383] runsv           D ffff88080f033180     0 26554  26526 0x00000004
Jan 12 16:16:07 kamino kernel: [1254339.770386]  ffff8807744dba90 0000000000000082 ffff8806653f8000 ffff8807744dbfd8
Jan 12 16:16:07 kamino kernel: [1254339.770389]  0000000000013180 0000000000013180 ffff8806653f8000 ffff8808003db408
Jan 12 16:16:07 kamino kernel: [1254339.770392]  ffff8808003db40c ffff8806653f8000 00000000ffffffff ffff8808003db410
Jan 12 16:16:07 kamino kernel: [1254339.770394] Call Trace:
Jan 12 16:16:07 kamino kernel: [1254339.770401]  [<ffffffff81729499>] schedule_preempt_disabled+0x29/0x70
Jan 12 16:16:07 kamino kernel: [1254339.770404]  [<ffffffff8172b305>] __mutex_lock_slowpath+0x135/0x1b0
Jan 12 16:16:07 kamino kernel: [1254339.770406]  [<ffffffff8172b39f>] mutex_lock+0x1f/0x2f
Jan 12 16:16:07 kamino kernel: [1254339.770419]  [<ffffffffa02ab276>] au_new_inode+0xa6/0x700 [aufs]
Jan 12 16:16:07 kamino kernel: [1254339.770423]  [<ffffffff811ca589>] ? vfs_create+0x109/0x130
Jan 12 16:16:07 kamino kernel: [1254339.770429]  [<ffffffffa02ad8b8>] epilog+0x78/0x160 [aufs]
Jan 12 16:16:07 kamino kernel: [1254339.770435]  [<ffffffffa02ae1a1>] add_simple+0x1e1/0x2e0 [aufs]
Jan 12 16:16:07 kamino kernel: [1254339.770440]  [<ffffffffa02ac020>] ? aufs_permission+0x190/0x310 [aufs]
Jan 12 16:16:07 kamino kernel: [1254339.770445]  [<ffffffffa02ae334>] aufs_create+0x34/0x40 [aufs]
Jan 12 16:16:07 kamino kernel: [1254339.770447]  [<ffffffff811ca54d>] vfs_create+0xcd/0x130
Jan 12 16:16:07 kamino kernel: [1254339.770450]  [<ffffffff811cb71e>] do_last+0x100e/0x1200
Jan 12 16:16:07 kamino kernel: [1254339.770453]  [<ffffffff8131666b>] ? apparmor_file_alloc_security+0x5b/0x180
Jan 12 16:16:07 kamino kernel: [1254339.770457]  [<ffffffff812d8c86>] ? security_file_alloc+0x16/0x20
Jan 12 16:16:07 kamino kernel: [1254339.770459]  [<ffffffff811cde8b>] path_openat+0xbb/0x640
Jan 12 16:16:07 kamino kernel: [1254339.770462]  [<ffffffff811cec9b>] ? SYSC_renameat+0xeb/0x420
Jan 12 16:16:07 kamino kernel: [1254339.770465]  [<ffffffff811cf27a>] do_filp_open+0x3a/0x90
Jan 12 16:16:07 kamino kernel: [1254339.770467]  [<ffffffff811dc0d7>] ? __alloc_fd+0xa7/0x130
Jan 12 16:16:07 kamino kernel: [1254339.770470]  [<ffffffff811bd839>] do_sys_open+0x129/0x280
Jan 12 16:16:07 kamino kernel: [1254339.770472]  [<ffffffff811bd9ae>] SyS_open+0x1e/0x20
Jan 12 16:16:07 kamino kernel: [1254339.770475]  [<ffffffff8173575d>] system_call_fastpath+0x1a/0x1f

That process shouldn't be using 100% CPU, but three other ones (presumably from the same container) are:

26555 root      20   0     168      4        R  99.9  0.0   4:00.38 runsv rsyslog
26553 root      20   0     168      4        D  98.6  0.0   3:55.57 runsv postgres
26556 root      20   0     168      4        R  97.2  0.0   3:52.82 runsv cron

This info isn't conclusive of course—as I said, I'm investigating—but it is rather suggestive evidence.

Posts: 2

Participants: 2

Read full topic

Window open() Method For sign up button

$
0
0

@LanieI wrote:

I was hoping to link my Discourse index page, then have the sign up popup open automatically using the window open() method. Does anyone know what code I would use to specify the sign up popup. (Or maybe there's a link?)

Thanks a lot!
Lanie

Posts: 3

Participants: 3

Read full topic

SSO problem - how to debug?

$
0
0

@trudat wrote:

I have recently migrated my discourse onto a new server.
I now have inconsistent results from SSO logins.
One user (maybe more) is shown a login prompt when I have configured SSO to authenticate to the site directly. We have tried clearing cache, incognito/different browser, force logout of the user by admin. It works fine for several other users.

Here are the SSO settings on the back end. I can provide the working PHP code of my other site handling the request.

My question - besides help-me-fix-it! - is how can we debug this issue with dev tools. I'm looking in the network tab of chrome dev for where the authentication is being handled. Where else can I see why this might be failing?

Posts: 1

Participants: 1

Read full topic


100% CPU Usage with Vagrant Setup

$
0
0

@COLABORATI wrote:

Hi, this is the official bugtracker, yes? wondering a little bit about, however, if it is, then ok :slightly_smiling:

I followed the vagrant installation guide and the discourse instance seems to work ok, but CPU usage is absurdly high and sticks at 100%.

I am not completely new at rails, but new at discourse, however this is just following-the-guide, so no fiddling, no customizations, everything oob - I would like to consider this a bug.

Any hint?

Thank you very much for your attention,
Karma

Posts: 1

Participants: 1

Read full topic

Magic Markdown tag for links to tags

$
0
0

@pfaffman wrote:

In the editor typing @ or # offers completion to link to users and categories, respectively.

Stackexchange offers a [tag:tag-name] tag to link to messages of a tag. I cannot seem to find such functionality here. Am I missing something?

If I'm not missing something, here's how I'd use it. I'm using Discourse to run online classes and have people add tags to their solutions to the assignments/challenges I give them. It would be handy to have an easy way to create a link to all of the topics with a given tag. (And it would save, maybe a dozen keystrokes each time I add such a link! :smiley:).

Posts: 4

Participants: 2

Read full topic

Calling External API on new Post

$
0
0

@zajako wrote:

Hello,

I'm using Discourse for a video game server that I run, I'm wanting to put a reward in the game for posts on the discourse board. Maybe even for like's and such as well.

I am inquiring as to how difficult it would be to send an API call to an external script on another domain, when a new topic or reply is posted with a key and the name of the person who posted.

That script would then handle the rest as far as sending them some form of digital currency.

Thanks!

Posts: 2

Participants: 2

Read full topic

Horizontal Scroll on mobile

Progressively worse 500 errors

$
0
0

@figlet wrote:

I'm on a fresh docker install about a week old upgraded to the latest docker container. After a day or two of operation, Discourse starts throwing 500 errors on nearly any sort of action. Thread views, attempts to access the admin panel, anything. The error log accessible by the admin panel has very little in it-- this is happening for lots of people simultaneously on nearly any action but there's nothing showing up in the error log correlated to the times of these page views. I see a few errors there, mostly this: "TypeError: e.get is not a function" but I doubt entirely these are correlated to the problem at hand.

This gets progressively worse after it begins happening until everything is throwing an error 500 a hundred percent of the time. I currently fix it by doing:
./launcher stop app
./launcher start app

What can I do to diagnose this?

Posts: 4

Participants: 2

Read full topic

How Coinbase Uses Discourse to Educate Customers and Improve SEO

$
0
0

@erlend_sh wrote:

As part of our ongoing series of interviews with customers, our latest is with John Mardlin who helps traders, devs and humans use bitcoin at Coinbase — partly through their Discourse-powered community.coinbase.com. What is Coinbase? Coinbase’s mission is to make bitcoin accessible for normal people. Our core product is a wallet with +3MM users, which…


This topic is for comments on the original blog entry at: http://blog.discourse.org/2016/01/how-coinbase-uses-discourse-to-educate-customers-and-improve-seo/

Posts: 1

Participants: 1

Read full topic

Add invites filter to notification menu, change invite icon to pointing hand

$
0
0

@tobiaseigen wrote:

Continuing the discussion from User Invitation/Poking a user to a topic is now live!:

I'm confronted by some confused users (moderators, actually) who want to use the invite button and find it confusing. We will have to update the email template so I'm glad that's possible.

But when the invite appears on the notification pulldown people don't understand what the hand pointing right means. And also invite notifications cannot be filtered by on the notifications page.

So it would be helpful to add a line to that notifications menu providing a filter for invite notifications, which also at the same time tells users what that hand pointing right is for. It could go between the mentions and edits.

Meanwhile also suggest changing the INVITE icon from a group icon to the hand pointing right, to reinforce what happens when you invite people.

Cheers! :beers:

Posts: 2

Participants: 2

Read full topic


How do I disable the attribute disabled, cannotCreateTopicOnCategory from the 'New Topic' button?

$
0
0

@ivanrlio wrote:

Hi there,

So I currently have the +New Topic in the header of my Discourse, just to the right of the user avatar. What I'm trying to do is enable to a user to create a topic, whilst viewing another topic (that's the way our site works). I am overriding headers.hbs and have inserted the following code to do so:

       {{#if currentUser}}
          {{d-button  id="create-topic"
                class="btn-default"
                action="createTopic"
                icon="plus"
                label="topic.create"
                disabled=cannotCreateTopicOnCategory}}
        {{/if}}

I have tried removing disabled=cannotCreateTopicOnCategory, but this doesn't work. Any ideas?

Thanks!

Posts: 4

Participants: 3

Read full topic

How long are the UserHistory logs kept

$
0
0

@eriko wrote:

I am trying to remove some complexity on my end about tracking users that have deleted themselves to avoid recreating based on out user feed. I will not describe the current yech! but I think that I can use the data in the logs about deletes. The question is how long are those UserHistory logs kept?

Posts: 2

Participants: 2

Read full topic

My first plugin. Need advice

$
0
0

@stevenpslade wrote:

I am creating my first plugin. Here's the outline on what it should do:

It should allow me to get the custom_groups of a user. The reason there is some handlebars in the plugin is because I eventually want to change the state of nav-bar depending on a user's custom_groups.

The plugin should access the Users Controller, get their custom groups with:
groups = current_user.groups.all.select("name") and then take the data from that and render it in json for the javascripts/initializer to make an ajax call and get the user's custom groups.

Here is the plugin: https://github.com/stevenpslade/discourse-data-menu-item

As aforementioned, this is my first one and I am having trouble even testing what results I'm getting from the ajax call as well as if the code in the controller is correct. I'm used to being in a pure rails app where I can use byebug's and binding.pry's.

If a more experienced plugin dev could give this a once over and maybe give me some advice, I would really appreciate that. I hope to continue making Discourse plugins after I get past this first one! :slightly_smiling:

Posts: 1

Participants: 1

Read full topic

Bulk Suspending Users - Suspension Reason Property

$
0
0

@skoota wrote:

Hi All,

I am writing a Ruby script to bulk suspend users (I would like to permanently block the users from our Discourse forum, and from discussions in this thread suspension seems like the best option).

When inspecting the users in the console by doing:

me = User.find_by_username_or_email('1234@example.com')

I note that each user has the properties suspended_at and suspended_till. They are set to nil if the user is not suspended, otherwise they have a date and time. I assume that I can just create a new DateTime object with the relevant dates and times and assign to these properties to suspend the users.

However, I cannot see any properties for the suspension reason or referencing the admin who instigated the suspension. Does anyone know where I can find those properties?

It's probably also worthwhile asking - will this procedure I have outlined work?

Thanks!

Posts: 1

Participants: 1

Read full topic

Include avatar or username in digest email

$
0
0

@mcwumbly wrote:

I'm currently piloting a discourse instance with a number of users who are new to discourse.

It's a private instance internal to an organization. Many of the members have signed up, a handful are engaging and starting to create some initial content through organic discussion.

Many more are lurking or not really participating too frequently yet. One of those people showed me the digest email he got today and told me that he felt that he might be more likely to click through on a few of the topics in there had hew known they were written by certain people.

Is this something that has been considered in the past?

I searched around but couldn't find any mention of it anywhere.

Posts: 2

Participants: 2

Read full topic

Viewing all 60707 articles
Browse latest View live




Latest Images