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

Cannot access Discourse after new install

$
0
0

@lll wrote:

Heads up, I don’t know the right terms for most of these things. If I sound confusing, please ask for clarification

I just attempted to install Discourse on (via?) Docker.

My issue is that I cannot access Discourse afterwards even though everything seems to be running during the installation.

This site can’t be reached

xx.xxx.xxx.xx refused to connect.

The steps to reprduce my issue are:
1- Install ubuntu with this image:
https://console.cloud.google.com/launcher/details/ubuntu-os-cloud/ubuntu-xenial

2- I follow the steps in this tutorial to the T

3- Cannot access discourse.


A bit of background info:

I would like to connect via the server ip address. as opposed to using a domain name

There is also the contents of app.yml and ourput for ./launcher logs app which you can find in the summary cards below:

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/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: "768MB"

  ## 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: The domain name this Discourse instance will respond to
  DISCOURSE_HOSTNAME: sub.domain.com

  ## 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: 'foobar@gmail.com'

  ## TODO: The SMTP mail server used to validate new accounts and send notifications
  DISCOURSE_SMTP_ADDRESS: mail.foo.xyz
  DISCOURSE_SMTP_PORT: 578
  DISCOURSE_SMTP_USER_NAME: stmp@foo.xyz
  DISCOURSE_SMTP_PASSWORD: "#########"
  #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: me@example.com

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

## The Docker container is stateless; all data is stored in /shared
volumes:
  - volume:
      host: /var/discourse/shared/standalone
      guest: /shared
  - volume:
      host: /var/discourse/shared/standalone/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

