converge / instapy-dashboard

(discontinued) InstaPy Dashboard developed using React.js and Node.js
GNU Affero General Public License v3.0
218 stars 44 forks source link

No data showed on Ubuntu server 18.04 #31

Closed gagna closed 5 years ago

gagna commented 5 years ago

Hi,

Ubuntu is installed on a local virtual machine, where I manually starts multiple InstaPy instances via SSH

I follow the installation instructions and I' m able to reach the dashboard on my network, the problem is that no data is shown

# MacOS: /Users/your_user_name/InstaPy
# you can also check this information when running your quickstart.py,
# the first lines contains
# -> Workspace in use: "/Users/converge/InstaPy"
INSTAPY_FOLDER=/home/user/InstaPy
# if using only on localhost, keep it:
ALLOWED_HOSTS=http://localhost:3000 http://192.168.0.100:3000
REACT_APP_API_ENTRY_POINT=http://localhost:3001

# basic setup, ok to keep it ->
# Node port
NODE_PORT=3001
# ReactJS Create APP port
PORT=3000
converge commented 5 years ago

hey, did the tests pass? npm run test

gagna commented 5 years ago

Yes

npm run test

> instapy-dashboard@0.3.0 test /home/user/instapy-dashboard
> NODE_ENV=test jest

(node:7682) [SEQUELIZE0004] DeprecationWarning: A boolean value was passed to options.operatorsAliases. This is a no-op with v5 and should be removed.
 PASS  __tests__/integration/gets.test.js
  ● Console

    console.log node_modules/sequelize/lib/sequelize.js:1118
      Executing (default): SELECT 1+1 AS result
    console.log node_modules/sequelize/lib/sequelize.js:1118
      Executing (default): SELECT recActivity.rowid,
                     prof.id as profile_id,
                     prof.name,
                     sum(recActivity.likes) as likes,
                     sum(recActivity.comments) as comments,
                     sum(recActivity.follows) as follows,
                     sum(recActivity.unfollows) as unfollows,
                     sum(recActivity.server_calls) as server_calls,
                     strftime('%Y-%m-%d', recActivity.created) as day_filter
            FROM recordActivity as recActivity
            LEFT JOIN profiles as prof ON recActivity.profile_id = prof.id
            GROUP BY day_filter, profile_id
            ORDER BY recActivity.created desc
    console.log src/services/routes.js:17
      Connection has been established successfully.

 PASS  __tests__/integration/setup.test.js

Test Suites: 2 passed, 2 total
Tests:       3 passed, 3 total
Snapshots:   0 total
Time:        1.648s, estimated 3s
Ran all test suites.
converge commented 5 years ago

1 - using the DevTools at "Network" tab, do you see some 4xx error? 2 - in your case, REACT_APP_API_ENTRY_POINT should be REACT_APP_API_ENTRY_POINT=http://192.168.0.100:3001

gagna commented 5 years ago

Solved, problem was here REACT_APP_API_ENTRY_POINT=http://192.168.0.100:3001