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

Let's Encrypt renewal errors

$
0
0

@BrandonIFI wrote:

The Let’s Encrypt cert on our site expired over the weekend, and I’m having trouble getting the site back online.

When I tried to enter the container, it prompted I needed to upgrade docker first. I did that, and then rebuilt and was able to get in. I still am unable to get the forum back online.

The logs have a bunch of lines like this:

nginx: [emerg] PEM_read_bio_X509_AUX("/shared/ssl/vexforum.cn.cer") failed (SSL: error:0906D06C:PEM routines:PEM_read_bio:no start line:Expecting: TRUSTED CERTIFICATE)

Relevant pats at the beginning of the log include:

run-parts: executing /etc/runit/1.d/letsencrypt
[Mon Dec 18 18:27:58 UTC 2017] Registering account
[Mon Dec 18 18:28:01 UTC 2017] Registered
[Mon Dec 18 18:28:01 UTC 2017] ACCOUNT_THUMBPRINT=‘zGKwI265ha0J7vIlTyJx_oXomiRaCF_pKPex4zaWsQc’
[Mon Dec 18 18:28:01 UTC 2017] Creating domain key
[Mon Dec 18 18:28:02 UTC 2017] The domain key is here: /shared/letsencrypt/vexforum.cn/vexforum.cn.key
[Mon Dec 18 18:28:02 UTC 2017] Single domain=‘vexforum.cn
[Mon Dec 18 18:28:02 UTC 2017] Getting domain auth token for each domain
[Mon Dec 18 18:28:02 UTC 2017] Getting webroot for domain=‘vexforum.cn
[Mon Dec 18 18:28:02 UTC 2017] Getting new-authz for domain=‘vexforum.cn
[Mon Dec 18 18:28:06 UTC 2017] The new-authz request is ok.
[Mon Dec 18 18:28:06 UTC 2017] Verifying:vexforum.cn
[Mon Dec 18 18:28:11 UTC 2017] vexforum.cn:Verify error:Invalid response from .well-known/acme-challenge/iCC19XTIly-mShsL9NtjFyTin5AGXZ_BUVdCCE8H
OpA:
[Mon Dec 18 18:28:11 UTC 2017] Please check log file for more details: /shared/letsencrypt/acme.sh.log
Error loading file ca.cer
140313005983384:error:02001002:system library:fopen:No such file or directory:bss_file.c:175:fopen(‘ca.cer’,‘r’)
140313005983384:error:2006D080:BIO routines:BIO_new_file:no such file:bss_file.c:178:
140313005983384:error:0B084002:x509 certificate routines:X509_load_cert_crl_file:system lib:by_file.c:253:
usage: verify [-verbose] [-CApath path] [-CAfile file] [-purpose purpose] [-crl_check] [-no_alt_chains] [-attime timestamp] [-engine e] cert1 cert2 …
recognized usages:
sslclient SSL client
sslserver SSL server
nssslserver Netscape SSL server
smimesign S/MIME signing
smimeencrypt S/MIME encryption
crlsign CRL signing
any Any Purpose
ocsphelper OCSP helper
timestampsign Time Stamp signing
[Mon Dec 18 18:28:14 UTC 2017] Single domain=‘vexforum.cn
[Mon Dec 18 18:28:14 UTC 2017] Getting domain auth token for each domain
[Mon Dec 18 18:28:14 UTC 2017] Getting webroot for domain=‘vexforum.cn
[Mon Dec 18 18:28:14 UTC 2017] Getting new-authz for domain=‘vexforum.cn
[Mon Dec 18 18:28:17 UTC 2017] The new-authz request is ok.
[Mon Dec 18 18:28:17 UTC 2017] Verifying:vexforum.cn
[Mon Dec 18 18:28:24 UTC 2017] vexforum.cn:Verify error:Invalid response from vexforum.cn/.well-known/acme-challenge/PUsMqe1mjPwhnyGnNALAh4R-Wsx83Rz8F_1MLqgI
_jU:
[Mon Dec 18 18:28:24 UTC 2017] Please check log file for more details: /shared/letsencrypt/acme.sh.log
[Mon Dec 18 18:28:27 UTC 2017] Installing key to:/shared/ssl/vexforum.cn.key
[Mon Dec 18 18:28:27 UTC 2017] Installing full chain to:/shared/ssl/vexforum.cn.cer
cat: /shared/letsencrypt/vexforum.cn/fullchain.cer: No such file or directory
[Mon Dec 18 18:28:27 UTC 2017] Run reload cmd: sv reload nginx

