kennbroorg / iKy

OSINT Project. Collect information from a mail. Gather. Profile. Timeline.
https://kennbroorg.gitlab.io/ikyweb/
GNU General Public License v3.0
831 stars 149 forks source link

backend not working #14

Closed ghost closed 4 years ago

ghost commented 4 years ago

kali@kali:~/iKy$ cd backend kali@kali:~/iKy/backend$ ./celery.sh ./celery.sh: line 3: celery: command not found

KennBro commented 4 years ago

1) Kali 2020? 2) What method did you use to install iKy? 3) What version of python are you using? (python --version) 3) What is the output of the following command?

pip install celery
ghost commented 4 years ago
  1. i use the latest version of kali
  2. i just follow the 2019 installation video and manual installation (detailed) of yours
  3. (Python 3.8.2)
  4. kali@kali:/$ pip install celery Defaulting to user installation because normal site-packages is not writeable Requirement already satisfied: celery in /home/kali/.local/lib/python3.7/site-packages (4.3.0) Requirement already satisfied: vine>=1.3.0 in /home/kali/.local/lib/python3.7/site-packages (from celery) (1.3.0) Requirement already satisfied: billiard<4.0,>=3.6.0 in /home/kali/.local/lib/python3.7/site-packages (from celery) (3.6.0.0)

Requirement already satisfied: kombu<5.0,>=4.4.0 in /home/kali/.local/lib/python3.7/site-packages (from celery) (4.6.3) Requirement already satisfied: pytz>dev in /home/kali/.local/lib/python3.7/site-packages (from celery) (2017.3) Requirement already satisfied: amqp<3.0,>=2.5.0 in /home/kali/.local/lib/python3.7/site-packages (from kombu<5.0,>=4.4.0->celery) (2.5.0)

KennBro commented 4 years ago

Ok. Kali 2020 has python 2.7 as default Send me a screenshot of the following commands

python --version
pip install celery

Maybe, you have python 3.8.2 installed, but python 2.7 is still active

Please, run

sudo apt-cache search celery

And send me the output

KennBro commented 4 years ago

kali@kali:~$ pip install celery Defaulting to user installation because normal site-packages is not writeable Requirement already satisfied: celery in ./.local/lib/python3.7/site-packages (4.3.0) Requirement already satisfied: vine>=1.3.0 in ./.local/lib/python3.7/site-packages (from celery) (1.3.0) Requirement already satisfied: billiard<4.0,>=3.6.0 in ./.local/lib/python3.7/site-packages (from celery) (3.6.0.0) Requirement already satisfied: pytz>dev in ./.local/lib/python3.7/site-packages (from celery) (2017.3) Requirement already satisfied: kombu<5.0,>=4.4.0 in ./.local/lib/python3.7/site-packages (from celery) (4.6.3) Requirement already satisfied: amqp<3.0,>=2.5.0 in ./.local/lib/python3.7/site-packages (from kombu<5.0,>=4.4.0->celery) (2.5.0)

You forgot the python --version before the pip install celery

ghost commented 4 years ago

kali@kali:~$ python --version Python 2.7.17 kali@kali:~$ pip install celery Defaulting to user installation because normal site-packages is not writeable Requirement already satisfied: celery in ./.local/lib/python3.7/site-packages (4.3.0) Requirement already satisfied: vine>=1.3.0 in ./.local/lib/python3.7/site-packages (from celery) (1.3.0) Requirement already satisfied: billiard<4.0,>=3.6.0 in ./.local/lib/python3.7/site-packages (from celery) (3.6.0.0) Requirement already satisfied: pytz>dev in ./.local/lib/python3.7/site-packages (from celery) (2017.3) Requirement already satisfied: kombu<5.0,>=4.4.0 in ./.local/lib/python3.7/site-packages (from celery) (4.6.3) Requirement already satisfied: amqp<3.0,>=2.5.0 in ./.local/lib/python3.7/site-packages (from kombu<5.0,>=4.4.0->celery) (2.5.0)

ghost commented 4 years ago

