upgrade from 0.5.0 to 0.5.1
-
Auto-merging npm-shrinkwrap.json
CONFLICT (add/add): Merge conflict in npm-shrinkwrap.json
Removing NOTES.md
Automatic merge failed; fix conflicts and then commit the result.I removed all themes, but again I get above error with
git pull origin v0.5.x
-
Here's an article on github's help pages that might help you.
https://help.github.com/articles/resolving-a-merge-conflict-from-the-command-line
-
@mootzville said:
Here's an article on github's help pages that might help you.
https://help.github.com/articles/resolving-a-merge-conflict-from-the-command-line
Care give the command to be used. I am not very good at this.
-
@meetdilip said:
Care give the command to be used. I am not very good at this.
git stash
should be fine.
I'm assuming you're wanting to go to master branch?
If so,
git checkout master
(If you want stable (recommended) thengit checkout v0.5.x
)
git pull
./nodebb upgrade
npm up
./nodebb restart
If you get any errors about plugins wanting certain versions of vanilla or lavender, then disable or uninstall them, then run upgrade/npm up again..
FWIW, there's no 0.5.1 branch, it's either 0.5.x or master, master includes the changes that were in 0.5.1, with some other nuances that may cause instability.
-
@meetdilip said:
No luck. Stuck here
Auto-merging npm-shrinkwrap.json
CONFLICT (add/add): Merge conflict in npm-shrinkwrap.jsonI see this when trying to upgrade BitBangers, I dont know enough about git to bypass it myself.
This is stopping me from upgrading too. -
@meetdilip What's your output of
git status
?EDIT: I'm guessing what has happened is maybe you manually modified some file(s) in your folder -- which is a git folder.
git pull
does several things. I'm not an expert, but among them it doesgit fetch
&git merge
and I'm not sure what else. Anyway, since you modified some files and it's trying to merge it can't because the file(s) are different. So, first you have to do agit status
to see what's going on. Then, from the looks of the output you've already shown you'll have to do something with the npm-shrinkwrap.json file.You can also try
git diff
which might give you some more info about what's different since you've already tried togit pull
Basically, git doesn't want to merge because it doesn't know which file(s) you want to keep...the one getting pulled in or the one you've modified. It could be something as simple as an extra space somewhere, or even just a different timestamp (I think) on the file.
Disclaimer: As I've already stated, I'm not an expert with git -- still learning it myself -- so this may not be exact.
-
Thanks @mootzville . Only changes I made are installing a few themes and plugins. I have not made any manual edit to any of the files as far as I can remember.
git status result
new file: public/less/mixins.less
modified: public/src/ajaxify.js
modified: public/src/app.js
modified: public/src/forum/account/edit.js
modified: public/src/forum/account/profile.js
new file: public/src/forum/admin/appearance/customise.js
new file: public/src/forum/admin/appearance/skins.js
new file: public/src/forum/admin/appearance/themes.js
renamed: public/src/forum/admin/plugins.js -> public/src/forum/admin/extend/plugins.js
renamed: public/src/forum/admin/themes.js -> public/src/forum/admin/extend/widgets.js
new file: public/src/forum/admin/footer.js
new file: public/src/forum/admin/general/dashboard.js
new file: public/src/forum/admin/general/languages.js
renamed: public/src/forum/admin/sounds.js -> public/src/forum/admin/general/sounds.js
deleted: public/src/forum/admin/index.js
deleted: public/src/forum/admin/languages.js
renamed: public/src/forum/admin/categories.js -> public/src/forum/admin/manage/categories.js
renamed: public/src/forum/admin/groups.js -> public/src/forum/admin/manage/groups.js
new file: public/src/forum/admin/manage/tags.js
renamed: public/src/forum/admin/users.js -> public/src/forum/admin/manage/users.js
modified: public/src/forum/admin/settings.js
modified: public/src/forum/category.js
modified: public/src/forum/chats.js
modified: public/src/forum/footer.js
modified: public/src/forum/home.js
modified: public/src/forum/infinitescroll.js
modified: public/src/forum/login.js
modified: public/src/forum/popular.js
modified: public/src/forum/recent.js
modified: public/src/forum/search.js
modified: public/src/forum/tags.js
modified: public/src/forum/topic.js
modified: public/src/forum/topic/browsing.js
modified: public/src/forum/topic/events.js
modified: public/src/forum/topic/fork.js
modified: public/src/forum/topic/move.js
modified: public/src/forum/topic/postTools.js
modified: public/src/forum/topic/threadTools.js
modified: public/src/forum/unread.js
modified: public/src/forum/users.js
new file: public/src/modules/admin.js
modified: public/src/modules/alerts.js
modified: public/src/modules/chat.js
modified: public/src/modules/composer.js
new file: public/src/modules/composer/categoryList.js
modified: public/src/modules/composer/resize.js
modified: public/src/modules/composer/tags.js
modified: public/src/modules/composer/uploads.js
modified: public/src/modules/navigator.js
modified: public/src/modules/notifications.js
new file: public/src/modules/search.js
modified: public/src/modules/settings.js
modified: public/src/modules/sounds.js
new file: public/src/modules/templates.js
modified: public/src/modules/uploader.js
deleted: public/src/templates.js
modified: public/src/translator.js
modified: public/src/utils.js
modified: public/src/widgets.js
new file: public/vendor/ace/ace.js
new file: public/vendor/ace/ext-chromevox.js
new file: public/vendor/ace/ext-elastic_tabstops_lite.js
new file: public/vendor/ace/ext-emmet.js
new file: public/vendor/ace/ext-keybinding_menu.js
new file: public/vendor/ace/ext-language_tools.js
new file: public/vendor/ace/ext-modelist.js
new file: public/vendor/ace/ext-old_ie.js
new file: public/vendor/ace/ext-searchbox.js
new file: public/vendor/ace/ext-settings_menu.js
new file: public/vendor/ace/ext-spellcheck.js
new file: public/vendor/ace/ext-split.js
new file: public/vendor/ace/ext-static_highlight.js
new file: public/vendor/ace/ext-statusbar.js
new file: public/vendor/ace/ext-textarea.js
new file: public/vendor/ace/ext-themelist.js
new file: public/vendor/ace/ext-whitespace.js
new file: public/vendor/ace/keybinding-emacs.js
new file: public/vendor/ace/keybinding-vim.js
new file: public/vendor/ace/mode-css.js
new file: public/vendor/ace/mode-html.js
new file: public/vendor/ace/mode-html_completions.js
new file: public/vendor/ace/mode-javascript.js
new file: public/vendor/ace/mode-json.js
new file: public/vendor/ace/snippets/css.js
new file: public/vendor/ace/snippets/html.js
new file: public/vendor/ace/snippets/html_completions.js
new file: public/vendor/ace/snippets/javascript.js
new file: public/vendor/ace/snippets/json.js
new file: public/vendor/ace/theme-ambiance.js
new file: public/vendor/ace/theme-chaos.js
new file: public/vendor/ace/theme-chrome.js
new file: public/vendor/ace/theme-clouds.js
new file: public/vendor/ace/theme-clouds_midnight.js
new file: public/vendor/ace/theme-cobalt.js
new file: public/vendor/ace/theme-crimson_editor.js
new file: public/vendor/ace/theme-dawn.js
new file: public/vendor/ace/theme-dreamweaver.js
new file: public/vendor/ace/theme-eclipse.js
new file: public/vendor/ace/theme-github.js
new file: public/vendor/ace/theme-idle_fingers.js
new file: public/vendor/ace/theme-kr.js
new file: public/vendor/ace/theme-merbivore.js
new file: public/vendor/ace/theme-merbivore_soft.js
new file: public/vendor/ace/theme-mono_industrial.js
new file: public/vendor/ace/theme-monokai.js
new file: public/vendor/ace/theme-pastel_on_dark.js
new file: public/vendor/ace/theme-solarized_dark.js
new file: public/vendor/ace/theme-solarized_light.js
new file: public/vendor/ace/theme-terminal.js
new file: public/vendor/ace/theme-textmate.js
new file: public/vendor/ace/theme-tomorrow.js
new file: public/vendor/ace/theme-tomorrow_night.js
new file: public/vendor/ace/theme-tomorrow_night_blue.js
new file: public/vendor/ace/theme-tomorrow_night_bright.js
new file: public/vendor/ace/theme-tomorrow_night_eighties.js
new file: public/vendor/ace/theme-twilight.js
new file: public/vendor/ace/theme-vibrant_ink.js
new file: public/vendor/ace/theme-xcode.js
new file: public/vendor/ace/worker-css.js
new file: public/vendor/ace/worker-javascript.js
new file: public/vendor/ace/worker-json.js
deleted: public/vendor/bootstrap/fonts/glyphicons-halflings-regular.eot
deleted: public/vendor/bootstrap/fonts/glyphicons-halflings-regular.svg
deleted: public/vendor/bootstrap/fonts/glyphicons-halflings-regular.ttf
deleted: public/vendor/bootstrap/fonts/glyphicons-halflings-regular.woff
new file: public/vendor/chart.js/chart.min.js
new file: public/vendor/hammer/hammer.min.js
new file: public/vendor/mousetrap/mousetrap.js
new file: public/vendor/nanoscroller/nanoscroller.css
new file: public/vendor/nanoscroller/nanoscroller.min.js
deleted: public/vendor/tabIndent/tabIndent.js
new file: src/batch.js
modified: src/categories.js
modified: src/categories/activeusers.js
modified: src/categories/delete.js
modified: src/categories/recentreplies.js
modified: src/controllers/accounts.js
modified: src/controllers/admin.js
modified: src/controllers/admin/users.js
modified: src/controllers/api.js
modified: src/controllers/categories.js
modified: src/controllers/groups.js
modified: src/controllers/index.js
modified: src/controllers/tags.js
modified: src/controllers/topics.js
modified: src/controllers/users.js
modified: src/database/level/hash.js
modified: src/database/level/list.js
modified: src/database/level/main.js
modified: src/database/level/sets.js
modified: src/database/level/sorted.js
modified: src/database/mongo.js
modified: src/database/mongo/hash.js
modified: src/database/mongo/helpers.js
modified: src/database/mongo/list.js
modified: src/database/mongo/main.js
modified: src/database/mongo/sets.js
modified: src/database/mongo/sorted.js
modified: src/database/redis.js
modified: src/database/redis/hash.js
modified: src/database/redis/main.js
modified: src/database/redis/sets.js
modified: src/database/redis/sorted.js
modified: src/emailer.js
modified: src/events.js
modified: src/favourites.js
modified: src/groups.js
new file: src/hotswap.js
modified: src/install.js
modified: src/messaging.js
modified: src/meta.js
modified: src/meta/configs.js
modified: src/meta/css.js
modified: src/meta/js.js
modified: src/meta/sounds.js
new file: src/meta/templates.js
modified: src/meta/themes.js
modified: src/meta/title.js
modified: src/middleware/admin.js
modified: src/middleware/index.js
modified: src/middleware/middleware.js
modified: src/notifications.js
new file: src/password.js
modified: src/plugins.js
modified: src/postTools.js
modified: src/posts.js
modified: src/posts/delete.js
new file: src/posts/recent.js
modified: src/privileges/categories.js
modified: src/privileges/helpers.js
modified: src/privileges/posts.js
modified: src/privileges/topics.js
modified: src/routes/admin.js
modified: src/routes/api.js
modified: src/routes/authentication.js
modified: src/routes/debug.js
modified: src/routes/index.js
modified: src/routes/meta.js
modified: src/routes/plugins.js
modified: src/search.js
modified: src/sitemap.js
modified: src/socket.io/admin.js
new file: src/socket.io/admin/tags.js
modified: src/socket.io/admin/user.js
modified: src/socket.io/categories.js
modified: src/socket.io/index.js
modified: src/socket.io/meta.js
modified: src/socket.io/modules.js
modified: src/socket.io/posts.js
modified: src/socket.io/topics.js
modified: src/socket.io/user.js
modified: src/threadTools.js
modified: src/topics.js
modified: src/topics/create.js
modified: src/topics/delete.js
modified: src/topics/follow.js
modified: src/topics/fork.js
modified: src/topics/popular.js
modified: src/topics/posts.js
modified: src/topics/recent.js
modified: src/topics/tags.js
modified: src/topics/unread.js
modified: src/upgrade.js
modified: src/user.js
modified: src/user/auth.js
modified: src/user/create.js
modified: src/user/delete.js
modified: src/user/email.js
modified: src/user/jobs.js
modified: src/user/notifications.js
modified: src/user/profile.js
modified: src/user/reset.js
modified: src/user/settings.js
new file: src/views/403.tpl
new file: src/views/404.tpl
new file: src/views/500.tpl
new file: src/views/admin/advanced/database.tpl
new file: src/views/admin/advanced/events.tpl
new file: src/views/admin/appearance/customise.tpl
new file: src/views/admin/appearance/skins.tpl
new file: src/views/admin/appearance/themes.tpl
new file: src/views/admin/development/logger.tpl
new file: src/views/admin/extend/plugins.tpl
new file: src/views/admin/extend/widgets.tpl
new file: src/views/admin/footer.tpl
new file: src/views/admin/general/dashboard.tpl
new file: src/views/admin/general/languages.tpl
new file: src/views/admin/general/sounds.tpl
new file: src/views/admin/header.tpl
new file: src/views/admin/manage/categories.tpl
new file: src/views/admin/manage/groups.tpl
new file: src/views/admin/manage/tags.tpl
new file: src/views/admin/manage/users.tpl
new file: src/views/admin/partials/categories/groups.tpl
new file: src/views/admin/partials/categories/new.tpl
new file: src/views/admin/partials/categories/permissions.tpl
new file: src/views/admin/partials/categories/setParent.tpl
new file: src/views/admin/partials/categories/users.tpl
new file: src/views/admin/partials/fontawesome.tpl
new file: src/views/admin/partials/theme_list.tpl
new file: src/views/admin/settings/advanced.tpl
new file: src/views/admin/settings/email.tpl
new file: src/views/admin/settings/footer.tpl
new file: src/views/admin/settings/general.tpl
new file: src/views/admin/settings/header.tpl
new file: src/views/admin/settings/notifications.tpl
new file: src/views/admin/settings/pagination.tpl
new file: src/views/admin/settings/post.tpl
new file: src/views/admin/settings/reputation.tpl
new file: src/views/admin/settings/sockets.tpl
new file: src/views/admin/settings/tags.tpl
new file: src/views/admin/settings/user.tpl
new file: src/views/admin/settings/web-crawler.tpl
new file: src/views/config.json
new file: src/views/emails/dailydigest.tpl
new file: src/views/emails/dailydigest_plaintext.tpl
new file: src/views/emails/notif_chat.tpl
new file: src/views/emails/notif_chat_plaintext.tpl
new file: src/views/emails/reset.tpl
new file: src/views/emails/reset_plaintext.tpl
new file: src/views/emails/test.tpl
new file: src/views/emails/test_plaintext.tpl
new file: src/views/emails/welcome.tpl
new file: src/views/emails/welcome_plaintext.tpl
new file: src/views/maintenance.tpl
modified: src/webserver.js
modified: src/widgets.js
modified: tests/categories.js
modified: tests/database.js
modified: tests/groups.js
renamed: mocks/databasemock.js -> tests/mocks/databasemock.js
modified: tests/topics.js
modified: tests/user.js
Unmerged paths:
(use "git add/rm <file>..." as appropriate to mark resolution)
both added: npm-shrinkwrap.json
Untracked files:
(use "git add <file>..." to include in what will be committed)
public/google-adsense.config.json
-
Restored using snapshotp and git status gave
root@install:~/home/nodebb# git status
On branch v0.5.x
Untracked files:
(use "git add <file>..." to include in what will be committed)
public/google-adsense.config.json
nothing added to commit but untracked files present (use "git add" to track)
root@install:~/home/nodebb# -
@meetdilip said:
Restored using snapshotp and git status gave [...]
That just means that the
public/google-adsense.config.json
isn't being tracked by git (it isn't under source control). Most likely that file was added by some NodeBB plugin.You can either add it to the git repo using
git add pulic/google-adsense.config.json
and thengit commit -am "added adsense config file"
andgit push
to update the remote repository, or ignore that message. -
@fuzzmz said:
git add pulic/google-adsense.config.json
root@install:~# git add pulic/google-adsense.config.json
fatal: Not a git repository (or any of the parent directories): .git
root@install:~# cd home/nodebb
root@install:~/home/nodebb# git add pulic/google-adsense.config.json
fatal: pathspec 'pulic/google-adsense.config.json' did not match any files
root@install:~/home/nodebb#