./launcher logs app
run-parts: executing /etc/runit/1.d/00-ensure-links
run-parts: executing /etc/runit/1.d/00-fix-var-logs
run-parts: executing /etc/runit/1.d/anacron
run-parts: executing /etc/runit/1.d/cleanup-pids
Cleaning stale PID files
run-parts: executing /etc/runit/1.d/copy-env
run-parts: executing /etc/runit/1.d/enable-brotli
Started runsvdir, PID is 35
sh: echo: I/O error
ok: run: redis: (pid 44) 0s
                _._
           _.-``__ ''-._
      _.-``    `.  `_.  ''-._           Redis 3.0.6 (00000000/0) 64 bit
  .-`` .-```.  ```\/    _.,_ ''-._
 (    '      ,       .-`  | `,    )     Running in standalone mode
 |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379
 |    `-._   `._    /     _.-'    |     PID: 44
  `-._    `-._  `-./  _.-'    _.-'
 |`-._`-._    `-.__.-'    _.-'_.-'|
 |    `-._`-._        _.-'_.-'    |           http://redis.io
  `-._    `-._`-.__.-'_.-'    _.-'
 |`-._`-._    `-.__.-'    _.-'_.-'|
 |    `-._`-._        _.-'_.-'    |
  `-._    `-._`-.__.-'_.-'    _.-'
      `-._    `-.__.-'    _.-'
          `-._        _.-'
              `-.__.-'

44:M 16 Nov 04:51:49.722 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
44:M 16 Nov 04:51:49.722 # Server started, Redis version 3.0.6
44:M 16 Nov 04:51:49.723 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
44:M 16 Nov 04:51:49.723 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
ok: run: postgres: (pid 43) 0s
44:M 16 Nov 04:51:49.734 * DB loaded from disk: 0.011 seconds
44:M 16 Nov 04:51:49.734 * The server is now ready to accept connections on port 6379
rsyslogd: command 'KLogPermitNonKernelFacility' is currently not permitted - did you already set it via a RainerScript command (v6+ config)? [v8.16.0 try http://www.rsyslog.com/e/2222 ]
rsyslogd: imklog: cannot open kernel log (/proc/kmsg): Operation not permitted.
rsyslogd: activation of module imklog failed [v8.16.0 try http://www.rsyslog.com/e/2145 ]
rsyslogd: Could not open output pipe '/dev/xconsole':: No such file or directory [v8.16.0 try http://www.rsyslog.com/e/2039 ]
2017-11-16 04:51:49.828 UTC [61] LOG:  database system was shut down at 2017-11-16 04:51:01 UTC
2017-11-16 04:51:49.833 UTC [61] LOG:  MultiXact member wraparound protections are now enabled
2017-11-16 04:51:49.835 UTC [43] LOG:  database system is ready to accept connections
2017-11-16 04:51:49.836 UTC [65] LOG:  autovacuum launcher started
supervisor pid: 42 unicorn pid: 67
44:M 16 Nov 04:56:50.077 * 10 changes in 300 seconds. Saving...
44:M 16 Nov 04:56:50.078 * Background saving started by pid 2010
2010:C 16 Nov 04:56:50.083 * DB saved on disk
2010:C 16 Nov 04:56:50.084 * RDB: 2 MB of memory used by copy-on-write
44:M 16 Nov 04:56:50.178 * Background saving terminated with success
44:M 16 Nov 05:01:51.061 * 10 changes in 300 seconds. Saving...
44:M 16 Nov 05:01:51.062 * Background saving started by pid 2333
2333:C 16 Nov 05:01:51.067 * DB saved on disk
2333:C 16 Nov 05:01:51.068 * RDB: 2 MB of memory used by copy-on-write
44:M 16 Nov 05:01:51.163 * Background saving terminated with success
44:M 16 Nov 05:06:52.019 * 10 changes in 300 seconds. Saving...
44:M 16 Nov 05:06:52.020 * Background saving started by pid 2655
2655:C 16 Nov 05:06:52.026 * DB saved on disk
2655:C 16 Nov 05:06:52.026 * RDB: 2 MB of memory used by copy-on-write
44:M 16 Nov 05:06:52.121 * Background saving terminated with success
44:M 16 Nov 05:11:53.095 * 10 changes in 300 seconds. Saving...
44:M 16 Nov 05:11:53.096 * Background saving started by pid 2980
2980:C 16 Nov 05:11:53.101 * DB saved on disk
2980:C 16 Nov 05:11:53.102 * RDB: 2 MB of memory used by copy-on-write
44:M 16 Nov 05:11:53.196 * Background saving terminated with success
44:M 16 Nov 05:16:54.054 * 10 changes in 300 seconds. Saving...
44:M 16 Nov 05:16:54.055 * Background saving started by pid 3301
3301:C 16 Nov 05:16:54.061 * DB saved on disk
3301:C 16 Nov 05:16:54.062 * RDB: 2 MB of memory used by copy-on-write
44:M 16 Nov 05:16:54.156 * Background saving terminated with success
44:M 16 Nov 05:21:55.063 * 10 changes in 300 seconds. Saving...
44:M 16 Nov 05:21:55.064 * Background saving started by pid 3625
3625:C 16 Nov 05:21:55.070 * DB saved on disk
3625:C 16 Nov 05:21:55.071 * RDB: 2 MB of memory used by copy-on-write
44:M 16 Nov 05:21:55.164 * Background saving terminated with success

Posts: 8

Participants: 5

Read full topic


“Body seems unclear, is it a complete sentence?” for English & Japanese characters in Body

Title is not unhex-ed in onebox-ed github file link

$
0
0

@xuchunyang wrote:

For example, it should display:

emacs-china/hello-emacs/blob/master/Emacs编辑程序常用命令.org

instead of unreadable %XX:

Posts: 3

Participants: 3

Read full topic

Double post after import

Let's Encrypt SSL no longer working, Discourse site down

$
0
0

@Ryan_Nix wrote:

Hello,

For some reason, our Discourse site is down and it appears to be related to SSL. https://discourse.apps.northwestern.edu The app rebuilds just fine, so it appears that Discourse itself is working. I took a log at the acme.sh.log file but I’m not seeing any errors:

root@DiscourseVM:/var/discourse# ./launcher logs app | grep ssl
[Thu Nov 16 12:17:06 UTC 2017] Installing key to:/shared/ssl/discourse.apps.northwestern.edu.key
[Thu Nov 16 12:17:06 UTC 2017] Installing full chain to:/shared/ssl/discourse.apps.northwestern.edu.cer

root@DiscourseVM-app:/shared/letsencrypt# vim acme.sh.log
[Wed Aug 16 13:38:25 UTC 2017] Lets find script dir.
[Wed Aug 16 13:38:25 UTC 2017] _SCRIPT_='./acme.sh'
[Wed Aug 16 13:38:25 UTC 2017] _script='/root/acme.sh/acme.sh'
[Wed Aug 16 13:38:25 UTC 2017] _script_home='/root/acme.sh'
[Wed Aug 16 13:38:25 UTC 2017] Using config home:/shared/letsencrypt
[Wed Aug 16 13:38:25 UTC 2017] It is recommended to install nc first, try to install 'nc' or 'netcat'.
[Wed Aug 16 13:38:25 UTC 2017] We use nc for standalone server if you use standalone mode.
[Wed Aug 16 13:38:25 UTC 2017] If you don't use standalone mode, just ignore this warning.
[Wed Aug 16 13:38:25 UTC 2017] Installing to /shared/letsencrypt
[Wed Aug 16 13:38:25 UTC 2017] Installed to /shared/letsencrypt/acme.sh
[Wed Aug 16 13:38:25 UTC 2017] Using config home:/shared/letsencrypt
[Wed Aug 16 13:38:25 UTC 2017] Using sed  -i
[Wed Aug 16 13:38:25 UTC 2017] Found profile: /root/.profile
[Wed Aug 16 13:38:25 UTC 2017] Installing alias to '/root/.profile'
[Wed Aug 16 13:38:25 UTC 2017] OK, Close and reopen your terminal to start using acme.sh
[Wed Aug 16 13:38:25 UTC 2017] Using config home:/shared/letsencrypt
[Wed Aug 16 13:38:25 UTC 2017] Using config home:/shared/letsencrypt
[Wed Aug 16 13:38:25 UTC 2017] Installing cron job
[Wed Aug 16 13:38:25 UTC 2017] Good, bash is found, so change the shebang to use bash as preferred.
[Wed Aug 16 13:38:25 UTC 2017] OK

Where else could I look?

Thank you!

Ryan

Posts: 4

Participants: 1

Read full topic

Adsense update....ads.txt file. Ads are not working now with this plugin

Don't show setting control UI

How to PM staff when PM is disabled

$
0
0

@slspencer wrote:

Hey fantastic Discourse people,

I disabled pm’s but now users say they can’t send pm’s to Staff.
There isn’t a PM button on the topics pages, and no PM button on user pages.
And I’m not seeing the method for me to send pm’s to users, even when I go into the Admin/User area and select a user. I don’t seem to be able to send a private message to anyone, and they don’t know how to send a private message to me.

Any suggestions as to how users can pm Staff, and how Staff can pm users?
This is probably obvious, but none of us are seeing it (yet).

Any help is appreciated! tks.

Posts: 4

Participants: 2

Read full topic


Replies in nested list in maillist mode

$
0
0

@Jimble wrote:

One of our accessibility users (poor eyesight) who used the maillist mode had this in mind:

“That is, it seems we’ve managed to successfully read the text, comment on it, and create new posts - that’s true. The only part missing, which I’ve already discussed with Joakim but don’t know who might do something about it, is that when I’m reading a reply, the replies should be inside nested lists, so that I know whether I’m reading a reply to a top-level message, or a reply to a message one level lower, or a reply to a reply to a reply, and so on.”

Anything I can tell him about this?

Posts: 1

Participants: 1

Read full topic

♥ hearts ♥ for wiki edits

$
0
0

@quimgil wrote:

Appreciation and recognition of good contributors are important elements in Discourse. This is why (among other things) we have an option to show publicly that we :heart: like a post or a comment. Those hearts count and give users badges, trust levels, positions in rankings.

Wiki editors also deserve hearts, don’t they? Implementing this shouldn’t be a big deal? In the edit window the same UI element with the same behavior could be added next to the information of the edit.

Wiki edit hearts would count just as much as comments hearts.

Wiki editors would get the same notification than comment posters when receiving a “like”:

♥ quimgil Just another wiki topic

Posts: 3

Participants: 2

Read full topic

Cannot Delete Custom Emoji

$
0
0

@AirRockStar wrote:

I wanted to add “<3” to the emoji list and it added “:3:” instead which I suspect is because of the “<”. Anyways I have tried removing it and it will not delete… It asks are you sure, I select “yes” and then nothing…

55 PM

Posts: 1

Participants: 1

Read full topic

SEO issue? Switched to https, but after a year google still indexing both versions

$
0
0

@steelmaiden wrote:

So i switched my forum https://wmforum.geek.hr from http to https almost year ago and i have proper redirects in place.

However google has indexed my homepage as https but other urls stayed indexed as http.

How to i force google to list all urls as https? I also get different results for http and https versions in Google Webmaster Tools search analytics.

Posts: 7

Participants: 3

Read full topic

Importing from PHP Question2Answer

$
0
0

@davedogs wrote:

I am in the beginning stages of investigating the feasibility of migrating our current Q&A forum, which uses the Question2Answer library, to Discourse.

I reviewed the import discussions and the github (discourse/script/import_scripts at master · discourse/discourse · GitHub), but couldn’t find any previous discussion.

Please let me know if you have any advice on importing from Question2Answer or importing in general.

http://www.question2answer.org/

Thank you.

Posts: 1

Participants: 1

Read full topic

Open link in new window

$
0
0

@pfaffman wrote:

I have some code that used to open navigation links in a new window but doesn’t now. I’m perplexed.


<script type="text/discourse-plugin" version="0.2">
api.decorateWidget('home-logo:after', helper => {
    const showExtraInfo = helper.attrs.minimized;
        if(!showExtraInfo) {
            return helper.h('ul.nav-link-container', [
                helper.h('li.hidden-for-mobile', [
                    helper.h('a.nav-link', {
                        href:'https://testing.mysite.com/new-topic?category_id=3',
                        text:'Comment on New Site',
                        target:'_blank'
                    })
                ]),
                helper.h('li.hidden-for-mobile', [
                    helper.h('a.nav-link', {
                        href:'http://www.mysite.com',
                        text:'Old Site',
                        target:'_blank'
                    })
                ])
            ]);
        }
});
</script>

What am I missing?

Posts: 2

Participants: 2

Read full topic

Failed restore: "All outgoing email has been globally disabled by an administrator"


Opera Mini login problems

$
0
0

@oiclid wrote:

I tried logging into meta.discourse last night using Opera mini and I had a couple of problems. First of all, trying to log in with Google gave a 403 error. When I then tried to use my username/email, it said I was using wrong credentials. The thing is, I tried to input those same credentials on Chrome Mobile and on my laptop and I was signed it.

Posts: 2

Participants: 2

Read full topic

Should onebox fall back on mini-onebox if no metadata is available?

$
0
0

@tophee wrote:

I just realized that when I post this link with the intention to have it oneboxed:

https://cispe.cloud/publicregister/

it is rendered as an ordinary link because the website obviously doesn’t support OpenGraph. In cases where that happens, I tend to change the text so that the link becomes an inline link. And in that case it renders as a mini-onebox: Public Register - Current list of services declared under the CISPE Code Of Conduct Nice!

So I’m wondering: wouldn’t it make sense if the ordinary onebox would fall back on mini-onebox whenever no meta-data is available?

Posts: 2

Participants: 2

Read full topic

Cookies Not Enabled Message

$
0
0

@pinkphoenix wrote:

Hello.

After getting everything up and running, we’ve been having a good amount of people make their way over to the new website to register. Everything has been working very well. Unfortunately, one of my moderators seems to be unable to register. She says that it continues to give her the ol’ “Cookies are not enabled” message. While I know she used to work as a Network Admin, and probably has a good deal of tech experience herself, I asked her to try a different browser and clear her cookies/cache. Oddly enough, none of those options worked for her, and she says that she’s checked time and time again… and the cookies are already enabled.

The website is practically the default setup still, though I am using Cloudflare… I can’t see how that could cause her issues. Has anyone else dealt with this issue? What steps should I provide to my moderator to get her on the new site?

Posts: 5

Participants: 2

Read full topic

"Uploading" and never uploads. How to fix this?

$
0
0

@nixie wrote:

When users in my discourse site tries to upload something, it says “uploading”, but then it never uploads.

Random users, every few days, complain about this.

What are the troubleshooting steps I can give them?

Posts: 6

Participants: 3

Read full topic

Create topic only if categorized

$
0
0

@BharatW wrote:

Is there an option where we can allow a topic to be created only if it is categorized?

The number of users is increasing on tradingqna.com which runs on discourse, and users are not categorizing topics. As a result of this, the moderators are having a tough time and have to categorize the topics themselves.

Any help would be appreciated.

Posts: 5

Participants: 2

Read full topic

Viewing all 60739 articles
Browse latest View live




Latest Images