kali@kali:~$ sudo apt-cache search celery [sudo] password for kali: prospector - comprehensive static Python code analyzer python-amqp-doc - Low-level AMQP client (Documentation) python-celery-common - async task/job queue based on message passing (common files) python-celery-doc - async task/job queue based on message passing (Documentation) python-dask-doc - Minimal task scheduling abstraction documentation python-django-celery-beat-doc - Database-backed Periodic Tasks (Python3 version) python-django-celery-results-doc - Celery result backends for Django (Documentation) python3-amqp - Low-level AMQP client (Python3 version) python3-celery - async task/job queue based on message passing (Python3 version) python3-celery-batches - Task class that buffers messages and processes them as a list python3-dask - Minimal task scheduling abstraction for Python 3 python3-django-celery-beat - Database-backed Periodic Tasks (Documentation) python3-django-celery-haystack - utilize Celery for automatic haystack index updates (Python3 version) python3-django-celery-results - Celery result backends for Django (Python3 version) python3-pylint-celery - Pylint plugin for code using the Celery library (Python3) python3-pylint-plugin-utils - Utilities and helpers for writing Pylint plugins (Python 3) python3-socketio - python3 implementation of the Socket.IO realtime client and server python3-sphinx-celery - Sphinx Celery theme

KennBro commented 4 years ago

kali@kali:~$ python --version Python 2.7.17 kali@kali:~$ pip install celery Defaulting to user installation because normal site-packages is not writeable Requirement already satisfied: celery in ./.local/lib/python3.7/site-packages (4.3.0) Requirement already satisfied: vine>=1.3.0 in ./.local/lib/python3.7/site-packages (from celery) (1.3.0) Requirement already satisfied: billiard<4.0,>=3.6.0 in ./.local/lib/python3.7/site-packages (from celery) (3.6.0.0) Requirement already satisfied: pytz>dev in ./.local/lib/python3.7/site-packages (from celery) (2017.3) Requirement already satisfied: kombu<5.0,>=4.4.0 in ./.local/lib/python3.7/site-packages (from celery) (4.6.3) Requirement already satisfied: amqp<3.0,>=2.5.0 in ./.local/lib/python3.7/site-packages (from kombu<5.0,>=4.4.0->celery) (2.5.0)

Like I said, Kali 2020 has python 2.7 by default. This is why you can't find celery. You must switch to python 3

ghost commented 4 years ago

kali@kali:~$ python --version Python 2.7.17 kali@kali:~$ pip install celery Defaulting to user installation because normal site-packages is not writeable Requirement already satisfied: celery in ./.local/lib/python3.7/site-packages (4.3.0) Requirement already satisfied: vine>=1.3.0 in ./.local/lib/python3.7/site-packages (from celery) (1.3.0) Requirement already satisfied: billiard<4.0,>=3.6.0 in ./.local/lib/python3.7/site-packages (from celery) (3.6.0.0) Requirement already satisfied: pytz>dev in ./.local/lib/python3.7/site-packages (from celery) (2017.3) Requirement already satisfied: kombu<5.0,>=4.4.0 in ./.local/lib/python3.7/site-packages (from celery) (4.6.3) Requirement already satisfied: amqp<3.0,>=2.5.0 in ./.local/lib/python3.7/site-packages (from kombu<5.0,>=4.4.0->celery) (2.5.0)

Like I said, Kali 2020 has python 2.7 by default

so i will switch to kali 2019? sorry im just a newbie how to switch to default python 3 i installed python 3.8 but python2 is still there

KennBro commented 4 years ago

kali@kali:~$ python --version Python 2.7.17 kali@kali:~$ pip install celery Defaulting to user installation because normal site-packages is not writeable Requirement already satisfied: celery in ./.local/lib/python3.7/site-packages (4.3.0) Requirement already satisfied: vine>=1.3.0 in ./.local/lib/python3.7/site-packages (from celery) (1.3.0) Requirement already satisfied: billiard<4.0,>=3.6.0 in ./.local/lib/python3.7/site-packages (from celery) (3.6.0.0) Requirement already satisfied: pytz>dev in ./.local/lib/python3.7/site-packages (from celery) (2017.3) Requirement already satisfied: kombu<5.0,>=4.4.0 in ./.local/lib/python3.7/site-packages (from celery) (4.6.3) Requirement already satisfied: amqp<3.0,>=2.5.0 in ./.local/lib/python3.7/site-packages (from kombu<5.0,>=4.4.0->celery) (2.5.0)

