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

Error dumping database when restore

$
0
0

@legendno13 wrote:

When I restore my discourse, I got following failed information

[2015-11-16 02:24:59] Enabling readonly mode...
[2015-11-16 02:24:59] Pausing sidekiq...
[2015-11-16 02:24:59] Waiting for sidekiq to finish running jobs...
[2015-11-16 02:24:59] Switching schemas... try reloading the site in 5 minutes, if successful, then reboot and restore is complete.
[2015-11-16 02:24:59] Migrating the database...
[2015-11-16 02:25:02] EXCEPTION: Error dumping database
[2015-11-16 02:25:02] /opt/bitnami/apps/discourse/htdocs/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.10/lib/active_record/tasks/postgresql_database_tasks.rb:55:in `structure_dump'
/opt/bitnami/apps/discourse/htdocs/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.10/lib/active_record/tasks/database_tasks.rb:150:in `structure_dump'
/opt/bitnami/apps/discourse/htdocs/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.10/lib/active_record/railties/databases.rake:270:in `block (3 levels) in <top (required)>'

Is there a way around this ?

Posts: 2

Participants: 2

Read full topic


Uploads:migrate_to_s3 crashes

$
0
0

@uppfinnarn wrote:

So, I'm trying to migrate a Discourse installation to use S3 storage, in preparation for a server move. Sounds easy enough, except the rake task meant to do it crashes.

root@Jena-web:/var/www/discourse# rake uploads:migrate_to_s3
Migrating uploads to S3 ([BUCKET NAME]) for 'default'...
rake aborted!
TypeError: no implicit conversion of nil into String
/var/www/discourse/lib/tasks/uploads.rake:137:in `exists?'
/var/www/discourse/lib/tasks/uploads.rake:137:in `block in migrate_to_s3'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.4/lib/active_record/relation/batches.rb:51:in `block (2 levels) in find_each'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.4/lib/active_record/relation/batches.rb:51:in `each'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.4/lib/active_record/relation/batches.rb:51:in `block in find_each'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.4/lib/active_record/relation/batches.rb:124:in `find_in_batches'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.4/lib/active_record/relation/batches.rb:50:in `find_each'
/var/www/discourse/lib/tasks/uploads.rake:126:in `migrate_to_s3'
/var/www/discourse/lib/tasks/uploads.rake:105:in `block in migrate_to_s3_all_sites'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/rails_multisite-1.0.3/lib/rails_multisite/connection_management.rb:124:in `call'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/rails_multisite-1.0.3/lib/rails_multisite/connection_management.rb:124:in `block in each_connection'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/rails_multisite-1.0.3/lib/rails_multisite/connection_management.rb:122:in `each'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/rails_multisite-1.0.3/lib/rails_multisite/connection_management.rb:122:in `each_connection'
/var/www/discourse/lib/tasks/uploads.rake:105:in `migrate_to_s3_all_sites'
/var/www/discourse/lib/tasks/uploads.rake:101:in `block in <top (required)>'
Tasks: TOP => uploads:migrate_to_s3
(See full trace by running task with --trace)

It doesn't reveal much extra information, but here's a version with --trace.

The problem appears to be here - uploads where local.path_for(...) is nil crash, because File.exists?(nil) is not valid.

I'm assuming this happens because we were originally using S3 and migrated off it when you deprecated it, but some of our uploads got stuck on S3 for whatever reason (I let it be because it didn't cause any actual problems). Now we're moving back again, but some files do not exist locally, thus it freaks out.

Indeed, it seems to work if I change the offending line to:

if !path or !File.exists?(path)

Posts: 4

Participants: 2

Read full topic

Point me a very big Discourse community and something that looks exceptionally good

$
0
0

@ljpp wrote:

I am having a big debate in my SMF driver forum with the community, whether we should migrate to Discourse or not. I am looking for better examples to show them, so could you please point me a..

  1. A very popular/big Discourse community with lots of threads, posts and users. Bigger than this one.
  2. An exceptionally good looking Discourse community with striking visuals.

Many thanks!

Posts: 2

Participants: 2

Read full topic

How "Reply" to post button text can be changed to "Comment"?

$
0
0

@stantyan wrote:

Hello,

Ho can I change "Reply" button text to "Comment" on the topic page? My website is more about Questions and Answers, and people usually comment on other answers, not replying.

Example:

I'm using great Plugin https://github.com/Mittineague/custom-text by @ Mittineague to customize different texts. However the main problem when I edit:

