The new community.nodebb.org theme!



  • Hi again,

    I'm pretty sure I'm all upgraded now and I still get the same error. My browser console gives me this error:

    Uncaught SyntaxError: Unexpected token <

    And the page loads but without any styling. Even reverting the theme in admin > themes doesn't work anymore. Any idea what the issue is? By the way, here are my server logs while it is running:

    info: NodeBB Ready
    warn: [socket.io] Unrecognized message: event:enter_room
    warn: [socket.io] Unrecognized message: reconnected
    warn: [socket.io] Unrecognized message: api:updateHeader
    warn: [socket.io] Unrecognized message: api:updateHeader
    warn: [socket.io] Unrecognized message: event:enter_room
    warn: [socket.io] Unrecognized message: api:updateHeader
    warn: [socket.io] Unrecognized message: api:notifications.getCount
    warn: [socket.io] Unrecognized message: api:unread.count
    warn: [socket.io] Unrecognized message: api:updateHeader
    warn: [socket.io] Unrecognized message: api:updateHeader
    warn: [socket.io] Unrecognized message: api:user.get_online_users
    warn: [socket.io] Unrecognized message: api:meta.buildTitle
    warn: [socket.io] Unrecognized message: post.stats
    warn: [socket.io] Unrecognized message: api:user.active.get

    Please get back to me as soon as you get a chance! Thanks!


  • Plugin & Theme Dev

    what's the output of

    git describe --tags



  • $ git describe --tags
    fatal: No names found, cannot describe anything.

    Also, just realized that the error only shows up on Google Chrome (the browser I first opened it on). No problem with Safari or Chrome Canary). What?!


  • Plugin & Theme Dev

    caching is not working for you - something is up with your git repo. My gut says incorrect user permission.



  • Yup, just cleared the cache and it works fine. Thanks all.


  • Plugin & Theme Dev

    but that wont fix it for your users, you need to investigate why ur local git repo is doing that


  • GNU/Linux Admin

    Agreed, could be permissions...

    ls -l .git, @aaron ?



  • Thanks in advance for the help! Here's the readout--

    $ ls -l .git
    total 688
    drwxrwxr-x 2 ubuntu ubuntu   4096 Jan 22 22:48 branches
    -rw-rw-r-- 1 ubuntu ubuntu    284 Jan 23 19:17 config
    -rw-rw-r-- 1 ubuntu ubuntu     73 Jan 22 22:48 description
    -rw-rw-r-- 1 ubuntu ubuntu    104 Jan 23 19:17 FETCH_HEAD
    -rw-rw-r-- 1 ubuntu ubuntu     23 Jan 22 22:48 HEAD
    drwxrwxr-x 2 ubuntu ubuntu   4096 Jan 22 22:48 hooks
    -rw-rw-r-- 1 ubuntu ubuntu 657968 Jan 23 19:17 index
    drwxrwxr-x 2 ubuntu ubuntu   4096 Jan 22 22:48 info
    drwxrwxr-x 3 ubuntu ubuntu   4096 Jan 23 18:40 logs
    drwxrwxr-x 4 ubuntu ubuntu   4096 Jan 22 22:48 objects
    -rw-rw-r-- 1 ubuntu ubuntu     41 Jan 23 19:17 ORIG_HEAD
    drwxrwxr-x 5 ubuntu ubuntu   4096 Jan 23 18:30 refs
    

  • GNU/Linux Admin

    fatal: No names found, cannot describe anything.

    ... and I'm assuming you're logged in as ubuntu?



  • Yeah, logged in as ubuntu.


  • GNU/Linux Admin

    @bentael -- may need a fallback in case git describe --tags fails, as in @aaron's case, and yours.



  • Haha yeah I just deleted the cache again and it started working. Is this problem going to resurface? Does it look like I have permissions set incorrectly?

    Thanks!


  • GNU/Linux Admin

    Hey @aaron, it looks like your permissions are set correctly (if you can git pull, that should be fine). You're not using sudo or anything to run NodeBB, are you?

    Once the git describe command starts to work correctly, you shouldn't have any further problems with client-side script caching...


  • Plugin & Theme Dev

    @julian it would be awesome if you can publicly share like a pre-setup Ubuntu/Debian/CentOS etc. (or whatever) DigitalOcean images, with nginx setup, correct permissions, redis/mongo dbs, oh the awesomeness, I suck at sysadmin.
    oh wait, maybe i just let you host it 😛


  • GNU/Linux Admin

    @bentael 😮 You mean people don't have computers like my 3GHz Dual Core with 6GB memory running Desktop Ubuntu 12.10?

    I'm not sure if Digital Ocean would let their images be made public, although if so, I'd be more than happy to share a working one!

    Edit: Seems like people are asking for it already



  • Screen Shot 2014-01-24 at 4.36.21 PM.png

    Everything else got better when I deleted the cache. But forking doesn't seem to work for me. Here's a screenshot of what happens when I try to fork. It doesn't let me select anything to fork.


  • Staff Admin

    Did you click on posts that you want to fork out? The button should became available when you do.


Log in to reply
 

Suggested Topics

| |