Comments (12)
@Alex99y okay, but thank you all the same!~~
from airmedfoundation-terminal.
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.
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.
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.
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.
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.
@mingjiahui do you tried to run sails before init.sh?
from airmedfoundation-terminal.
@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.
@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.
@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.
@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.
please,I want know which port that the server is running at
from airmedfoundation-terminal.
Related Issues (17)
- Imagen de preview no mostrada HOT 3
- UI - Mismo tamaño de font para los botones "Choose a file" y "Upload file", mover "drag it here" debajo de upload file
- UI - Añadir mensaje: "The file is now publicly available from: https://gateway.ipfs.io/ipfs/<hash>"
- Documentation HOT 6
- Fully Qualified Domain Name HOT 1
- problem HOT 3
- Follow this code, I can bulid a project like Airmed Foundation combining IPFS and Fabric. HOT 1
- Imagen jpg descargada como png
- please support go version chaincode
- Nombre de imagen "hash"
- Search dialogue
- Success dialogue
- Potential security vulnerabilities in dependencies HOT 1
- UI - Añadir botón "Choose a file"
- Añadir hyperlink de "The Chain © - 2019" -> thechain.tech
- URL: thechain.tech/medicalchain
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from airmedfoundation-terminal.