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

Several error codes in logs after latest install

0
0

Josh wrote:

I tried searching first for solutions but I had no luck.

My site will currently not load. I checked the logs and I have had 444 errors in the last 24 hours.

Below are the two common errors.

Job exception: Wrapped Errno::ENOMEM: Cannot allocate memory - df -l . | tail -1 | tr -s ' ' | cut -d ' ' -f 5


Job exception: Cannot allocate memory - df -l . | tail -1 | tr -s ' ' | cut -d ' ' -f 5

Thank you in advance for your help!

Posts: 3

Participants: 2

Read full topic


Rotating the author of New User Guidance PMs between moderators

0
0

Travis wrote:

The personalized PM new users get is very valuable. I want to structure the new user PM as a personal message about who we are and what we do that has a human touch (not to try to pass it off as non-automated but to give it more personality). However, PMs written with that tone can generate a lot of replies.

I propose a feature where the author of these new user posts is rotated between Moderators. This would require a checkbox option to Rotate New User Guidance PM between Moderators as well as a new variable %{author_name} that could be included in the template.

With this setup, I can effectively spread the workload of great NUX and the response it receives with the other members of my team.

Posts: 1

Participants: 1

Read full topic

Performance issue with prepared queries

0
0

Sam Saffron wrote:

(note I am sending this to the pg mailing list, but wanted to keep a copy here as well)

I have hit a rather odd issue with prepared queries on both pg 9.3 and 9.4 beta.

