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

Docker upgrade failed, now what?

0
0

Nathan Rijksen wrote:

I have Discourse installed via a Docker image, everything is working perfectly. Today I wanted to upgrade the running instance and went to admin/docker and pressed the upgrade button. The button then got disabled and nothing happened. I waited about 10 mins and refreshed, still nothing changed.

I SSH'ed into the docker image and looked for some logs, finally I found /var/ww/discourse/log/unicorn.stderr.log which has the following lines:

From https://github.com/discourse/discourse
   1403d30..3cf0ada  master     -> origin/master
   1403d30..3cf0ada  tests-passed -> origin/tests-passed
From https://github.com/discourse/discourse
 * [new tag]         v0.9.8.10  -> v0.9.8.10
FAILED: cd /var/www/discourse && git pull
Docker Manager: FAILED TO UPGRADE
From https://github.com/discourse/discourse
   3cf0ada..fa4bc90  master     -> origin/master

I'm not sure what to do next, the upgrade button is still disabled any I cant find any posts about people with similar issues.

Posts: 26

Participants: 4

Read full topic


Helping users to create a new topic

0
0

dirkcuys wrote:

Is it possible to send a user to a specific URL (like forum.org/posts/create?topic=foo&category=bar) that will open up an editor to create a new topic with the topic and category filled in?

I'm working on integrating github pages and discourse for onlline courses, but I think it also applies to general github pages integration. This would avoid having to create a topic for every page and it will also avoid lots of 1 comment topics for pages that turned out to not be comment worthy.

Does this already exist? Am I missing the whole point? Does it simply require some sleeve rolling?

Posts: 3

Participants: 3

Read full topic

Hot off the presses, automated backup support!

0
0

Robin Ward wrote:

If you are on the latest version of Discourse, you can now enable automated daily backups, with support for uploading them offsite to S3!

I'm super proud of this feature because in my opinion not enough software (and certainly no forum software I am aware of) encourages users to create offsite backups of their data. The last thing you want in the event of a server failure is to lose all the awesome content your forum users have created.

Enabling this feature is easy! First go to the admin section and find backups under site settings. You'll see the following options:

Note that for the uploading to S3 support you'll need to have defined your s3 credentials as well. If you don't upload to S3 the backups will be left on the server filesystem.

Once you enable this, you can go to the backups tab in admin to view a list of backups that were performed with links to download or restore any images.

Let us know what you think of the feature and please help us try it out by enabling backups for your forums!

Posts: 10

Participants: 5

Read full topic

App.yml settings for Internal SMTP relay

0
0

Homebrew Hops wrote:

Team,
I have deployed Discourse via Docker container. On initial bootstrap, I left STMP settings commented out. I started the app and registered my Developer account which then sent an email for confirmation, which was never sent because SMTP settings were left out. I destroyed the app, modified the app.yml to just have an SMTP server, and bootstrap and started the app. The SMTP server is an internal relay that is open to all IP sourced from my lab subnet. I have verified DNS and IP connectivity to the relay.

I have reviewed ./launcher logs app and do not see any smtp related events. I have checked spam/junk folders.

Does the app.yml require ALL of the smtp settings to be uncommented regardless of port and/or authentication settings? Is there anywhere else in the docker app for me to check logs relevant to smtp?

Thank you,
Homebrew Hops

Posts: 4

Participants: 2

Read full topic

Regression: Twitter login is asking for password

0
0

Sam Saffron wrote:

The whole point of twitter login is that "password is optional"

Yet, for some reason it is no longer the case.

cc @neil

Posts: 1

Participants: 1

Read full topic

Site Contact Email Address in RSS?

0
0

David Kobia wrote:

Is there any particular reason why the email address should be included in the element of the the RSS feed? I know this is just to conform to the RSS 2.0 Spec, but it is an invitation to spam. It was a little unsettling to see that my personal email address has been in one of my discourse installs all this time. I'd recommend getting rid of the element altogether. I think most major CMS's and blogging platforms do anyway.

edit: Maybe not get rid of it, but just the email address.

Posts: 8

Participants: 4

Read full topic

L'offre gratuite?

Configure proxy for sending email

0
0

Girish Padharthi wrote:

Hi,

I'm hosting Discourse using Bitnami stack for a small team of 15 people. Found it really effective for team collaboration.

Setting up email seems to a problem still. My own machine (server: P4 with Ubuntu 13.10) is behind a proxy and I'm pretty sure this could be the reason for not receiving email.

Could you please help me out here?

Posts: 12

Participants: 3

Read full topic


Failure to Bootstrap

0
0

joeygufreda wrote:

Install failing on a fresh Ubuntu 12.04 install. Directions were followed from here in a VM all the way to the ./launcher bootstrap app step near the end. Failure message is below.

