@PitaJ said in Error trying to checkout 1.5.x branch:
@JaredBusch you said you were using npm@5 earlier, right? well npm@5 defaults to the
--save
behavior, which will modify the package.json.
Awesome. Thanks for the answer.
@PitaJ said in Error trying to checkout 1.5.x branch:
@JaredBusch you said you were using npm@5 earlier, right? well npm@5 defaults to the
--save
behavior, which will modify the package.json.
Awesome. Thanks for the answer.
What would have done this?
I just did git reset --hard
and moved on, but I did not change any files myself either that should have caused this.
So I updating everything to current on the 1.x.x branch and noticed it was still 1.4.6.
I found this thread stating why it changed, so I wanted to switch to the 1.5.x branch but received this error.
[root@daermabb nodebb]# git branch
master
v0.9.x
* v1.x.x
[root@daermabb nodebb]# git checkout v1.5.x
error: Your local changes to the following files would be overwritten by checkout:
package.json
Please, commit your changes or stash them before you can switch branches.
Aborting
@PitaJ Permissions on here are odd for the ask as question plugin. I can only mark my own posts as an answer.
Node.js v7.10.0 works perfectly.
@PitaJ said in Error starting NodeBB after upgrade:
We don't support or test on Node.js version 8 and there could very well be issues using npm@5 as well. I suggest dropping to Node.js versions 4-7
Can do. I simply updated to current as I always do when I update.
It was on 7.5 prior.
If I launch it with ./nodebb dev
it loads.
[root@daermabb nodebb]# ./nodebb dev
NodeBB v1.4.6 Copyright (C) 2013-2014 NodeBB Inc.
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it under certain conditions.
For the full license, please visit: http://www.gnu.org/copyleft/gpl.html
Clustering enabled: Spinning up 1 process(es).
30/5 14:19:17 [14313] - verbose: * using configuration stored in: /opt/daerma/nodebb/config.json
30/5 14:19:17 [14313] - info: Initializing NodeBB v1.4.6
30/5 14:19:17 [14313] - verbose: * using redis store at 127.0.0.1:6379
30/5 14:19:17 [14313] - verbose: * using themes stored in: /opt/daerma/nodebb/node_modules
30/5 14:19:18 [14313] - verbose: Checking dependencies for outdated modules
30/5 14:19:20 [14313] - verbose: [notifications.init] Registering jobs.
30/5 14:19:20 [14313] - verbose: [user/jobs] (Re-)starting user jobs...
30/5 14:19:20 [14313] - verbose: [user/jobs] 0 jobs terminated
30/5 14:19:20 [14313] - verbose: [user/jobs] Starting job (digest.daily)
30/5 14:19:20 [14313] - verbose: [user/jobs] Starting job (digest.weekly)
30/5 14:19:20 [14313] - verbose: [user/jobs] Starting job (digest.monthly)
30/5 14:19:20 [14313] - verbose: [user/jobs] Starting job (reset.clean)
30/5 14:19:20 [14313] - verbose: [user/jobs] 4 jobs started
30/5 14:19:20 [14313] - info: [themes] Using theme nodebb-theme-persona
30/5 14:19:20 [14313] - verbose: [plugins] Initializing plugins system
30/5 14:19:20 [14313] - verbose: [plugins] Found 1 less file(s) for plugin nodebb-plugin-composer-default
30/5 14:19:20 [14313] - verbose: [plugins] Found 2 js file(s) for plugin nodebb-plugin-composer-default
30/5 14:19:20 [14313] - verbose: [plugins/load] File found: /opt/daerma/nodebb/node_modules/nodebb-plugin-composer-default/static/lib/client.js
30/5 14:19:20 [14313] - verbose: [plugins/load] File not found: /opt/daerma/nodebb/node_modules/nodebb-plugin-composer-default/node_modules/screenfull/dist/screenfull.js (Ascending)
30/5 14:19:20 [14313] - verbose: [plugins/load] File found: /opt/daerma/nodebb/node_modules/screenfull/dist/screenfull.js
30/5 14:19:20 [14313] - verbose: [plugins] Found 1 js file(s) for plugin nodebb-plugin-composer-default
30/5 14:19:20 [14313] - verbose: [plugins/load] File found: /opt/daerma/nodebb/node_modules/nodebb-plugin-composer-default/static/lib/admin.js
30/5 14:19:20 [14313] - verbose: [plugins] Found 10 AMD-style module(s) for plugin nodebb-plugin-composer-default
30/5 14:19:20 [14313] - verbose: [plugins] Loaded plugin: nodebb-plugin-composer-default
30/5 14:19:20 [14313] - verbose: [plugins] Found 6 js file(s) for plugin nodebb-theme-persona
30/5 14:19:20 [14313] - verbose: [plugins/load] File found: /opt/daerma/nodebb/node_modules/nodebb-theme-persona/lib/persona.js
30/5 14:19:20 [14313] - verbose: [plugins/load] File found: /opt/daerma/nodebb/node_modules/nodebb-theme-persona/lib/modules/nprogress.js
30/5 14:19:20 [14313] - verbose: [plugins/load] File found: /opt/daerma/nodebb/node_modules/nodebb-theme-persona/lib/modules/autohidingnavbar.min.js
30/5 14:19:20 [14313] - verbose: [plugins/load] File found: /opt/daerma/nodebb/node_modules/nodebb-theme-persona/lib/modules/slideout.min.js
30/5 14:19:20 [14313] - verbose: [plugins/load] File found: /opt/daerma/nodebb/node_modules/nodebb-theme-persona/lib/modules/quickreply.js
30/5 14:19:20 [14313] - verbose: [plugins/load] File found: /opt/daerma/nodebb/node_modules/nodebb-theme-persona/lib/client/chats.js
30/5 14:19:20 [14313] - verbose: [plugins] Found 1 js file(s) for plugin nodebb-theme-persona
30/5 14:19:20 [14313] - verbose: [plugins/load] File found: /opt/daerma/nodebb/node_modules/nodebb-theme-persona/lib/admin.js
30/5 14:19:20 [14313] - verbose: [plugins] Loaded plugin: nodebb-theme-persona
30/5 14:19:20 [14313] - verbose: [plugins] Found 1 less file(s) for plugin nodebb-plugin-markdown
30/5 14:19:20 [14313] - verbose: [plugins] Found 1 js file(s) for plugin nodebb-plugin-markdown
30/5 14:19:20 [14313] - verbose: [plugins/load] File found: /opt/daerma/nodebb/node_modules/nodebb-plugin-markdown/public/js/client.js
30/5 14:19:20 [14313] - verbose: [plugins] Found 1 js file(s) for plugin nodebb-plugin-markdown
30/5 14:19:20 [14313] - verbose: [plugins/load] File found: /opt/daerma/nodebb/node_modules/nodebb-plugin-markdown/public/js/admin.js
30/5 14:19:20 [14313] - verbose: [plugins] Found 1 AMD-style module(s) for plugin nodebb-plugin-markdown
30/5 14:19:20 [14313] - verbose: [plugins] Loaded plugin: nodebb-plugin-markdown
30/5 14:19:20 [14313] - verbose: [plugins] Found 1 less file(s) for plugin nodebb-plugin-mentions
30/5 14:19:20 [14313] - verbose: [plugins] Found 1 js file(s) for plugin nodebb-plugin-mentions
30/5 14:19:20 [14313] - verbose: [plugins/load] File found: /opt/daerma/nodebb/node_modules/nodebb-plugin-mentions/static/autofill.js
30/5 14:19:20 [14313] - verbose: [plugins] Loaded plugin: nodebb-plugin-mentions
30/5 14:19:20 [14313] - verbose: [plugins] Found 1 css file(s) for plugin nodebb-widget-essentials
30/5 14:19:20 [14313] - verbose: [plugins] Loaded plugin: nodebb-widget-essentials
30/5 14:19:20 [14313] - verbose: [plugins] Found 1 js file(s) for plugin nodebb-rewards-essentials
30/5 14:19:20 [14313] - verbose: [plugins/load] File found: /opt/daerma/nodebb/node_modules/nodebb-rewards-essentials/static/lib/main.js
30/5 14:19:20 [14313] - verbose: [plugins] Loaded plugin: nodebb-rewards-essentials
30/5 14:19:20 [14313] - verbose: [plugins] Loaded plugin: nodebb-plugin-soundpack-default
30/5 14:19:21 [14313] - verbose: [plugins] Loaded plugin: nodebb-plugin-dbsearch
30/5 14:19:21 [14313] - verbose: [plugins] Loaded plugin: nodebb-plugin-emoji-one
30/5 14:19:21 [14313] - verbose: [plugins] Found 1 less file(s) for plugin nodebb-plugin-emoji-extended
30/5 14:19:21 [14313] - verbose: [plugins] Found 1 js file(s) for plugin nodebb-plugin-emoji-extended
30/5 14:19:21 [14313] - verbose: [plugins/load] File found: /opt/daerma/nodebb/node_modules/nodebb-plugin-emoji-extended/public/scripts/
30/5 14:19:21 [14313] - verbose: [plugins] Loaded plugin: nodebb-plugin-emoji-extended
30/5 14:19:21 [14313] - info: [plugins] Plugins OK
30/5 14:19:21 [14313] - verbose: [hotswap] Router with id `plugins` replaced successfully
30/5 14:19:21 [14313] - verbose: [plugins] All plugins reloaded and rerouted
30/5 14:19:21 [14313] - verbose: [hotswap] Router with id `auth` replaced successfully
30/5 14:19:21 [14313] - info: Routes added
30/5 14:19:21 [14313] - verbose: [meta/blacklist] Loading 0 blacklist rules
30/5 14:19:21 [14313] - info: NodeBB Ready
30/5 14:19:21 [14313] - info: Enabling 'trust proxy'
30/5 14:19:21 [14313] - info: NodeBB is now listening on: 0.0.0.0:4567
30/5 14:19:50 [14313] - warn: Missing translation "pages:flagged-posts"
^C
30/5 14:20:02 [14313] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised.
30/5 14:20:02 [14313] - info: [app] Database connection closed.
30/5 14:20:02 [14313] - info: [app] Web server closed to connections.
30/5 14:20:02 [14313] - info: [app] Shutdown complete.
[root@daermabb nodebb]# ./nodebb slog
Starting NodeBB with logging output
Hit Ctrl-C to exit
28/5 18:16:41 [5198] - warn: [deprecated] Accessing `src/modules/composer/tags.js` from `/` is deprecated. Use `/assets/src/modules/composer/tags.js` to access this file.
node_redis: Deprecated: The ZRANK command contains a "null" argument.
This is converted to a "null" string now and will return an error from v.3.0 on.
Please handle this in your code to make sure everything works as you intended it to.
29/5 08:43:21 [5198] - warn: [deprecated] Accessing `language/en_US/topic.json` from `/` is deprecated. Use `/assets/language/en_US/topic.json` to access this file.
30/5 13:48:40 [5198] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised.
[cluster] Child Process (5198) has exited (code: 0, signal: null)
30/5 13:48:40 [5198] - info: [app] Database connection closed.
30/5 13:48:40 [5198] - info: [app] Web server closed to connections.
30/5 13:48:40 [5198] - info: [app] Shutdown complete.
child_process.js:380
throw new TypeError('"cwd" must be a string');
^
TypeError: "cwd" must be a string
at normalizeSpawnArguments (child_process.js:380:11)
at Object.exports.spawn (child_process.js:465:38)
at Function.module.exports.daemon (/opt/daerma/nodebb/node_modules/daemon/index.js:50:31)
at module.exports (/opt/daerma/nodebb/node_modules/daemon/index.js:25:20)
at /opt/daerma/nodebb/loader.js:223:21
at FSReqWrap.oncomplete (fs.js:135:15)
^C
[root@daermabb nodebb]#
[root@daermabb ~]# nvm install v8.0.0
Downloading and installing node v8.0.0...
Downloading https://nodejs.org/dist/v8.0.0/node-v8.0.0-linux-x64.tar.xz...
######################################################################## 100.0%
Computing checksum with sha256sum
Checksums matched!
Now using node v8.0.0 (npm v5.0.0)
[root@daermabb ~]# cp /var/lib/redis/dump.rdb /opt/daerma/redisbackup/dump.rdb.20170530
[root@daermabb ~]# cd /opt/daerma/nodebb/
[root@daermabb nodebb]# git branch
master
v0.9.x
* v1.x.x
[root@daermabb nodebb]# git pull
remote: Counting objects: 4439, done.
remote: Compressing objects: 100% (44/44), done.
remote: Total 4439 (delta 2279), reused 2296 (delta 2270), pack-reused 2125
Receiving objects: 100% (4439/4439), 1002.30 KiB | 0 bytes/s, done.
Resolving deltas: 100% (3434/3434), completed with 1024 local objects.
From https://github.com/NodeBB/NodeBB
d19e59f..fb2f857 v1.x.x -> origin/v1.x.x
* [new branch] ban-improvements -> origin/ban-improvements
e121a5a..3a1eba2 develop -> origin/develop
* [new branch] import-export-ref -> origin/import-export-ref
08f0010..ba93979 master -> origin/master
* [new branch] v1.5.x -> origin/v1.5.x
* [new tag] v1.4.6 -> v1.4.6
* [new tag] v1.5.1 -> v1.5.1
From https://github.com/NodeBB/NodeBB
* [new tag] v1.5.0 -> v1.5.0
Updating d19e59f..fb2f857
Fast-forward
>snip all the git stuff<
[root@daermabb nodebb]# npm install
npm WARN deprecated [email protected]: wrench.js is deprecated! You should check out fs-extra (https://github.com/jprichardson/node-fs-extra) for any operations you were using wrench for. Thanks for all the usage over the years.
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN [email protected] requires a peer of eslint@^3.19.0 but none was installed.
added 59 packages, removed 438 packages and updated 156 packages in 39.311s
Now the nodebb upgrade
[root@daermabb nodebb]# ./nodebb upgrade
1. Bringing base dependencies up to date... OK
2. Checking installed plugins for updates... OK
3. Updating NodeBB data store schema...
30/5 14:01:30 [12817] - info: Beginning database schema update
30/5 14:01:30 [12817] - info: [2016/09/22] Setting category recent tids - skipped!
30/5 14:01:30 [12817] - info: [2016/10/8] favourite -> bookmark refactor - skipped!
30/5 14:01:30 [12817] - info: [2016/10/14] Creating sorted sets for post replies - skipped!
30/5 14:01:30 [12817] - info: [2016/11/22] Update global and user language keys - skipped!
30/5 14:01:30 [12817] - info: [2016/11/25] Creating sorted sets for pinned topics - skipped!
30/5 14:01:30 [12817] - info: [2017/2/25] Update global and user sound settings - skipped!
30/5 14:01:30 [12817] - info: [2017/2/28] Update urls in config to `/assets` - skipped!
30/5 14:01:30 [12817] - info: [2017/4/16] Delete sessions
30/5 14:01:34 [12817] - info: [2017/4/16] Delete sessions - done
30/5 14:01:34 [12817] - info: [upgrade] Schema update complete!
30/5 14:01:34 [12817] - info: [build] Building javascript
30/5 14:01:45 [12817] - info: [build] js => Completed in 11.268s
30/5 14:01:45 [12817] - info: [build] Building client-side CSS
30/5 14:01:49 [12817] - info: [build] clientCSS => Completed in 3.583s
30/5 14:01:49 [12817] - info: [build] Building admin control panel CSS
30/5 14:01:52 [12817] - info: [build] acpCSS => Completed in 2.97s
30/5 14:01:52 [12817] - info: [build] Building templates
30/5 14:01:52 [12817] - info: [build] tpl => Completed in 0.332s
30/5 14:01:52 [12817] - info: [build] Building language files
30/5 14:01:57 [12817] - info: [build] lang => Completed in 5.015s
30/5 14:01:57 [12817] - info: [build] Linking sound files
30/5 14:01:57 [12817] - info: [build] sound => Completed in 0.004s
30/5 14:01:57 [12817] - info: [build] Asset compilation successful. Completed in 23.263s.
OK
NodeBB Upgrade Complete!
[root@daermabb nodebb]# ./nodebb build
30/5 14:02:09 [12853] - info: [build] Building javascript
30/5 14:02:20 [12853] - info: [build] js => Completed in 10.572s
30/5 14:02:20 [12853] - info: [build] Building client-side CSS
30/5 14:02:23 [12853] - info: [build] clientCSS => Completed in 3.47s
30/5 14:02:23 [12853] - info: [build] Building admin control panel CSS
30/5 14:02:26 [12853] - info: [build] acpCSS => Completed in 2.892s
30/5 14:02:26 [12853] - info: [build] Building templates
30/5 14:02:26 [12853] - info: [build] tpl => Completed in 0.147s
30/5 14:02:26 [12853] - info: [build] Building language files
30/5 14:02:29 [12853] - info: [build] lang => Completed in 2.548s
30/5 14:02:29 [12853] - info: [build] Linking sound files
30/5 14:02:29 [12853] - info: [build] sound => Completed in 0.009s
30/5 14:02:29 [12853] - info: [build] Asset compilation successful. Completed in 22.267s.
This is what startup shows me.
[root@daermabb nodebb]# ./nodebb slog
Starting NodeBB with logging output
Hit Ctrl-C to exit
28/5 18:16:41 [5198] - warn: [deprecated] Accessing `src/modules/composer/tags.js` from `/` is deprecated. Use `/assets/src/modules/composer/tags.js` to access this file.
node_redis: Deprecated: The ZRANK command contains a "null" argument.
This is converted to a "null" string now and will return an error from v.3.0 on.
Please handle this in your code to make sure everything works as you intended it to.
29/5 08:43:21 [5198] - warn: [deprecated] Accessing `language/en_US/topic.json` from `/` is deprecated. Use `/assets/language/en_US/topic.json` to access this file.
30/5 13:48:40 [5198] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised.
[cluster] Child Process (5198) has exited (code: 0, signal: null)
30/5 13:48:40 [5198] - info: [app] Database connection closed.
30/5 13:48:40 [5198] - info: [app] Web server closed to connections.
30/5 13:48:40 [5198] - info: [app] Shutdown complete.
child_process.js:380
throw new TypeError('"cwd" must be a string');
^
TypeError: "cwd" must be a string
at normalizeSpawnArguments (child_process.js:380:11)
at Object.exports.spawn (child_process.js:465:38)
at Function.module.exports.daemon (/opt/daerma/nodebb/node_modules/daemon/index.js:50:31)
at module.exports (/opt/daerma/nodebb/node_modules/daemon/index.js:25:20)
at /opt/daerma/nodebb/loader.js:223:21
at FSReqWrap.oncomplete (fs.js:135:15)
One thing I would like is if the plugin can detect that a new topic post has no category selected yet and do something about it.
I cannot count the number of times I have made a new post on mangolassi.it and added an image before selecting the category.
This causes the image upload to fail with a permission error. After it has sent everything to imgur.
@damian said in [nodebb-plugin-imgur] Imgur Plugin:
@TaLoche I have the same problem on mobile. It works fine on desktop but on mobile I get
"Error
Something went wrong when parsing the server response."
I never have any problems from mobile.
Imgur occasionally has load problems and you will see this error then.
If you try to load imgur manually you will see their overloaded message.
@TaLoche said in [nodebb-plugin-imgur] Imgur Plugin:
Hello and thanks for the great plugin!
I've noticed that since my upgrade to Nodebb v1.4.x when uploading an image with the imgur plugin, before I had a lovely percent progression, 1% to 100% now I just have a "100%" mention next to the imgur link being generated.
Is there a way to correct this or did I do something wrong?
100% is not done. That means it uploaded 100% but the system has not yet returned the URL.
Just wait until it switches to the URL.
But because it is hard to explain this to users, it would be better if the plugin changed from 100% to waiting or something so people know it is not done.
I setup nodebb-plugin-emailer-smtp-complete in order to send my email to a local postfix relay but it fails when you do not use auth.
I created an issue on the plugin's github, but have noreal idea how to fix or I would make a pull request.
I would expect unauthenticated SMTP to function. It does not.
GitHub (github.com)
I do not run anything on Ubuntu except for my Unifi controller.
I use CentOS or Fedora for all production instances at clients.
The admin panel is horrible about refreshing to show new plugins.
Here is a detailed guide based on 1.4.0.
Starting from a standard install of CentOS 7 Minimal r1511. Update CentOS yum -y update Install EPEL and firewalld yum -y install epel-release firewalld St...
MangoLassi (mangolassi.it)
This reminds me, I want to rewrite my guide for Fedora also.
@PitaJ said in Does anyone use MS Edge browser:
Can you reproduce it on this forum? What version is mongolassi on?
If you read the links, it was reproduced here.
Before trying to replicate myself, and create a bug report and such on github, I was wondering if anyone else here uses MS Edge?
because it has been reported over on mangolassi.it that notifications cause a problem in Edge.
I had the user post here and they reports the same thing.
References:
https://mangolassi.it/topic/13346/mangolassi-website-semi-frequent-internal-error
@Tim_G said in Currently Open Community Issues: Oh I haven't seen this thread. In reference to: https://mangolassi.it/topic/13346/mangolassi-website-semi-f...
MangoLassi (mangolassi.it)
@atozsoft said in redirection problem with ssl:
hello,
my site redirect ;
http://mydomain.com to https://mydomain.com GOOD
http://www.mydomain.com to https://mydomain.com GOODbut DO NOT redirect
https://www.mydomain.com to https://mydomain.com NOT GOODit stays as https://www.mydomain.com
my default /etc/nginx/sites-enabled/default is ;
listen 80; server_name mydomain.com www.mydomain.com; return 301 https://$host$request_uri; } server { listen 443 ssl; server_name mydomain.com www.mydomain.com; ssl_certificate /etc/letsencrypt/live/mydomain.com/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/mydomain.com/privkey.pem; location / { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_set_header X-NginX-Proxy true; proxy_pass http://1.1.1.1.1.1.1.3:4567/; proxy_redirect off; #Socket.IO Support proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } location ~ /.well-known { allow all; } } any idea pleaase. thank you in advance.
Make a second Block for 443 that does a redirect like port 80 except specifically redirect it to https://domain.com$request_uri Instead of https://$host$request_uri
Only put in the www.domain.com server.
Take the www.domain.com out of the existing 443 block.
I assume (never tested this) that the new 443 block will need the SSL settings.
@nodeath said in Big problems:
I got many problems with nodebb.
Firstly it wont stay online all the time, sometimes it just goes offline randomly. I can only get it online by running it in dev mode.
I cant access the forum with my domain name only by the ip.
I cant remove the port from the url even after I followed the instructions on how to proxy it with apache.
What the actual fuck is this? why not make a god damn forum that you can upload with FTP to the apache directory and use MySQL like a normal site? Im getting so frustrated from this. I have tried to fix it the last 5 hours. Btw there are no errors. it just dont work correctly.
This setup is simple. Don't blame your lack of knowledge as a failure of this platform.
The instructions are fairly clear, but if you need even more help, here is a guide I wrote.
https://mangolassi.it/topic/11695/installing-nodebb-with-mongo-on-centos-7
@Airee said in Who is using NodeBB?:
https://juicylandgaming.com/ is one of what i'd imagine to be one of the more customized Node sites.
You LE cert does not include the non www domain. You might want to expand that. Because clicking on your link here gives me an error.