Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags
    • Users
    • Groups
    1. Home
    2. codecowboy
    C
    • Profile
    • Following 0
    • Followers 0
    • Topics 20
    • Posts 64
    • Best 10
    • Groups 0

    codecowboy

    @codecowboy

    14
    Reputation
    932
    Profile views
    64
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    codecowboy Follow

    Best posts made by codecowboy

    • RE: Moving a NodeBB mongo DB from one server to another.

      @Scuzz thanks - that worked for me in the end.

      posted in Technical Support
      C
      codecowboy
    • New user status

      Please can a forum moderator change my status so that I dont have to wait 5 minutes to make a new post? I've posted quite a few times and am not a bot 🙂

      Many thanks!

      posted in General Discussion
      C
      codecowboy
    • RE: Open external links in new browser tab

      Yep this is a global option in /admin/settings/user#default-user-settings

      0_1460524770594_Screen Shot 2016-04-13 at 06.16.41.png

      posted in Feature Requests
      C
      codecowboy
    • Domain name in password reset email

      I have NodeBB behind an nginx proxy so requests are forwarded to localhost:4567.

      If the user goes through the process of resetting their password, the email they receive contains a link with localhost:4567 and so the link doesn't work.

      How can I change this so that the email will reflect the actual domain I am hosting the site on?

      posted in Technical Support
      C
      codecowboy
    • RE: What is the format of the NodeBB entries in MongoDB?

      If you're new to Mongo (I am too) and thinking about the database in terms of a more traditional relational database, it can be pretty confusing.

      I would recommend MongoChef over Robomongo as your client.

      In the collection view, run a query like:

      { "username": { $not: { $exists: false } } }

      That will give you all the objects whose username field is populated. As far as I understand it, there is no users table, just objects. An object can be anything and the only thing which determines what it is, is the fields / properties on that object. If the username is populated, it will be a user.

      My database may be different to yours as I imported from a legacy forum but my user objects have an entry called _key which is set to a user ID. Hope that helps

      posted in General Discussion
      C
      codecowboy
    • Is there a way to bulk purge deleted posts?

      I have a number of posts which I have deleted. I'd like them to be fully purged rather than deleted and greyed out for admins.

      Anyone know of a way to bulk purge posts? If not, Is there something I can run directly against Mongo to do this manually?

      posted in Technical Support
      C
      codecowboy
    • RE: Emoji Pics - Reverse Proxy

      @Phate did you resolve this?

      posted in Technical Support
      C
      codecowboy
    • RE: Domain name in password reset email

      @pichalite thanks that sorted it!

      Would you be able to upvote my question so that I can increase my reputation? I have to wait 5 minutes to make a post at the moment.

      posted in Technical Support
      C
      codecowboy
    • RE: 403 error when trying to login

      In my particular case, this seems to have been caused by one or all of:

      1. Missing the following request header in Apache:
      <VirtualHost *:80>
          RequestHeader set X-Forwarded-Proto "http"
          …
      </VirtualHost>
      

      I added the above apache directive and restarted apache..

      2.Having the cookieDomain set in the admin panel

      If you cannot log into your forum, the only way to do remove this cookieDomain value is to manually run a DB query to remove it. In my case this was Mongo and I used a GUI client to remove the value.

      A raw query would look something like this:

      db.objects.update({_key: "config"}, {$set: {cookieDomain: ""}});
      

      More info here - https://community.nodebb.org/topic/9196/invalid-session?_=1470286431609&page=1

      posted in Technical Support
      C
      codecowboy
    • RE: Where is the markup in Appearance ->Custom Header rendered?

      @julian thanks. So this is the only way to do this? If so, I'll just do a jQuery append as you say.

      posted in Technical Support
      C
      codecowboy

    Latest posts made by codecowboy

    • RE: Changing order of pinned topics

      @julian Is there any way to do this now? Having the most recently pinned topic be first in the list seems much more logical.

      posted in General Discussion
      C
      codecowboy
    • RE: Invalid CSRF Token

      @pichalite aha. My bad. I am stupid. Its a curse.

      posted in Technical Support
      C
      codecowboy
    • RE: 403 error when trying to login

      In my particular case, this seems to have been caused by one or all of:

      1. Missing the following request header in Apache:
      <VirtualHost *:80>
          RequestHeader set X-Forwarded-Proto "http"
          …
      </VirtualHost>
      

      I added the above apache directive and restarted apache..

      2.Having the cookieDomain set in the admin panel

      If you cannot log into your forum, the only way to do remove this cookieDomain value is to manually run a DB query to remove it. In my case this was Mongo and I used a GUI client to remove the value.

      A raw query would look something like this:

      db.objects.update({_key: "config"}, {$set: {cookieDomain: ""}});
      

      More info here - https://community.nodebb.org/topic/9196/invalid-session?_=1470286431609&page=1

      posted in Technical Support
      C
      codecowboy
    • RE: Invalid session

      @pichalite said in Invalid session:

      db.objects.update({_key: "config"}, {$set: {cookieDomain: ""}}

      I have now deleted that field in the database, restarted NodeBB and this solved it.

      Thanks @pichalite and @julian !!!

      Please tell me where to add documentation about this so that others do not experience this pain. And trust me it was real pain. I cried into my cornflakes.

      I would like to understand why having the cookieDomain set breaks things and how to integrate this into the updater - perhaps this could be my first contribution to the code? Surely if having this value set is going to render a forum unusable then it should either be fixed or the field should be removed in the most recent update script?

      Thanks again.

      posted in Technical Support
      C
      codecowboy
    • RE: Invalid CSRF Token

      @pichalite SSL:No is mentioned higher up in this thread

      posted in Technical Support
      C
      codecowboy
    • RE: Invalid session

      @julian said in Invalid session:

      cookieDomain

      Is there a way to override cookieDomain in config.json? I think I may have set this option at some point in the admin dashboard.

      posted in Technical Support
      C
      codecowboy
    • RE: Invalid session

      @jarey I restarted apache and cant see anything useful in the logs relating to that header. I've pasted the logs in a previous post

      posted in Technical Support
      C
      codecowboy
    • RE: Invalid session

      I tried some more apache debugging and am getting the following:

      [Tue Aug 02 07:57:05.141920 2016] [authz_core:debug] [pid 3272] mod_authz_core.c(828): [client 86.190.168.236:50732] AH01628: authorization result: granted (no directives), referer: http://kommunity.kickasskandy.com/login?error=csrf-invalid
      [Tue Aug 02 07:57:05.142035 2016] [proxy:debug] [pid 3272] mod_proxy.c(1104): [client 86.190.168.236:50732] AH01143: Running scheme http handler (attempt 0), referer: http://kommunity.kickasskandy.com/login?error=csrf-invalid
      [Tue Aug 02 07:57:05.142077 2016] [proxy:debug] [pid 3272] proxy_util.c(2072): [client 86.190.168.236:50732] AH00944: connecting http://127.0.0.1:4566/language/en_GB/language.json?v=38efc154-50a9-4518-bac1-62d8900bc869 to 127.0.0.1:4566, referer: http://kommunity.kickasskandy.com/login?error=csrf-invalid
      [Tue Aug 02 07:57:05.142093 2016] [proxy:debug] [pid 3272] proxy_util.c(2206): [client 86.190.168.236:50732] AH00947: connected /language/en_GB/language.json?v=38efc154-50a9-4518-bac1-62d8900bc869 to 127.0.0.1:4566, referer: http://kommunity.kickasskandy.com/login?error=csrf-invalid
      [Tue Aug 02 07:57:05.142283 2016] [authz_core:debug] [pid 3166] mod_authz_core.c(828): [client 86.190.168.236:50730] AH01628: authorization result: granted (no directives), referer: http://kommunity.kickasskandy.com/login?error=csrf-invalid
      [Tue Aug 02 07:57:05.142375 2016] [proxy:debug] [pid 3166] mod_proxy.c(1104): [client 86.190.168.236:50730] AH01143: Running scheme http handler (attempt 0), referer: http://kommunity.kickasskandy.com/login?error=csrf-invalid
      [Tue Aug 02 07:57:05.142412 2016] [proxy:debug] [pid 3166] proxy_util.c(2072): [client 86.190.168.236:50730] AH00944: connecting http://127.0.0.1:4566/vendor/jquery/timeago/locales/jquery.timeago.en.js?_=1470121024713 to 127.0.0.1:4566, referer: http://kommunity.kickasskandy.com/login?error=csrf-invalid
      [Tue Aug 02 07:57:05.142446 2016] [proxy:debug] [pid 3166] proxy_util.c(2206): [client 86.190.168.236:50730] AH00947: connected /vendor/jquery/timeago/locales/jquery.timeago.en.js?_=1470121024713 to 127.0.0.1:4566, referer: http://kommunity.kickasskandy.com/login?error=csrf-invalid
      [Tue Aug 02 07:57:05.145968 2016] [authz_core:debug] [pid 3185] mod_authz_core.c(828): [client 86.190.168.236:50733] AH01628: authorization result: granted (no directives), referer: http://kommunity.kickasskandy.com/login?error=csrf-invalid
      [Tue Aug 02 07:57:05.146082 2016] [proxy:debug] [pid 3185] mod_proxy.c(1104): [client 86.190.168.236:50733] AH01143: Running scheme http handler (attempt 0), referer: http://kommunity.kickasskandy.com/login?error=csrf-invalid
      [Tue Aug 02 07:57:05.146149 2016] [proxy:debug] [pid 3185] proxy_util.c(2072): [client 86.190.168.236:50733] AH00944: connecting http://127.0.0.1:4566/socket.io/?EIO=3&transport=polling&t=LPA2fvh&sid=dEEm6u9K-ruZQXcpAAAi to 127.0.0.1:4566, referer: http://kommunity.kickasskandy.com/login?error=csrf-invalid
      [Tue Aug 02 07:57:05.146166 2016] [proxy:debug] [pid 3185] proxy_util.c(2206): [client 86.190.168.236:50733] AH00947: connected /socket.io/?EIO=3&transport=polling&t=LPA2fvh&sid=dEEm6u9K-ruZQXcpAAAi to 127.0.0.1:4566, referer: http://kommunity.kickasskandy.com/login?error=csrf-invalid
      [Tue Aug 02 07:57:05.203574 2016] [deflate:debug] [pid 3166] mod_deflate.c(849): [client 86.190.168.236:50730] AH01384: Zlib: Compressed 455 to 228 : URL /vendor/jquery/timeago/locales/jquery.timeago.en.js, referer: http://kommunity.kickasskandy.com/login?error=csrf-invalid
      [Tue Aug 02 07:57:05.220461 2016] [authz_core:debug] [pid 3166] mod_authz_core.c(828): [client 86.190.168.236:50730] AH01628: authorization result: granted (no directives), referer: http://kommunity.kickasskandy.com/login?error=csrf-invalid
      [Tue Aug 02 07:57:05.220590 2016] [proxy:debug] [pid 3166] mod_proxy.c(1104): [client 86.190.168.236:50730] AH01143: Running scheme http handler (attempt 0), referer: http://kommunity.kickasskandy.com/login?error=csrf-invalid
      [Tue Aug 02 07:57:05.220627 2016] [proxy:debug] [pid 3166] proxy_util.c(2072): [client 86.190.168.236:50730] AH00944: connecting http://127.0.0.1:4566/vendor/jquery/timeago/locales/jquery.timeago.en-short.js?_=1470121024714 to 127.0.0.1:4566, referer: http://kommunity.kickasskandy.com/login?error=csrf-invalid
      [Tue Aug 02 07:57:05.220642 2016] [proxy:debug] [pid 3166] proxy_util.c(2206): [client 86.190.168.236:50730] AH00947: connected /vendor/jquery/timeago/locales/jquery.timeago.en-short.js?_=1470121024714 to 127.0.0.1:4566, referer: http://kommunity.kickasskandy.com/login?error=csrf-invalid
      [Tue Aug 02 07:57:05.263389 2016] [deflate:debug] [pid 3166] mod_deflate.c(849): [client 86.190.168.236:50730] AH01384: Zlib: Compressed 351 to 186 : URL /vendor/jquery/timeago/locales/jquery.timeago.en-short.js, referer: http://kommunity.kickasskandy.com/login?error=csrf-invalid
      
      posted in Technical Support
      C
      codecowboy
    • RE: Invalid CSRF Token

      @pichalite

      where do we set SSL:no. Can you paste your config.json?

      posted in Technical Support
      C
      codecowboy
    • RE: Invalid session

      @julian I would check the cookie domain settings if I could log in - which I can't.

      posted in Technical Support
      C
      codecowboy