Unable to find image '# this is the base templates used, you can cut it down to include less functionality per container' locally
2014/03/19 15:35:41 Invalid repository name (# this is the base templates used, you can cut it down to include less functionality per container), only [a-z0-9-_.] are allowed
cat: cids/app_boostrap.cid: No such file or directory

Usage: docker rm [OPTIONS] CONTAINER [CONTAINER...]

Remove one or more containers

-f, --force=false: Force removal of running container
-l, --link=false: Remove the specified link and not the underlying container
-v, --volumes=false: Remove the volumes associated to the container
FAILED TO BOOTSTRAP

Any clue what is failing?

Thanks!

PS:

root@discourse:/var/docker# docker version
Client version: 0.9.0
Go version (client): go1.2.1
Git commit (client): 2b3fdf2
Server version: 0.9.0
Git commit (server): 2b3fdf2
Go version (server): go1.2.1
Last stable version: 0.9.0

Posts: 6

Participants: 4

Read full topic

Create a swapfile for your Linux server

0
0

Jeff Atwood wrote:

Most cloud virtual machine providers do not set up swapfiles as part of their server provisioning.

If you are running the recommended 2 GB of memory for Discourse, a swap file is technically not required, but can be helpful just in case your server experiences memory pressure. With a swap file, rather than randomly terminating processes with an out of memory error, things will slow down instead.

This can be done at any time from the command line on your server.

Set up a 1 GB swap file

Adding a swap file gives Discourse some extra beathing room during memory-intensive operations. 1GB swap should suffice, though if you are attempting the minimum memory configuration you should set up a 2GB swap.

In the shell you have opened to your droplet, do the following:

  1. write out a 1 GB file named 'swapfile'

    dd if=/dev/zero of=/swapfile bs=1024 count=1024k
  2. tell linux this is the swap file:

    mkswap /swapfile
  3. Activate it

    swapon /swapfile

Add it to the file system table so its there after reboot

  1. open fstab in nano

    nano /etc/fstab
  2. paste the following line in at the bottom

     /swapfile       none    swap    sw      0       0

Set the swappiness to 10 so its only uses as an emergency buffer

echo 10 | sudo tee /proc/sys/vm/swappiness
echo vm.swappiness = 10 | sudo tee -a /etc/sysctl.conf

Change the permissions so only root can read and write to this file

chown root:root /swapfile
chmod 0600 /swapfile

Posts: 1

Participants: 1

Read full topic

Tab in admin panel for automatic UserHistory entries

0
0

Kane York wrote:

There's no place to view entries in the UserHistory table that aren't shown in the Staff Actions tab.
So I'm suggesting that another tab be added to "Logs" named "System Actions".

If I recall correctly, automatic hiding of posts flagged as spam isn't logged anywhere either, except in the Old Flags. So that would be another thing that could be put in there.

I made a half-@$$ed mockup:

Basically, this is supposed to be a place to view all the entries in UserHistory that don't show up in the Staff Actions tab:

I'm not confident that I understand the intracies of Ember well enough yet to make a PR to add this.

Posts: 1

Participants: 1

Read full topic

POST to /admins/user/:user_id/generate_api_key requires X-CSRF-Token?

0
0

Stephen Birarda wrote:

We're planning on using discourse as a discussion forum for alpha users of our software.

Currently I've hooked up the official SSO plugin so that sign on is completed via our main site.

I want to be able to create an API key for the user to pass down to our application so that they can create posts from the application. I've figured out how to add users via the REST api (using the honeypot values) but can't seem to use the generate_api_key method in the Admin::UsersController.

It's telling me the route doesn't exist, but I've verified that it definitely does by looking at the request made from chrome when clicking on "Generate API key" for that user - although that request uses the CSRF token.

Is it possible to POST to the same API via JSON with a master API key?

Posts: 6

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: 92

Participants: 41

Read full topic

Need help setting up SSL for site

0
0

William Karavites wrote:

So I m trying to setup SSL for my site and have been following this guide. I am at the point where I need to configure the CSR but when it asks for the type of webserver, I don't see nginx anywhere. The post says something about using the default Apache config but I'm not sure which one to select. I attached a picture of my choices. I'm currently using namecheap as my domain registrar.

Any help is appreciated!

Posts: 6

Participants: 3

Read full topic

"interface" as a keyword in syntax block screws up highlighting

0
0

Carlo Kok wrote:

Once there's an "interface" keyword in a syntax block it seems to screw up the rest:

Delphi:

unit abc;

interface
uses  
  bleh;

implementation

end.

c#:

namespace Bleh {

interface
using Test;  
  bleh;

class XYZ {
 static void Bleh() { }
}

what am I missing here?

post source follows:

Delphi:
```Delphi
unit abc;

interface
uses  
  bleh;

implementation

end.
```

c#:
```c#
namespace Bleh {

interface
using Test;  
  bleh;

class XYZ {
 static void Bleh() { }
}

```

Posts: 10

Participants: 4

Read full topic


Search field z-index broken (covered) in Chrome

0
0

Michael Downey wrote:

Continuing the discussion from Discourse General Polish:

FWIW, we've had a couple users complain about this (on both Chrome OSX and Chromebooks). The workaround is to just keep typing until results appear, but some people don't keep going once they see it "disappear".

Posts: 2

Participants: 2

Read full topic

Where is the Github Issue Tracker?

0
0

Michael wrote:

Just saw that the Issue Tracker on github is gone. Even old github-notifications link to a 404-Page, as if the Issue Tracker was completely deleted.

Haven't found a post here on that. Can you tell me why that happend?

Posts: 5

Participants: 4

Read full topic

Necromancy warning appears when editing middle posts

Autoupdated incoming posts do not render right away

Connection Errors (502 NGINX) on Fresh Install using Docker

0
0

Matt wrote:

Hey everyone,

I followed the install guide using docker here, however, I keep getting a connection error. Sometimes I can refresh a few times and it'll load, but attempting other actions seem to reproduce the error.

Anyone happen to have any suggestions? Could really use the help!

Thanks in advance!

Posts: 2

Participants: 2

Read full topic

Viewing all 60309 articles
Browse latest View live




Latest Images