Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • Sign in / Register
Minds
Minds
  • Project overview
  • Repository
  • Issues 126
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 15
  • CI / CD
  • Security & Compliance
  • Packages
  • Analytics
  • Wiki
  • Members
  • Collapse sidebar
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Minds
  • MindsMinds
  • Issues
  • #1063

Closed
Open
Opened 2 weeks ago by Testchi on Minds@thedanetidwell
Report abuse New issue

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.

$$$$

Edited 2 weeks ago by Testchi on Minds

Linked issues
0

Related merge requests
1
  • Webpack proxy for devs
    front !756
    Avatar for Mark Harding Avatar for Marcelo Rivera +3
    +3
  • Discussion 22
  • Designs 0
  • Testchi on Minds @thedanetidwell changed the description 2 weeks ago

    changed the description

  • Ben Hayward
    Ben Hayward @benhayward.ben · 2 weeks ago
    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.

  • Ben Hayward @benhayward.ben mentioned in issue front#2510 2 weeks ago

    mentioned in issue front#2510

  • Ben Hayward @benhayward.ben added Type::Bug (Triage) scoped label 2 weeks ago

    added scoped label

    • Narayanan KA
      Narayanan KA @movingisliving2019 · 2 weeks ago

      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 KA 2 weeks ago
    • Collapse replies
    • Testchi on Minds
      Testchi on Minds @thedanetidwell · 2 weeks ago

      I forgot about that one. All three of those steps error. Azure VM running Ubuntu 18 here.

      Edited by Testchi on Minds 2 weeks ago
    • Ben Hayward
      Ben Hayward @benhayward.ben · 2 weeks ago
      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 stack

      For 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 2 weeks ago
    • Testchi on Minds
      Testchi on Minds @thedanetidwell · 1 week ago

      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$

    • Ben Hayward
      Ben Hayward @benhayward.ben · 1 week ago
      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.

    • Please register or sign in to reply
  • Ben Hayward
    Ben Hayward @benhayward.ben · 6 days ago
    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.

  • Ben Hayward @benhayward.ben closed 6 days ago

    closed

  • Narayanan KA
    Narayanan KA @movingisliving2019 · 6 days ago

    Hi @benhayward.ben , While installing with the aforementioned guide, on windows docker, I faced the following problems :

    1. engine\tools\setup.sh line 4, set -e causes an error, so I had to comment it out.

    2. engine folder is missing vendor folder entirely, giving the error related to autoload.php not found. So I copied the folder from an older version.

    3. - 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 6 days ago
  • Ben Hayward
    Ben Hayward @benhayward.ben · 6 days ago
    Developer

    @xander-miller or @edgebal may have a better idea, I'm unfortunately clueless on Windows.

  • Ben Hayward
    Ben Hayward @benhayward.ben · 6 days ago
    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.)

  • Ben Hayward
    Ben Hayward @benhayward.ben · 6 days ago
    Developer

    Oh also make sure Minds/minds, Minds/front and Minds/engine are all up to date with the latest master branch.

    • Ben Hayward
      Ben Hayward @benhayward.ben · 5 days ago
      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.

    • Collapse replies
    • Narayanan KA
      Narayanan KA @movingisliving2019 · 5 days ago

      I replaced all \r\n with \n using notepad++, that seems to have done the trick, thanks.

      Edited by Narayanan KA 5 days ago
    • Please register or sign in to reply
  • Narayanan KA
    Narayanan KA @movingisliving2019 · 5 days ago

    In the /register page, the captcha image shown is as follows:

    captcha

    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.txt

    Edited by Narayanan KA 5 days ago
    • Ben Hayward
      Ben Hayward @benhayward.ben · 5 days ago
      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 4 days ago
    • Collapse replies
    • Narayanan KA
      Narayanan KA @movingisliving2019 · 4 days ago

      do you have the $CONFIG->set('captcha', [ at the end of your settings.php?

      Yes, with a secret key like string in it.

    • Please register or sign in to reply
    • Narayanan KA
      Narayanan KA @movingisliving2019 · 2 days ago

      @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 to node:{http:true, https:true}, Edited package.json and added "browser":{"http":false, "https":false} . None had an effect. Stack Link

      Edited by Narayanan KA 1 day ago
    • Collapse replies
    • Narayanan KA
      Narayanan KA @movingisliving2019 · 1 day ago

      @benhayward.ben should I post in a new issue ?

    • Please register or sign in to reply
  • Ben Hayward @benhayward.ben mentioned in issue #1086 23 hours ago

    mentioned in issue #1086

  • Ben Hayward @benhayward.ben reopened 23 hours ago

    reopened

  • Ben Hayward
    Ben Hayward @benhayward.ben · 23 hours ago
    Developer

    I'll actually re-open this issue and we can use this one to track it, just so we have conversation history.

    • Ben Hayward
      Ben Hayward @benhayward.ben · 23 hours ago
      Developer

      In response as on the card

      Can you confirm your node version is above version 10?

    • Collapse replies
    • Narayanan KA
      Narayanan KA @movingisliving2019 · 1 hour ago

      @benhayward.ben , Yes node at 12.15.0, npm >6

      Edited by Narayanan KA 1 hour ago
    • Ben Hayward
      Ben Hayward @benhayward.ben · 59 minutes ago
      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.

    • Please register or sign in to reply
Please register or sign in to reply
0 Assignees
None
none
Epic
None
None
Milestone
None
Time tracking
No estimate or time spent
None
Due date
None
1
Labels
Type::Bug (Triage)
None
Weight
None
Confidentiality
Not confidential
Lock issue
Unlocked
5
5 participants
user avatar
user avatar
user avatar
user avatar
user avatar
Reference: minds/minds#1063