Like I said, Kali 2020 has python 2.7 by default

so i will switch to kali 2019? sorry im just a newbie

No, no. Give me a second.

KennBro commented 4 years ago

Please run this command

sudo update-alternatives --config python

And send my the output

ghost commented 4 years ago

Please run this command

sudo update-alternatives --config python

And send my the output

kali@kali:~$ sudo update-alternatives --config python [sudo] password for kali: update-alternatives: error: no alternatives for python

KennBro commented 4 years ago

Ok

python --version

Output

sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 3

Output

python --version

Output

ghost commented 4 years ago

Ok

python --version

Output

sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 3

Output

python --version

Output

kali@kali:~$ python --version Python 2.7.17 kali@kali:~$ sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 3 [sudo] password for kali: update-alternatives: using /usr/bin/python3 to provide /usr/bin/python (python) in auto mode kali@kali:~$ python --version Python 3.8.2 kali@kali:~$ Thanks!

KennBro commented 4 years ago

Ok, wait. Run inside backend directory

./celery.sh

And if it's work remember run

sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 2

to get back to python 2

KennBro commented 4 years ago

kali@kali:~$ cd iKy/ kali@kali:~/iKy$ cd backend kali@kali:~/iKy/backend$ ./selery.sh bash: ./selery.sh: No such file or directory kali@kali:~/iKy/backend$

./celery.sh # With C

ghost commented 4 years ago

kali@kali:~$ cd iKy/ kali@kali:~/iKy$ cd backend kali@kali:~/iKy/backend$ ./selery.sh bash: ./selery.sh: No such file or directory kali@kali:~/iKy/backend$

./celery.sh # With C

kali@kali:~$ cd iKy/ kali@kali:~/iKy$ cd backend kali@kali:~/iKy/backend$ ./celery.sh ./celery.sh: line 3: celery: command not found kali@kali:~/iKy/backend$

KennBro commented 4 years ago

Ok.

sudo apt-get install python3-celery

And again, inside backend directory

./celery.sh
ghost commented 4 years ago

Ok.

sudo apt-get install python3-celery

And again, inside backend directory

./celery.sh

kali@kali:~/iKy/backend$ ./celery.sh ./celery.sh: line 3: celery: command not found kali@kali:~/iKy/backend$ ./celery.sh ./celery.sh: line 3: celery: command not found kali@kali:~/iKy/backend$ i install this but still not working sudo apt-get install python3-celery

KennBro commented 4 years ago

And python --version is 3.7???

ghost commented 4 years ago

python --version

Python 3.8.2

KennBro commented 4 years ago

It must be 3.7.X

shanow7 commented 4 years ago

iKy/backend$ python --version Python 3.7.7 /iKy/backend$ sudo apt-get install python3-celery python3-celery is already the newest version (4.4.2-5). /iKy/backend$ ./celery.sh celery: command not found

what next?

mubu98 commented 4 years ago

ngx-admin-iKy@2.0.0 start /home/mubu/tools/iKy/frontend ng serve

An unhandled exception occurred: Job name "..getProjectMetadata" does not exist. See "/tmp/ng-BkhoGd/angular-errors.log" for further details. npm ERR! code ELIFECYCLE npm ERR! syscall spawn npm ERR! file sh npm ERR! errno ENOENT npm ERR! ngx-admin-iKy@2.0.0 start: ng serve npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the ngx-admin-iKy@2.0.0 start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /home/mubu/.npm/_logs/2020-08-23T23_35_30_715Z-debug.log

w17h0u7m3rcy commented 2 years ago

I solved this problem installing the common version:


sudo apt-get install python-celery-common
Aesir-coder commented 2 years ago

I solved this problem installing the common version:

sudo apt-get install python-celery-common

Thank you so much for sharing. That is the only command that solved my problem too.