en:
js:
topic:
reply:
title: 'Comment'

I get Main "Reply" to topic button changed to "Comment" too as you can see from previous mockup/screenshot.

Please help. How can I customize both of these button text independently?

Thank you so much in advance.

Posts: 4

Participants: 2

Read full topic

When updating Profile Title - Error

S3 buckets containing periods not allowed

$
0
0

@uppfinnarn wrote:

So, with the introduction of the s3_cdn_url setting, you can set a custom URL to be used instead of the long S3 URL.

Unfortunately, s3_upload_bucket doesn't allow periods in the name... which means that if I, as per Amazon's documentation, create a bucket called static.example.com and point a CNAME to it, I can set Discourse to print out URLs to static.example.com, but I can't set it to actually upload to that bucket.

(I want to put Cloudflare in front of a CNAME, making for a low-cost but effective CDN. It's not just for looks.)

Posts: 1

Participants: 1

Read full topic

Would be great to have labels next to topic titles

$
0
0

@Aymane_Shuichi wrote:

Not talking about tags
I'm talking about something like Spoiler , theory etc .. that could help a user decide investing in reading the title or not.

Thanks

Posts: 9

Participants: 4

Read full topic

Favicon not displayed


Vanilla2 Import - no avatars, no pdf attachments

$
0
0

@buzzdev wrote:

Hello Discourse,
i've imported my existing Vanilla2 forum using the Vanilla2export.php and

RAILS_ENV=production ruby script/import_scripts/vanilla.rb /shared/export.csv

However user avatars and attachments were not imported.
On my original website i don't see any GET requests for avatars and PDF attachments.

In the vanilla.rb importer, there is a reference to a photo:

u = {
id: user[:user_id],
email: user[:email],
username: user[:name],
created_at: parse_date(user[:date_inserted]),
bio_raw: clean_up(bio_raw),
avatar_url: user[:photo],
moderator: @user_roles.select { |ur| ur[:user_id] == user[:user_id] }.map { |ur| ur[:role_id] }.include?(moderator_role_id),
admin: @user_roles.select { |ur| ur[:user_id] == user[:user_id] }.map { |ur| ur[:role_id] }.include?(admin_role_id),
}

Is it how the import is supposed to work - meaning, no avatar and attachment import or am i doing something wrong here?

Or are there perhaps some post-import tasks, which i missed?

Many thanxs for help
martin

Posts: 4

Participants: 2

Read full topic

"Add to homescreen" on Android should use default favicon

Like vs Favorite vs Cookies (or Reaction?)

$
0
0

@cawas wrote:

So, Favorite already went down. Not only here, but also on Twitter. Because of word definitions. And maybe a bit of this:

The only problem with that, in discourse, is that people tend to like (and thus incentivize) good answers. Not so much good questions or good topics. Conversation movers. The ladder, in cinema language, gets "smashed" down, in a way.

One "simple" technical way to resolve this would be when someone press like on a reply, it would also give cookies to the whole chain of posts it was replied to. This could help giving context to the summary view as well.

Another way is changing the mindset of people. Maybe by switching the :heart: to a :cookie: , :+1:, :100: or some kind of positive sign :heavy_plus_sign: could work. Probably not. Point is, as someone who's often being the ladder, I'd like to improve that system.

Now...

I do realize this is just a small gamification (plus to make a good summarize function) and that it was thought through a lot, many times. You're probably aware of this issue, somehow.

I guess I just wanted to see this conversation being had here and maybe make an effort to collaborate! :wink:

Oh, oh I know! How about a "add reaction" button? A bit like in slack, but it could present less options for simpler usage. I'd love to see how that would pinout! :smiley:

Posts: 4

Participants: 2

Read full topic

Does ./launcher rebuild keep all settings & posts?

$
0
0

@dylandamsma wrote:

Hi there,

I've just upgraded the DO server on which the Discourse forum at http://community.autopilothq.com is hosted from a 1GB instance to a 2GB instance.

Then I changed the the app.yml file to use 3 unicorn_workers instead of 2. (Anything else I should increase to speed up the forum?).

Now, I want to run: ./launcher rebuild app - However, I'm afraid it would change admin settings and or reset the entire discourse install? Would it?

It might be a dumb question, but I never worked with Docker.

Best,
Dylan

Posts: 5

Participants: 2

Read full topic

Edit Topic & Posts in Topic

$
0
0

@Lanie9099 wrote:

Hi,

I'm sorry for asking such an elementary question, but I am new to Discourse, and am having trouble editing posts & topics? How do I do this? For example, right now I trying to edit my FAQ.

Many Thanks!
Lanie

Posts: 1

Participants: 1

Read full topic

"Your topic is similar to..." popup goes under the logo header!

Minor bug on loading /latest, aesthetic

$
0
0

@Yuun wrote:

Category listing jerks to the right after load, as seen here:

I don't generally see this on the first load, but subsequent reloads of /latest will do the trick. I had trouble seeing this on Meta for a while (until literally writing this topic), but it happens consistently on my forum (and apparently on Meta now, for me).

Found using Chrome/Win7 desktop, reproduced on Firefox. The effect is more pronounced the wider the window is. Only seems to occur while logged in, I don't see this behavior when browsing anonymously. Nevermind, getting it anonymously on Firefox and Chrome now without much effort.

Posts: 5

Participants: 4

Read full topic


Published article stays in editor

$
0
0

@john_mardlin wrote:

I've noticed this here as well as our instance.

To reproduce:
1. Create a new topic (T1)
2. Go to another page
3. Create another new topic (T2)

On step 3, the editor is still populated with the topic from step 1, but there is no indication that T1 has actually been published. It's disconcerting because I think I may not have already published T1, so then I go look for it before "abandoning" the text that is still in the editor on step 3.

Update:

This time when I attempted to reproduce, it showed the previous topic in the editor, T0.

Posts: 6

Participants: 3

Read full topic

Loading spinner spinning on a blank page

$
0
0

@abba wrote:

Hi Guys

I'm from China and found Discourse awesome. A huge thank to the community.

Just a quick one,when I click on a topic there's always a loading spinner spinning on a blank page prior to the content of the topic being rendered. Is it possible to set up Discourse to display the loading spinner on the current page which is a list of topics, in this case, rather than a blank page?There are 2 reasons that I'm raising this, firstly,for instance, it takes around 1 second to load the content of a topic, users can still keep reading something from the current list during this period. A blank page is just a waste of time.Secondly it will make the UI more fluid by not using a blank page.

Thanks a lot.

Posts: 7

Participants: 3

Read full topic

Mention group, do not do anything

$
0
0

@SidV wrote:

Hello guru team.

I've just updated to v1.5.0.beta4 +105

I've got some groups, and before update I call (or mention) the @group and it mentions all the members.
Now, I mention the @group but nothing happens. Even no recognize the group while I'm typing the name.

Could you check it please?

Posts: 3

Participants: 3

Read full topic

Unable to update fatal: ambiguous argument '@':

$
0
0

@depeters wrote:

I get the following error when trying to update:

./launcher rebuild app
which: no docker.io in (/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/home/dpeterson/.rvm/bin:/home/dpeterson/.rvm/bin:/home/dpeterson/.local/bin:/home/dpeterson/bin:/home/dpeterson/.rvm/bin)
Ensuring discourse docker is up to date
Fetching origin
fatal: ambiguous argument '@': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git [...] -- [...]'
fatal: Not a valid object name @
./launcher: line 577: [: @: unary operator expected
./launcher: line 582: [: 7799fb73df0e50ae52fea7a4099e1fa6946fddf6: unary operator expected
Discourse Docker has diverged source, this is only expected in Dev mode
Stopping old container
+ /usr/bin/docker stop -t 10 app
app
cd /pups && git pull && /pups/bin/pups --stdin
fatal: unable to access 'https://github.com/SamSaffron/pups.git/': Could not resolve host: github.com
f7d7882ae5004dd414743452187b6e1b4a89f6545cf99e0c1ad0a75e94596e2e
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one

Posts: 5

Participants: 2

Read full topic

Moderator "wrench" partially covered by site header

$
0
0

@jomaxro wrote:

Not sure if this is a Discourse bug, or a site theme issue, but I have seen it discussed before (https://meta.discourse.org/t/topic-admin-wrench-is-covered-by-customized-header-bar/16721).

On a Discourse I moderate the moderator wrench is partially covered by the header when the page is scrolled all the way to the top.


If works perfectly finem but it still seems to be a UI error. Scrolling the page at all will cause the wrench to be uncovered.

Posts: 3

Participants: 3

Read full topic

Viewing all 60739 articles
Browse latest View live




Latest Images