I have this table (copy at http://samsaffron.com/testing.db.gz) with a very odd performance profile:

When I run the following prepared query it is running significantly slower than the raw counterpart:

select * from topics where archetype = $1 limit 1

Full test harness here:

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <sys/time.h>
#include <time.h>
#include <libpq-fe.h>

static void
exit_nicely(PGconn *conn)
{
    PQfinish(conn);
    exit(1);
}

static double get_wall_time(){
    struct timeval time;
    if (gettimeofday(&time,NULL)){
        //  Handle error
        return 0;
    }
    return (double)time.tv_sec + (double)time.tv_usec * .000001;
}

int
main(int argc, char **argv)
{
    const char *conninfo;
    PGconn     *conn;
    PGresult   *res;
    PGresult   *stmt;
    int i;

    Oid textOid = 25;

    char *paramValues[1];
    int paramLengths[1];
    paramLengths[0] = 6;
    paramValues[0] = "banner";

    if (argc > 1)
        conninfo = argv[1];
    else
        conninfo = "dbname = testing";

    printf("connecting database\n");

    /* Make a connection to the database */
    conn = PQconnectdb(conninfo);


    /* Check to see that the backend connection was successfully made */
    if (PQstatus(conn) != CONNECTION_OK)
    {
        fprintf(stderr, "Connection to database failed: %s",
                PQerrorMessage(conn));
        exit_nicely(conn);
    }

    stmt = PQprepare(conn,
		    "test",
		    "select * from topics where archetype = $1 limit 1",
		    1,
		    &textOid);

    printf("prepared statement\n");

    double start = get_wall_time();
    for(i=0; i<2000; i++){
	res = PQexecPrepared(conn, "test", 1, paramValues, paramLengths, NULL, 0);
	if (PQresultStatus(res) != PGRES_TUPLES_OK)
	{
	    fprintf(stderr, "command failed: %s", PQerrorMessage(conn));
	    PQclear(res);
	    exit_nicely(conn);
	}
	PQclear(res);
    }
    double finish = get_wall_time();


    fprintf(stderr, "Prepared %f \n", (finish-start));

    start = get_wall_time();
    for(i=0; i<2000; i++){
	res = PQexec(conn, "select * from topics where archetype = 'banner' limit 1");
	if (PQresultStatus(res) != PGRES_TUPLES_OK)
	{
	    fprintf(stderr, "command failed: %s", PQerrorMessage(conn));
	    PQclear(res);
	    exit_nicely(conn);
	}
	PQclear(res);
    }
    finish = get_wall_time();

    fprintf(stderr, "raw %f \n", (finish-start));

    /* close the connection to the database and cleanup */
    PQfinish(conn);

    return 0;
}

Results:

sam@ubuntu pq_play % cc -o play -I/usr/include/postgresql play.c -lpq -L/usr/include/postgresql/libpq && ./play
connecting database
prepared statement
Prepared 9.936938
Raw 1.369071

So my prepared counterpart is running at an 8th the speed of the raw.

I had a nightmare of a time generating a workload that exhibits the issue via script but managed to anonymise the data which is linked above.

Very strangely when I run the query in "psql" it does not exhibit the issue:

sam@ubuntu pq_play % psql testing
psql (9.3.5)
Type "help" for help.

testing=# prepare test as select * from topics where archetype = $1 limit 1;
PREPARE
testing=# explain analyze execute test('banner');
                                                       QUERY PLAN
------------------------------------------------------------------------------------------------------------------------
 Limit  (cost=0.29..651.49 rows=1 width=520) (actual time=0.983..0.983 rows=0 loops=1)
   ->  Index Scan using idx11 on topics  (cost=0.29..651.49 rows=1 width=520) (actual time=0.980..0.980 rows=0 loops=1)
         Index Cond: ((archetype)::text = 'banner'::text)
 Total runtime: 1.037 ms
(4 rows)

testing=# explain analyze select * from topics where archetype = 'banner' limit 1;
                                                       QUERY PLAN
------------------------------------------------------------------------------------------------------------------------
 Limit  (cost=0.29..651.49 rows=1 width=520) (actual time=0.642..0.642 rows=0 loops=1)
   ->  Index Scan using idx11 on topics  (cost=0.29..651.49 rows=1 width=520) (actual time=0.641..0.641 rows=0 loops=1)
         Index Cond: ((archetype)::text = 'banner'::text)
 Total runtime: 0.673 ms
(4 rows)

Something about running this from libpq is causing it to scan the table as opposed to scanning the index.

Any idea why is this happening?

(note: Rails 4.2 is moving to a pattern of using prepared statements far more often which is why I discovered this issue)

Posted here: http://www.postgresql.org/message-id/CAAtdryOvyNibvSnp9ErO48d_i8R7da3=Fdqn1qxPqZE0pJLwXw@mail.gmail.com

Posts: 1

Participants: 1

Read full topic

Hide private badge page?

0
0

Nindita Giwangkara wrote:

Hi dev,

Is there anyway I can hide badge page? So that normal user wont be able to view who are granted.
for example, in my board, I have badges granted to financial backer, how to hide the badge page for this particular type of badge.

Thanks.

Posts: 4

Participants: 3

Read full topic

Where would an anonymous user plugin store its users?

0
0

KajMagnus wrote:

Hi,

Where would you suggest that an anonymous users plugin store its users? (I.e. a plugin that allowed users to post comments without first logging in.) Would you suggest storing the anonymous users in the same database table as the authenticated users (i.e. the users table)? Or a separate table, which had only name and perhaps email and location columns? — If in a separate table, would you pick ids from the same id sequence as for authenticated users? (i.e. users_id_seq)

And why / not?

(This plugin seems like a good project if I want to learn Ruby + Discourse, but I'm not planning to write this plugin in the nearest future.)

(Not sure if this topic best belongs to the marketplace or dev category?)

Best regards,
KajMagnus

Posts: 2

Participants: 2

Read full topic

Losing page rank after migration

0
0

Ricardo Viteri wrote:

How can I avoid losing my page rank on google after I migrate from another platform (all the links will change)?

Posts: 2

Participants: 2

Read full topic

Keyboard new topic incorrectly recalls post, not topic, draft

0
0

TheLoneCuber wrote:

When I create topics via the 'c' keyboard shortcut, all the text from the last-created topic appears in the new topic tray. So the title input is filled with the last-create title, the category is set to the last-used category, and the topic field contains the entire text from the previous topic. Is this known or expected to behaviour?

Posts: 20

Participants: 4

Read full topic

Listing of all communities on Discourse

0
0

Surabhi Dewra wrote:

It will be good to have a topic where we can list down all live communities/solutions running on discourse. Will be good for all to see examples.

Posts: 3

Participants: 2

Read full topic


Nokogiri update

0
0

Stefan Tatschner wrote:

Hi,
I hope this is the correct communication slot for reporting things like this. If I am wrong I appreciate a pointer to the correct location. Thanks.

nokogiri might be updated to 1.6.4.1 in Gemfile.lock. I had problems with segfaults in sidekiq caused by nokogiri 1.6.3.1; they seem to be fixed in 1.6.4.1.

Stefan

Posts: 3

Participants: 2

Read full topic

Highlighting a particular post or most relevant post feature

0
0

Love Chopra wrote:

Whenever there is a topic with more then 10 post, I really feel there should be a feature which can highlights a post which has some higher weightage instead of reading through all the discussion point, and manually try to indetify which one is best, instead if it can be done algorithmically, here I mean higher weightage post could falls under following scnerios or may be many more:

  • A post which is posted by a member who belongs to higher level let say level 3 or lever 4
  • Or if it liked by a user who created this topic
  • Or it got some decent number of likes or shares

Posts: 3

Participants: 3

Read full topic

Blue Box Welcome Message

Creation of a sub-category under General Discussion

0
0

Steven Greco wrote:

Hello

Is there a way to create sub-categories under General Discussion? I would like to put the Introduce yourself category under this one. But General Discussion does not come up on the list when selecting the parent category.

Thanks

Posts: 2

Participants: 2

Read full topic

Rename STAFF category to MODERATORS

0
0

Tobias Eigen wrote:

Can I recommend that we rename the special, preconfigured STAFF category to MODERATORS category? On a site I am setting up for an organization there is a bit of confusion around what this is for. I can explain the difference between this STAFF category and our other internal (e.g."orgname staff") categories but it would be nice not to have to do that in the first place.

Continuing the discussion from How to rename a Category? (safely):

Posts: 8

Participants: 6

Read full topic

How restrict PM to staff members?

0
0

Axel Briche wrote:

Hello, I would like know how I can restrict privates messages to all staff members please ?
Thanks.

Posts: 3

Participants: 3

Read full topic

Problem with mail

0
0

Axel Briche wrote:

Hello, send a mail of test work, but I don't receive one mail when I receive a private message or a reply inside my own threads, why please ? It's a bug of discourse ? Thanks.

Posts: 4

Participants: 2

Read full topic


Changing category within edit grace period as TL3 pops up an error

How to edit hamburger menu items?

0
0

Aagat wrote:

Is there any way to edit/delete/rearrange menu items in hamburger menu next to profile picture on top left of the screen?

Posts: 6

Participants: 4

Read full topic

Onebox must not start automatically embedded SWF files

0
0

Eric Vantillard wrote:

Actually when we have videos displayed with Onebox, the video start automatically without clicking.

Is it possible to avoid auto start of the video ?

Posts: 4

Participants: 3

Read full topic

Security permissions and messages displayed on group url

0
0

Eric Vantillard wrote:

I think it's a bug.

Scenario

Context

  • We have a group named restauration with users evantill and user2
  • We have a category named restauration with permissions only for users of the restauration group

  • We have an other group CE13 with users evantill and user3

  • We have a category named CE13 with permissions only for users of the CE13 group

Usage

when going to the group url https://discourse.sophiebarat.fr/groups/restauration we will have all messages from any users in this group including messages from other categories.

In our case, user user2 have no permissions on category CE13 but it will see all messages from user evantill including messages in the CE13 category.

Screenshot

Posts: 2

Participants: 2

Read full topic

Group Page need some Styling Attention (again)

0
0

cpradio wrote:

@awesomerobot, you may want to look at the Group Pages styling again, note how the first post seems to drop down below the Members navigation (looks really weird).

Also, there is no Group Name on this page... so you can't tell what group I'm viewing and can we get the Category to show up on the posts too (I realize that's an enhancement)?

Posts: 9

Participants: 3

Read full topic

Viewing all 60309 articles
Browse latest View live




Latest Images