upgrade failed



  • I'm upgrade nodebb from 1.4.4 to 1.5.1.
    After running git pull && ./nodebb upgrade , I got some error

    [bangbang93@core NodeBB]$ ./nodebb upgrade
    1. Bringing base dependencies up to date... OK
    2. Checking installed plugins for updates... OK
    
    A total of 2 package(s) can be upgraded:
      * nodebb-plugin-audio-embed (1.0.4 -> 1.1.1)
      * nodebb-theme-material (2.10.0 -> 2.11.3)
    
    Proceed with upgrade (y|n)? y
    
    Upgrading packages... OK
    3. Updating NodeBB data store schema...
    [deprecated] `String.prototype.rtrim` is deprecated as of NodeBB v1.5; use `utils.rtrim` instead.
    30/6 13:25:59 [4177] - warn: You have no mongo username/password setup!
    
    Parsing upgrade scripts... OK | 30 script(s) found
      → [2015/12/23] Chat room hashes... skipped
      → [2015/12/15] Upgrading chats... skipped
      → [2016/2/25] Social: Post Sharing... skipped
      → [2015/12/23] Adding theme to active plugins sorted set... skipped
      → [2016/1/14] Creating user best post sorted sets... skipped
      → [2016/1/20] Creating users:notvalidated... skipped
      → [2016/1/23] Creating Global moderators group... skipped
      → [2016/5/28] Giving topics:read privs to any group that was previously allowed to Find & Access Ca  → [2016/5/28] Giving topics:read privs to any group that was previously allowed to Find & Access Category... skipped
      → [2016/4/14] Group title from settings to user profile... skipped
      → [2016/6/13] Store upvotes/downvotes separately... skipped
      → [2016/4/19] Users post count per tid... skipped
      → [2016/4/29] Dismiss flags from deleted topics... skipped
      → [2016/8/5] Removing best posts with negative scores... skipped
      → [2016/7/12] Giving upload privileges... skipped
      → [2016/9/22] Category recent tids... skipped
      → [2016/8/7] Granting edit/delete/delete topic on existing categories... skipped
      → [2016/10/8] Favourites to Bookmarks... skipped
      → [2016/10/14] Sorted sets for post replies... skipped
      → [2016/11/25] Sorted set for pinned topics... skipped
      → [2016/11/22] Update global and user language keys... skipped
      → [2017/2/28] Upgrading config urls to use assets route... skipped
      → [2017/2/25] Update global and user sound settings... skipped
      → [2017/4/16] Delete accidentally long-lived sessions... OK
      → [2017/3/22] Update moderation notes to zset... OK
      → [2017/2/27] New sorted set posts:votes... OK
      → [2017/4/26] Remove relative_path from uploaded profile cover urls... OK
      → [2017/4/14] Set default allowed file extensions... OK
      → [2016/12/7] Migrating flags to new schema... OK
      → [2017/5/26] rename user mod privileges group... OK
      → [2017/6/16] Give tag privilege to registered-users on all categories... OK
    Upgrade complete!
    
    30/6 13:26:00 [4177] - warn: You have no mongo username/password setup!
    30/6 13:26:00 [4177] - error: [build] Encountered error preparing for build: undefined
    30/6 13:26:00 [4177] - error: [build] Encountered error during build step: undefined
    30/6 13:26:00 [4177] - error: undefined
    
    Error: undefined
    
    [bangbang93@core NodeBB]$ ./nodebb build
    [deprecated] `String.prototype.rtrim` is deprecated as of NodeBB v1.5; use `utils.rtrim` instead.
    30/6 13:37:58 [6201] - warn: You have no mongo username/password setup!
    30/6 13:37:58 [6201] - error: [build] Encountered error preparing for build: undefined
    30/6 13:37:58 [6201] - error: [build] Encountered error during build step: undefined
    30/6 13:37:58 [6201] - error:
    

    git commit: 4271ce1e14ee40d4373a8bd4f43dc93d37107b60
    node: v7.6.0


  • Global Moderator

    @bangbang93 what plugins do you have enabled?



  • nodebb-plugin-audio-embed
    nodebb-plugin-cloudmusic
    nodebb-plugin-composer-default
    nodebb-plugin-dbsearch
    nodebb-plugin-emoji-apple
    nodebb-plugin-emoji-extended
    nodebb-plugin-emoji-static
    nodebb-plugin-emoji-twemoji
    nodebb-plugin-html5videoplayer
    nodebb-plugin-imagemagick
    nodebb-plugin-markdown
    nodebb-plugin-soundpack-default
    nodebb-plugin-sso-oauth



  • I delete my node_modules folder and reinstall all my plugins and themes.And finish my upgrade progess.

    But now I got some trouble with template.
    0_1498802753738_0fa9057e-f8d1-4880-a415-cacdc7c46156-image.png

    Switch to default theme didn't useful.


  • Global Moderator

    what does build/public/nodebb.min.js have as content?



  • @pitaj said in upgrade failed:

    build/public/nodebb.min.js

    0_1498803026640_5508a3d8-64ed-4139-bbf0-bd89d7922b53-image.png
    ……



  • build log

    [bangbang93@core NodeBB]$ ./nodebb build
    [deprecated] `String.prototype.rtrim` is deprecated as of NodeBB v1.5; use `utils.rtrim` instead.
    30/6 14:11:17 [4639] - warn: You have no mongo username/password setup!
    30/6 14:11:17 [4639] - info: [build] Building in parallel mode
    30/6 14:11:17 [4639] - info: [build]         plugin static dirs  build started
    30/6 14:11:17 [4639] - info: [build]          requirejs modules  build started
    30/6 14:11:17 [4639] - info: [build]           client js bundle  build started
    30/6 14:11:17 [4639] - info: [build]            admin js bundle  build started
    30/6 14:11:17 [4639] - info: [build]         client side styles  build started
    30/6 14:11:17 [4639] - info: [build] admin control panel styles  build started
    30/6 14:11:17 [4639] - info: [build]                  templates  build started
    30/6 14:11:17 [4639] - info: [build]                  languages  build started
    30/6 14:11:17 [4639] - info: [build]                     sounds  build started
    30/6 14:11:18 [4639] - info: [build]                     sounds  build completed in 0.819sec
    30/6 14:11:18 [4639] - info: [build]           client js bundle  build completed in 0.863sec
    30/6 14:11:18 [4639] - info: [build]         plugin static dirs  build completed in 0.869sec
    30/6 14:11:22 [4639] - info: [build]            admin js bundle  build completed in 4.477sec
    30/6 14:11:22 [4639] - info: [build]          requirejs modules  build completed in 4.496sec
    30/6 14:11:22 [4639] - info: [build] admin control panel styles  build completed in 4.496sec
    30/6 14:11:22 [4639] - info: [build]         client side styles  build completed in 4.498sec
    30/6 14:11:22 [4639] - warn: [meta/templates] Partial not loaded: partials/category_list.tpl
    30/6 14:11:22 [4639] - warn: [meta/templates] Partial not loaded: partials/category_list.tpl
    30/6 14:11:22 [4639] - info: [build]                  templates  build completed in 4.963sec
    30/6 14:11:23 [4639] - info: [build]                  languages  build completed in 5.837sec
    30/6 14:11:23 [4639] - info: [build] Asset compilation successful. Completed in 5.855sec.
    

  • Global Moderator

    Try disabling all plugins and reactivating them one by one. This is most likely due to one problematic plugin that's incompatible with NodeBB v1.5



  • ok, after reactivated my plugins one by one, I found it was "nodebb-plugin-html5videoplayer"


Log in to reply
 


Looks like your connection to NodeBB was lost, please wait while we try to reconnect.