Minds Installer Broken
The installer is totally useless when it (and the documentation) is incomplete and/or wrong.
Following the documentation site word for word, the installation just does not work.
Pretty substantial steps are nowhere to be found and ones that ARE in the instructions haven't been valid FOR MONTHS.
That settings.php file the documentation instructs us to configure? The installation process doesn't even generate a settings.php file anymore. There's a sample php file, but there isn't a single line of instruction telling us what to do with any of the existing data.
I assume we're supposed to replace entries, but which ones? What do we replace it with? Where does THAT information come from?
I really can't believe a streamlined installation package takes 3-4 years to complete. I've been asking for nearly two years now. You're not building the platform from scratch. It's already up and running.
It's a simple issue of resource allocation, and everyone can see what the focus is. Minds Plus. Minds Pro. Minds For Your Domain. Business Minds Platinum Plus Pro.
$$$$
changed the description
- Developer
Hey @thedanetidwell, how's it going? I appreciate how it looks, happy to help with any issues you have though. Right now is the worst possible moment to try to install the Minds stack! We're in the middle of a switch to Server-side rendering which is HUGE for SEO ratings and improves load speed significantly.
This has required some very low-level changes to the development environment. We should have this merged in today, and I would be very interested in getting to the bottom of the issues you're having if they remain following that.
mentioned in issue front#2510
added scoped label
From front#2510 I tried installing the latest version available on gitlab, on my windows localhost. Currently getting this error when i do
docker-compose down
build path E:\MindsFeb\minds\front\dist either does not exist, is not accessible, or is not a valid URL.
It seems to work fine for the older branch(oct-2019) that I was previously using. I also tried downgrading my docker-compose version to 1.17 (from 1.24), to no effect. I also couldn't find any issue similar to mine in gitlab. Is it a problem with docker windows and the latest minds version specifically ?
Edited by Narayanan KAI forgot about that one. All three of those steps error. Azure VM running Ubuntu 18 here.
Edited by Testchi on Minds- Developer
Hey, nope there should be no changes necessary for docker, checking my docker-compose its at 2.2.
docker-compose up -d nginx runners sockets
is how I usually spin up the stack the stackFor the front right now I'm checking out front!756 (closed), pulling in master and adding
"serve:dev:nr": "ng serve --host=0.0.0.0 --deploy-url=/ --hmr=false --live-reload=false --poll=800 --progress --disableHostCheck=true --proxy-config proxy.conf.js",
into the package JSON.Then accessing directly on port 4200.
We're going to be fixing these installer issues in this card below: #1065 (closed)
Edited by Ben Hayward user@vm:~/minds$ sudo docker-compose down ERROR: build path /home/user/minds/front/dist either does not exist, is not accessible, or is not a valid URL. user@vm:~/minds$ sudo docker-compose up elasticsearch-legacy-provisioner ERROR: build path /home/user/minds/front/dist either does not exist, is not accessible, or is not a valid URL. user@vm:~/minds$
- Developer
If you're in a rush, try this branch out - its a WIP though and will reset your stack. front!756 (closed)
local/local install
Probably best to wait but we're in the process of making setup and running the stack automated.
- Developer
Hey @thedanetidwell @movingisliving2019 the new changes are in master, the how to guide is here
https://gitlab.com/minds/minds/-/blob/master/local/README.md
Please be aware running the installer will wipe any existing data in the databases!
Going to close as I'm doing some tidying, but if there are any issues we can re-open and use this card.
closed
Hi @benhayward.ben , While installing with the aforementioned guide, on windows docker, I faced the following problems :
-
engine\tools\setup.sh line 4, set -e
causes an error, so I had to comment it out. -
engine folder is missing
vendor
folder entirely, giving the error related toautoload.php
not found. So I copied the folder from an older version. -
- Provisioning Cassandra: cli.php: [EXCEPTION:Cassandra\Exception\RuntimeException] Underlying connection error: Connect error 'connection refused'
- This is where I am currently stuck at. Here is the stderr output as well:
'Creating minds-master_cassandra_1 ... \r\r\n\u001b[1A\u001b[2K\rCreating minds-master_cassandra_1 ... \u001b[32mdone\u001b[0m\r\u001b[1B./install.sh: line 2: \r: not found\n./install.sh: line 5: \r: not found\n./install.sh: line 7: \r: not found\n./install.sh: cd: line 8: can\'t cd to /var/www/Minds/engine\r: No such file or directory\nsh: can\'t open \'/var/www/Minds/engine/tools/setup.sh\r\': No such file or directory\n./install.sh: line 10: \r: not found\n./install.sh: line 12: \r: not found\n./install.sh: line 14: \r: not found\n[13-Feb-2020 11:34:20 UTC] PHP Warning: include_once(/var/www/Minds/engine/settings.php): failed to open stream: No such file or directory in /var/www/Minds/engine/Core/Minds.php on line 182\n[13-Feb-2020 11:34:20 UTC] PHP Warning: include_once(): Failed opening \'/var/www/Minds/engine/settings.php\' for inclusion (include_path=\'.:/usr/local/lib/php\') in /var/www/Minds/engine/Core/Minds.php on line 182\n[13-Feb-2020 11:34:21 UTC] PHP Warning: mkdir(): File exists in /var/www/Minds/engine/Controllers/Cli/Install.php on line 111\n./install.sh: line 16: --domain=localhost:8080: not found\n./install.sh: line 17: --username=minds: not found\n./install.sh: line 18: --password=Pa$$w0rd: not found\n./install.sh: line 19: --email=minds@minds.com: not found\n./install.sh: line 20: --email-private-key=/.dev/minds.pem: not found\n./install.sh: line 21: --email-public-key=/.dev/minds.pub: not found\n./install.sh: line 22: --phone-number-private-key=/.dev/minds.pem: not found\n./install.sh: line 23: --phone-number-public-key=/.dev/minds.pub: not found\n./install.sh: line 24: --cassandra-server=cassandra: not found\n./install.sh: line 25: --exitOnFailure=1\r: not found'
Edited by Narayanan KA-
- Developer
@xander-miller or @edgebal may have a better idea, I'm unfortunately clueless on Windows.
- Developer
Hmmm I wouldn't recommend copying out that line, can you see what the error says for
engine\\tools\\setup.sh line 4, set -e
?On a sidenote, the vendor folder you can populate by deleting the old one and running this command in the engine directory of the docker container (docker exec ... etc)
php composer.phar install --ignore-platform-reqs
(off the top of my head, check the--help
if my syntax is off.) - Developer
Oh also make sure Minds/minds, Minds/front and Minds/engine are all up to date with the latest master branch.
- Developer
I think I know what the issue is, Windows is adding LF to all of the files.
I'm gonna get Windows set up over the weekend and take a look if @edgebal can't think of something.
I replaced all
\r\n
with\n
using notepad++, that seems to have done the trick, thanks.Edited by Narayanan KA
In the /register page, the captcha image shown is as follows:
Do I need to do something in settings.php ? Or is there something that I am unable to see...
Edit: This is the output from minds-ssr-serve: err_ssr_serve.txt
Also, If I open localhost:4200 after doing minds-ssr-serve/build, then localhost:4200 gives error
Unable to connect
and localhost:8080 also shows a 502. Here is the stack trace : err_4200.txtEdited by Narayanan KA- Developer
Re the line-endings, there's an issue with Windows and its default
core.autocrlf
git setting. It's adding CR to all Unix scripts.@edgebal is adding .gitattributes settings for it, but I think you can set core.autocrlf=true to deal with that.
As for Captcha, do you have the
$CONFIG->set('captcha', [
at the end of your settings.php?Edited by Ben Hayward do you have the $CONFIG->set('captcha', [ at the end of your settings.php?
Yes, with a secret key like string in it.
@benhayward.ben , Trying to install minds on google cloud linux(debian 9) server using local (minds install), facing the following error:
stderr: 'Browserslist: caniuse-lite is outdated. Please run next command
npm update caniuse-lite browserslist
\n' + 'Option "watch" was already specified with value true. The new value false will override it.\n' + '\n' + 'ERROR in ./node_modules/simple-get/index.js\n' + "Module not found: Error: Can't resolve 'http' in '/var/minds/front/node_modules/simple-get'\n" + 'ERROR in ./node_modules/simple-get/index.js\n' + "Module not found: Error: Can't resolve 'https' in '/var/minds/front/node_modules/simple-get'\n" + 'npm ERR! code ELIFECYCLE\n' + 'npm ERR! errno 1\n' + 'npm ERR! minds@0.0.0 build:dev:ng build --output-path=dist/en --deploy-url=http://localhost:8080/ --watch =true --poll=800 --aot "--watch=false"
\n' + 'npm ERR! Exit status 1\n' + 'npm ERR! \n' + 'npm ERR! Failed at the minds@0.0.0 build:dev script.\n' + 'npm ERR! This is probably not a problem with npm. There is likely additional logging output above.\n' + '\n'I have tried running
npm install --save http https
from front, Edited/var/minds/node_modules/@angular-devkit/build-angular/src/angular-cli-files/models/webpack-configs/browser.js
node: false tonode:{http:true, https:true}
, Edited package.json and added"browser":{"http":false, "https":false}
. None had an effect. Stack LinkEdited by Narayanan KA@benhayward.ben should I post in a new issue ?
mentioned in issue #1086
reopened
- Developer
I'll actually re-open this issue and we can use this one to track it, just so we have conversation history.
- Developer
In response as on the card
Can you confirm your node version is above version 10?
@benhayward.ben , Yes node at 12.15.0, npm >6
Edited by Narayanan KA- Developer
http & https are modules within nodejs https://nodejs.org/api/https.html https://nodejs.org/api/http.html
Struggling to think of why they could be missing.
Do pull master again on all branches and see if that helms.
Also unsure if its of help but my node version is
v10.17.0
, but I think yours should work.