Mobile Push Notification , big problem

Technical Support

Suggested Topics


  • Post queue too big (crashing site)

    Unsolved Technical Support
    0 Votes
    2 Posts
    239 Views

    I will post a couple queries to help with this.

    Get number of queued posts

    db.objects.count({_key: "post:queue"});

    Get latest 20 post queue objects ids

    db.objects.find({_key: "post:queue"}).sort({score: -1}).limit(20);

    Using ids from above query you can get the queued posts with

    db.objects.find({_key: "post:queue:<replace_with_id_from_above_query"});

    To delete a post queue from the db with id 123456

    db.objects.remove({_key: "post:queue", value: "123456"}); db.objects.remove({_key: "post:queue:123456"});

    To remove all queued posts

    db.objects.remove({_key: /^post:queue/});

    Hope that helps.

  • 0 Votes
    6 Posts
    476 Views

    What exactly would I have to do ?

  • 0 Votes
    10 Posts
    4k Views

    @julian thanks, but all properties on any VPS "permission denied on key":

    $ cat /proc/sys/vm/swappiness 60 $ sudo sysctl vm.swappiness=10 sysctl: permission denied on key 'vm.swappiness'

    And with the memory seems to be all right:
    0_1478632336050_Снимок экрана от 2016-11-08 22-12-04.png

  • 0 Votes
    6 Posts
    2k Views
    I'm updating any plug-in. I'm throwing reset the system. Then I get a 502 error. Log as follows. Upgrade learn everything by going into the past.

    [cluster] Child Process (14718) has exited (code: 0, signal: null)

    24/8 12:32 [25466] - info: Time: Mon Aug 24 2015 12:32:01 GMT-0400 (EDT)

    24/8 12:32 [25466] - info: Initializing NodeBB v0.7.3

    Warning: Redis server does not require a password, but a password was supplied.

    Warning: Redis server does not require a password, but a password was supplied.

    Warning: Redis server does not require a password, but a password was supplied.

    [outdated] nodebb-plugin-composer-default v1.0.11, requires 1.0.9

    24/8 12:32 [25466] - warn: One or more of NodeBB's dependent packages are out-of-date. Please run the following command to update them:

    24/8 12:32 [25466] - warn: ./nodebb upgrade

    [cluster] Child Process (25466) has exited (code: 0, signal: null)

  • 0 Votes
    8 Posts
    4k Views

    You can add it in your DNS settings of your domain.