I saw other discussions about ipv6 causing trouble, but I’ve got no AAAA records on vexforum.cn

Am I missing something? Other things to try?

Posts: 4

Participants: 2

Read full topic


Automatically reload WP post page when a comment is added on Discourse?

$
0
0

@hanks wrote:

I’ve made an ugly ajax comment form on my WP post pages. The comment is sent to Discourse successfully through the API, but I’d like the WP post page to be automatically reloaded when Discourse sends the new comment to WP.
Is such a thing possible?

Posts: 1

Participants: 1

Read full topic

Redis connection timed out

$
0
0

@pfaffman wrote:

I just rebuilt a site with 8GB ram. Apparently sidekiq had died a few days ago and is now trying to catch up on 500K queued processes.

It runs for a while and then redis stops responding. Logs have errors like these:

Error connecting to Redis on localhost:6379 (Redis::TimeoutError) subscribe failed, reconnecting in 1 s
econd. Call stack ["/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/redis-3.3.5/lib/redis/client.rb:34
5:in `rescue in establish_connection'", "/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/redis-3.3.5/l
ib/redis/client.rb:331:in `establish_connection'", "/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/re
dis-3.3.5/lib/redis/client.rb:101:in `block in connect'", "/var/www/discourse/vendor/bundle/ruby/2.4.0/
gems/redis-3.3.5/lib/redis/client.rb:293:in `with_reconnect'", "/var/www/discourse/vendor/bundle/ruby/2
.4.0/gems/redis-3.3.5/lib/redis/client.rb:100:in `connect'", "/var/www/discourse/vendor/bundle/ruby/2.4
.0/gems/redis-3.3.5/lib/redis/client.rb:276:in `with_socket_timeout'", "/var/www/discourse/vendor/bundl
e/ruby/2.4.0/gems/redis-3.3.5/lib/redis/client.rb:133:in `call_loop'", "/var/www/discourse/vendor/bundl
e/ruby/2.4.0/gems/redis-3.3.5/lib/redis/subscribe.rb:43:in `subscription'", "/var/www/discourse/vendor/
bundle/ruby/2.4.0/gems/redis-3.3.5/lib/redis/subscribe.rb:12:in `subscribe'", "/var/www/discourse/vendo
r/bundle/ruby/2.4.0/gems/redis-3.3.5/lib/redis.rb:2775:in `_subscription'", "/var/www/discourse/vendor/
bundle/ruby/2.4.0/gems/redis-3.3.5/lib/redis.rb:2143:in `block in subscribe'", "/var/www/discourse/vend
or/bundle/ruby/2.4.0/gems/redis-3.3.5/lib/redis.rb:58:in `block in synchronize'", "/usr/local/lib/ruby/
2.4.0/monitor.rb:214:in `mon_synchronize'", "/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/redis-3.3
.5/lib/redis.rb:58:in `synchronize'", "/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/redis-3.3.5/lib
/redis.rb:2142:in `subscribe'", "/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/message_bus-2.1.1/lib
/message_bus/backends/redis.rb:336:in `global_subscribe'", "/var/www/discourse/vendor/bundle/ruby/2.4.0
/gems/message_bus-2.1.1/lib/message_bus.rb:525:in `global_subscribe_thread'", "/var/www/discourse/vendo
r/bundle/ruby/2.4.0/gems/message_bus-2.1.1/lib/message_bus.rb:473:in `block in new_subscriber_thread'"]
Job exception: Connection timed out

Job exception: Connection timed out

Job exception: Error connecting to Redis on localhost:6379 (Redis::TimeoutError)

Job exception: Connection timed out

Job exception: Connection timed out

I’ve got this set now:

  db_shared_buffers: "2048MB"
  db_work_mem: "50MB"

I’m going to try doubling db_shared_buffers next. Edit: but that didn’t help either.

My multisite instance has also been having the database die several times a day. I thought it was coincident with backups, but I’m not convinced that’s true.

Has something changed about redis in the past couple weeks that could affect this?

Posts: 13

Participants: 5

Read full topic

Disallow / Block Posting Links to a Domain?

$
0
0

@Berto wrote:

Hi, I’d like to ban posting links to a domain. Is this possible anywhere in the settings?

For the record, the domain is actually my own subdomain (sandbox blog). Sometimes the WordPress plugin imports/updates some of the posts and I don’t want links to this domain ever going into my live forum.

Other solution is to also make a sandboxed forum, but that’s time consuming as well.

Thanks!

Posts: 1

Participants: 1

Read full topic

Access limitation on working hours

$
0
0

@terraboss wrote:

Hi friends,
I‘d like to suggest some „business feature“:

It should be possible to set up working hours for specific user groups / members, so employees could work from everywhere, but only when they are allowed to. There is no more need to discuss overtime costs and unhealthy sleep behavior. :wink:

It‘s also a reminder for the most couraged members / co-workers to prevent them from burn-outs.

What do you think?

Best

Posts: 2

Participants: 2

Read full topic

Displays Correct in Preview But Reverts to Plain Text Once Posted

$
0
0

@C_J wrote:

I have encountered an odd error since the last update (v1.9.0.beta16 +83).

When posting a link to any site the Onebox embed shows in the preview correctly. However when going to actually post it just displays a plain, unlinked URL. Example screenshot:

Also if you manually link text it also keeps it as plain text once published. Editing does nothing, even if the preview is correct. Text remains plain on publication or edit. If you rebuild the HTML nothing happens either.

This all used to work fine, and I haven’t changed anything on the site except the update.

Anyone any ideas?

Posts: 2

Participants: 2

Read full topic

Can't set alternative reply by email address

$
0
0

@notriddle wrote:

NameError: uninitialized constant AlternativeReplyByEmailAddressesValidator::ReplyByEmailAddressValidator
Did you mean?  ReplyByEmailEnabledValidator
from /var/www/discourse/lib/validators/alternative_reply_by_email_addresses_validator.rb:9:in `valid_value?'

Posts: 3

Participants: 2

Read full topic

Tooltip `[en.undefined]` for Flags -> Flagged Posts -> Agree and Delete


Only option shown for Flag > Flagged Posts -> Agree is "Agree and Keep post"

Site goes down at the same time every day in memory-constrained environment

$
0
0

@axfelix wrote:

Hi,

I’m not sure what this could be, and I think running Discourse on 1GB of memory plus 1GB of swap is probably below minimum spec at this point so I’d understand if this is outright unsupported, but I’m having a weird issue where my site goes down at exactly the same time every day (at around 2:48 PST) for five minutes or so. Trying to hit it in the meantime sometimes throws 429’s.

sshing into the server and eyeballing top when this happens shows that about half of swap has been released (suggesting that maybe something else is running on the server and elbowing out Discourse, but I don’t know what it could be, there’s nothing in cron for that time of day), and most of the CPU is consumed by a single postmaster process until it runs for a little over two minutes, is killed, and then everything gradually goes back to normal.

Any idea what’s up here? Been happening for the past several releases at least.

Posts: 6

Participants: 2

Read full topic

Webhooks: how best to differentiate a PM from a public post

$
0
0

@johnaschroeder wrote:

Hi All,

I’ve been scrutinizing the various JSON post results from our webhooks. We record and react to public posts that contribute to our common knowledge-base differently than PMs or discobot conversations. For example, it’s relatively easy to filter out posts from discobot using its userid; likewise with system posts and topics. However, I haven’t been able to identify a reliable way to filter posts back to discobot, or PMs between two users. At first I thought only PMs had a “reply_to_user” field, but it appears that some (but not all) posts have it also. Here is an example of what we are trying to filter out:

{
"post": {
    "id": 1296,
    "name": "Test User",
    "username": "testuser",
    "avatar_template": "/letter_avatar_proxy/v2/letter/c/stringhere/{size}.png",
    "created_at": "2017-12-14T21:11:30.992Z",
    "cooked": "\u003cp\u003e[quote=\"cutlery, post:11, topic:626\"]\u003cbr\u003eIf this is coffee, please bring me some tea; but if this is tea, please bring me some coffee\u003c/p\u003e",
    "post_number": 13,
    "post_type": 1,
    "updated_at": "2017-12-14T21:11:30.992Z",
    "reply_count": 0,
    "reply_to_post_number": 11,
    "quote_count": 1,
    "avg_time": null,
    "incoming_link_count": 0,
    "reads": 1,
    "score": 0,
    "yours": false,
    "topic_id": 626,
    "topic_slug": "robot-greetings",
    "topic_title": ":robot: Greetings!",
    "display_username": "Test User",
    "primary_group_name": null,
    "primary_group_flair_url": null,
    "primary_group_flair_bg_color": null,
    "primary_group_flair_color": null,
    "version": 1,
    "user_title": null,
    "reply_to_user": {
        "username": "testuser",
        "avatar_template": "/letter_avatar_proxy/v2/letter/c/stringhere/{size}.png"
    },
    "actions_summary": [{
        "id": 2,
        "can_act": true
    }, {
        "id": 3,
        "can_act": true
    }, {
        "id": 4,
        "can_act": true
    }, {
        "id": 5,
        "hidden": true,
        "can_act": true
    }, {
        "id": 6,
        "can_act": true
    }, {
        "id": 7,
        "can_act": true
    }, {
        "id": 8,
        "can_act": true
    }],
    "moderator": false,
    "admin": false,
    "staff": false,
    "user_id": 1234,
    "hidden": false,
    "hidden_reason_id": null,
    "trust_level": 0,
    "deleted_at": null,
    "user_deleted": false,
    "edit_reason": null,
    "can_view_edit_history": true,
    "wiki": false
}
}

Posts: 7

Participants: 4

Read full topic

Webhooks for the first post in a series: topic or post?

$
0
0

@johnaschroeder wrote:

When we first implemented webhooks, we were surprised to find that the first entry in a series of posts came through as post_created instead of topic_created. You can see a live example (minus the PIA) below. We wanted to treat the first post in a series (i.e. topic creation) differently than replies, so we looked at post_number and if it is equal to one we treat it as a new topic, if it’s > 1 it’s a reply.

This left me scratching my head. We can see the system creates a new topic_created header for backup, but that was it. Until today. We just saw a first post in a series by a user logged as topic_created. This was what we originally expected, but wasn’t happening until today. Any further information or explanation would be greatly appreciated.

Thanks!

			"X-Discourse-Instance": "http://discourse.petpartnersusa.com",
			"X-Discourse-Event-Id": "35",
			"X-Discourse-Event-Type": "post",
			"X-Discourse-Event": "post_created"
{
	"post": {
		"id": 1123,
		"name": "Name Here",
		"username": "usernamehere",
		"avatar_template": "/user_avatar/discourse.petpartnersusa.com/username/{size}/249_1.png",
		"created_at": "2017-11-21T21:51:15.649Z",
		"cooked": "<p>We're reaching out to see what other clinics are doing for pain<br>management after the recent restriction on Schedule II opioids. We<br>regularly used Hydromorphone and Fentanyl TDG patches on our orthopedic<br>patients to control post-op pain. I can't seem to locate any vendor that<br>has any in stock and the ETA on them being back are pretty vague.</p>\n\n<p>If anyone has any suggestions, we would appreciate it.</p>",
		"post_number": 1,
		"post_type": 1,
		"updated_at": "2017-11-21T21:51:15.649Z",
		"reply_count": 0,
		"reply_to_post_number": null,
		"quote_count": 0,
		"avg_time": null,
		"incoming_link_count": 0,
		"reads": 1,
		"score": 0,
		"yours": false,
		"topic_id": 561,
		"topic_slug": "schedule-11-restrictions",
		"topic_title": "Schedule 11 Restrictions",
		"display_username": "User Name",
		"primary_group_name": null,
		"primary_group_flair_url": null,
		"primary_group_flair_bg_color": null,
		"primary_group_flair_color": null,
		"version": 1,
		"user_title": null,
		"actions_summary": [{
				"id": 2,
				"can_act": true
			},
			{
				"id": 3,
				"can_act": true
			},
			{
				"id": 4,
				"can_act": true
			},
			{
				"id": 5,
				"hidden": true,
				"can_act": true
			},
			{
				"id": 6,
				"can_act": true
			},
			{
				"id": 7,
				"can_act": true
			},
			{
				"id": 8,
				"can_act": true
			}
		],
		"moderator": false,
		"admin": false,
		"staff": false,
		"user_id": 118,
		"hidden": false,
		"hidden_reason_id": null,
		"trust_level": 1,
		"deleted_at": null,
		"user_deleted": false,
		"edit_reason": null,
		"can_view_edit_history": true,
		"wiki": false
	}
}

Posts: 4

Participants: 2

Read full topic

"who is typing" not seen at the bottom of the topic unless we refresh the page

$
0
0

@nixie wrote:

Hi,

I’ve found a minor issue with the “Who is typing” feature.

Repro Steps

  1. In desktop
  2. In PM
  3. When someone types a message to us, its seen if we open the composer, but its not seen at the bottom of the topic

BUT,
4. If I do a refresh of the page, its seen at the bottom of the topic as well.

Environment details

  1. Here at meta
  2. In desktop
  3. OS - mac
  4. Browser - Chrome
  5. Only in PM (in public topics, it works fine)

Posts: 6

Participants: 4

Read full topic

Dark theme header wraps on small mobile devices

Where can I find the template for navigation?

$
0
0

@lll wrote:

I am trying to create a column layout based on Angus’s incredible plugin.

He’s done a really great job documenting how to create widgets that can be added to his plugin that would fit nicely on the side of the main content. The widgets can use native Discourse code and everything will fit just fine.

I spent a bunch of time looking through git hub trying to find the template part that generates the navigation menu so I can use it to create a widget.

Here’s the navigation menu that I want to recreate:

Here’s why I need to move the menu to a widget (overlaps with content - border added for demo):

And ideally, I’d like to move to somewhere like this (rough sketch):


Like I said, Angus has done a really good job at documenting how to create widgets.

All I want is a bit of help in finding the part of Discourse code that generates the navigation menu so I can adapt it into a widget.

Posts: 3

Participants: 2

Read full topic


Category unlike any other category

$
0
0

@GiorgosK wrote:

We have one category in our forum “The lounge” that when edited it does not give us as “permission” tab or in “general” tab does not allow to set “parent” or set “description”

I don’t know how this category came about (probably it was auto created on install) but posts to this category don’t display the category in the “Latest” page

what does it seem to be the problem or is it a setting ?

Posts: 9

Participants: 5

Read full topic

Whatsup with meta logo...?

Need Step-up Assistance

$
0
0

@BrickWood wrote:

What would you like done?
I’m 1 person trying to run an entire company - from product development to manufacturing to shipping. I do it all - therefore, I just don’t have time to properly set-up my Discourse forum. Here’s what I need done:

I need someone to take our current Discourse forum -

mydomainname.discoursehosting.net/

And set it up so it is visible on my current website as -

forum.mydomainname.com

Don’t know if you need this bit of info - but our website is in Adobe Muse.

In addition, I need for you to set-up our Discourse forum so all of the incoming topics, are placed into a particular Category of our choosing.

When do you need it done?
The sooner the better.

What is your budget, in $ USD that you can offer for this task?
Hoping $40 to your PayPal account will cover everything.

Thank you!

Posts: 2

Participants: 2

Read full topic

Geolocation feature

$
0
0

@Ivan_Rapekas wrote:

Hello,

I have just found a similar topic ‘Add users to regions in community based on geolocations’ and realized it as a very cool feature. I would like to have such feature in Discourse, please vote it :wink:. Let me share my thoughts, it may look fantastic, but who knows…

Let us imagine that many people are members of a communities located on a single big forum like meta.discourse.org.

I propose to use Discourse as a user-quick-response platform to have a fast answer to users’ personal questions. Of course, as an administrator, I can divide my forum into hundreds of themes to collaborate people using their preferences and interests.

But now there is no any dynamic automatic division based on some important user’s state. When I travel, for example, I would like to be automatically joined to groups of a community located anywhere around the world.

For example, I am a Writer, or Java developer, or a Scuba diver, or a Biker, or a Woodworker, whatever… and I want to meet classmates/potential friends, who have the same hobbies like mine, take part in some special events or simply spend my time great! At any location where I could travel.

I understand, that there are a lot of special forums where I could join before my trip, and find some information. But it is difficult to find fast exactly what I want, especially in the absence of time.

The main idea is: people already joined into community wait for new active members in a background, and new members come in(out) to(from) community dynamically. This solves the problem of classic forums:

  1. most users register to forums only for 1-2 posts
  2. many forum members lose their interest soon after join
  3. few active members at the same time - many small forums die soon after creation
  4. new members get answers not in a time, and as a result - forums have a plenty of garbage.

Like an RSS, I want to receive any updates on active topics based on my hobby or interest in any city I stay. It is extremely important to support active people who travels. To achieve this, the option of current geolocation should be supported in Discourse.

At the end, it won’t be necessary to spend the time for searching special local websites of professional communities. Discourse will prevent to create similar or duplicate communities at the same location through exact tags and categories. Using web browser/device geolocation and based on user’s user hobbies (tags, forum preferences), the user will be joined to certain communities automatically: for example, Istanbul Scuba divers team, Pakistan Woodworkers, Angola Extreme Bikers or Bermudas Java Developers.

What do you think, is it possible to develop this feature inside Discourse? This cannot be implemented in any social network because they are overloaded by other features. Discourse should be stay fast and smart simultaneously for years!

-Ivan

Posts: 2

Participants: 2

Read full topic

DISCOURSE_DB_PASSWORD can not start with `#`

$
0
0

@SimonWu wrote:

Even you quote the password as DISCOURSE_DB_PASSWORD="#XXXXX". You can pass db:rake.
But you will meet with fe_sendauth: no password supplied error when starting the discourse container.

Posts: 1

Participants: 1

Read full topic

Viewing all 60721 articles
Browse latest View live




Latest Images