Comments (3)
Hello @jnthas,
Thank you for reporting your detailed logs.
Can you please make sure you have "INFO" in your logLevel setting:
in the data/settings-xxxxx.js file you should see : logLevel = "LOG|DEBUG|INFO|WARNING|ERROR";
Then, restart the node server and you might see more details.
logs should be set on the log folder, usually on "/var/log/node/t6-access|error.log" ;
You can display those logs using :
tail -f /var/log/node/*.log
In case not displays on log output, then, try to open the following url on your browser :
http://127.0.0.1:3000/
it should works.
from t6.
Hi @mathcoll,
I did the following changes to make it work,
- Changed the
logLevel
to INFO like you mentioned - I set the path for both params
logAccessFile
andlogErrorFile
to the same folder of project - Changed baseUrlCdn to "" in order to make the static resources available
Now I can access the system on 127.0.0.1:3000, but when I try to add a user I get this error:
Error writting event to influxDb: ServiceNotAvailableError: No host available
at Pool.stream (/home/jonathas/projects/t6/node_modules/influx/lib/src/pool.js:230:29)
at /home/jonathas/projects/t6/node_modules/influx/lib/src/pool.js:166:18
at new Promise (<anonymous>)
at Pool.discard (/home/jonathas/projects/t6/node_modules/influx/lib/src/pool.js:165:16)
at InfluxDB.writePoints (/home/jonathas/projects/t6/node_modules/influx/lib/src/index.js:859:27)
at Object.t6events.add (/home/jonathas/projects/t6/t6events.js:23:14)
at /home/jonathas/projects/t6/routes/users.js:267:13
at Layer.handle [as handle_request] (/home/jonathas/projects/t6/node_modules/express/lib/router/layer.js:95:5)
at next (/home/jonathas/projects/t6/node_modules/express/lib/router/route.js:137:13)
at Route.dispatch (/home/jonathas/projects/t6/node_modules/express/lib/router/route.js:112:3)
It's related to influxdb, but the database is working properly, I could check doing:
> select * from "events"
name: events
------------
time what where who
1601591773414236468 start t6App:dev self
Do you have any idea what is the problem? I have another question, is it possible to disable sending emails when a user is created?
Thanks!
from t6.
Hi,
There is certainly something not correctly set on your influxdb.
can you please try a
SHOW MEASUREMENTS
then
select count() from "data"
and
select count() from "requests"
I'm not an expert in influxdb;
BTW, as influx is only used to store timeseries, it should not block you to start using t6 on setting up your Objects, Flows, and so on.
About the next question - (this should be another ticket :-))
I have another question, is it possible to disable sending emails when a user is created?
On purpose, I'd say : "no, not possible".
But, if you'd really like it, you can edit file "routes/users.js" at line 293, and comment/remove the piece of code
t6mailer.sendMail(mailOptions).then(function(info){
[ ... ...]
});
Actually, if you do that change, the email won't be sent, but as a consequence it would be tricky to set your password then.
So, I hope this process is not confusing :
- once you have POSTed a new user,
- then you need to POST on "{{ENDPOINT}}/v{{API_VERSION}}/users/instruction" with the email as payload, so that a token is generated for that user
- then a GET on "{{ENDPOINT}}/v{{API_VERSION}}/users/{{my_user_id}}/token" ; to get that token.. And I hope this will work for you, because it require a Bearer token as header...
- then a POST on "{{ENDPOINT}}/v{{API_VERSION}}/users/token/{{my_token_password_reset}}" with the new password in payload
See Api doc for more details :
https://api.internetcollaboratif.info/docs/
from t6.
Related Issues (8)
- Err 503 on adding datapoint to a Flow requiring a signed payload HOT 1
- "Next&Prev pages" wrong link after adding Object to library
- TypeError: Cannot read property 'pushSubscription' of null HOT 1
- Docker / Docker-Compose support HOT 2
- Server return errors on authentification, on POST datapoints, and on getting datapoints to display on dahsboard HOT 2
- Rules HOT 2
- Question - Windows HOT 2
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 t6.