Git Product home page Git Product logo

Comments (12)

mingjiahui avatar mingjiahui commented on May 31, 2024 1

@Alex99y okay, but thank you all the same!~~

from airmedfoundation-terminal.

mingjiahui avatar mingjiahui commented on May 31, 2024

And If I follow the appconfig.json file you gave, there will be another error like:

info: Custom response `res.serverError()` called with an Error: { AdapterError: Unexpected error from database adapter: `count` failed ("badConnection").  A connection either could not be obtained or there was an error using the connection.
Additional data:

{ error: 
   { error: password authentication failed for user "admin"
    at Connection.parseE (/home/hnu/go/src/github.com/hyperledger/airmedfoundation-terminal/node_modules/pg/lib/connection.js:569:11)
    at Connection.parseMessage (/home/hnu/go/src/github.com/hyperledger/airmedfoundation-terminal/node_modules/pg/lib/connection.js:396:17)
    at Socket.<anonymous> (/home/hnu/go/src/github.com/hyperledger/airmedfoundation-terminal/node_modules/pg/lib/connection.js:132:22)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at addChunk (_stream_readable.js:263:12)
    at readableAddChunk (_stream_readable.js:250:11)
    at Socket.Readable.push (_stream_readable.js:208:10)
    at TCP.onread (net.js:601:20)

from airmedfoundation-terminal.

mingjiahui avatar mingjiahui commented on May 31, 2024

hello, @Alex99y.
I encountered the above error when running./ init.sh Command.
There is no problem in the project EXCEPT for the error in explore. Could you help me take a look, please!! I really need your help~~

from airmedfoundation-terminal.

Alex99y avatar Alex99y commented on May 31, 2024

Hello @mingjiahui ! I'm sorry, the project is no longer being maintained. Try this:

  • Check the README.md updates in #15
  • REMOVE ALL ^ from package.json (This allow npm to install greater versions)
  • Remove node_modules and package-lock.json
  • npm install
  • ./init.sh
    If you are using Docker to set up the database, the user, password, and database name should be right. If not, you need to set up the configuration of postgresdb (Please use pgl version 11.2)

from airmedfoundation-terminal.

mingjiahui avatar mingjiahui commented on May 31, 2024

Hello @mingjiahui ! I'm sorry, the project is no longer being maintained. Try this:

* Check the README.md updates in #15

* REMOVE ALL `^` from package.json (This allow npm to install greater versions)

* Remove node_modules and package-lock.json

* npm install

* `./init.sh`
  If you are using Docker to set up the database, the user, password, and database name should be right. If not, you need to set up the configuration of postgresdb (Please use pgl version 11.2)

Yes, I'm using Docker, and I'm sure the parameters are in accordance with docker-compose.yaml to set up. And I'll try as you suggest, Thanks again!

from airmedfoundation-terminal.

mingjiahui avatar mingjiahui commented on May 31, 2024

Hi @Alex99y, I've tried as you suggest, but it's doesn't work for me. Could you please have a look?

图片

my docker-compose.yaml file:

version: '2'
   
services:
  posgresql:
    image: postgres:11.2
    container_name: postgresql
    ports:
      - "5432:5432"
    environment:
      POSTGRES_DB: "airmed"
      POSTGRES_USER: "airmed"
      POSTGRES_PASSWORD: "LYbAWCErGttRsP9y"
    volumes:
      - data_psql:/var/lib/postgresql/data
  redis:
    image: redis:4.0
    container_name: redis
    ports: 
      - "6379:6379"
    volumes:
      - data_redis:/data
      - ./redis.conf:/usr/local/etc/redis/redis.conf
    entrypoint: redis-server /usr/local/etc/redis/redis.conf

volumes:
  data_psql:
  data_redis:

and my appconfig.json file:
{ "email": { "admin":"[email protected]", "auth": { "user": "[email protected]", "pass": "password" }, "service": "Gmail", "emailVerification": 1 }, "database": { "adapter": "sails-postgresql", "user": "airmed", "password": "LYbAWCErGttRsP9y", "port": "5432", "host": "localhost", "database": "airmed" }, "session": { "name": "sails.sid", "secret": "secretKey", "redis": { "url": "redis://: [email protected]:6379/15", "host": "127.0.0.1", "port": 6379, "pass": "redisPassword", "db": 15 } }, "ipfs": { "host":"127.0.0.1", "port":"5001" } }

图片

from airmedfoundation-terminal.

Alex99y avatar Alex99y commented on May 31, 2024

@mingjiahui do you tried to run sails before init.sh?

from airmedfoundation-terminal.

mingjiahui avatar mingjiahui commented on May 31, 2024

@mingjiahui do you tried to run sails before init.sh?

Yes, I did. and the project can run normally except for explore.
图片

from airmedfoundation-terminal.

Alex99y avatar Alex99y commented on May 31, 2024

@mingjiahui what is not working in the explorer?. It is giving you an error? Or it is not updating the front end?

from airmedfoundation-terminal.

mingjiahui avatar mingjiahui commented on May 31, 2024

@Alex99y When I execute the ./init.sh command, this error occurs, and when I click explorer , the same error will appear on the front page.

from airmedfoundation-terminal.

Alex99y avatar Alex99y commented on May 31, 2024

@mingjiahui the problem might be in the sails-postgresql adapter. I'm sorry that I couldn't help with this. You need to check why the adapter is not connecting to the database, maybe need to be updated to the last version. Do you know if Sails has been connected to the database successfully?. That is because sails should create the database models after start.

from airmedfoundation-terminal.

GUESSZERO4 avatar GUESSZERO4 commented on May 31, 2024

please,I want know which port that the server is running at

from airmedfoundation-terminal.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.