MohdSaif-1807 / Network-Intrusion-Detection-System-Using-Machine-Learning-and-Deep-Learning

Cyber Security: Development of Network Intrusion Detection System (NIDS), with Machine Learning and Deep Learning (RNN) models, MERN web I/O System. The deployed project link is as follows.
https://nids-system.onrender.com/
10 stars 2 forks source link

getting mongodb error #1

Closed chethanrraj90 closed 3 months ago

chethanrraj90 commented 1 year ago

i am getting below error please help me image

and also sir please explain how and what to do in Step-2 : Create a .env file and set up the dovenv variable which is used in app.js (or) remove dotenv variables from app.js and set the links like mongoDB link etc. where to add mongodb query link in app.js?

i used both the methods but dint understand 2nd step and unable to login and use the features.

please help sir..

MohdSaif-1807 commented 1 year ago

OK, Man I have seen the issue which you are facing it's just deprecation of the libraries which we have used in our project.. Due to which you are facing the issue. Wait for some time I will try to update the libraries and will be pushing the docker image soon.. And regarding the .env you yourself have to generate the values for the .env variables by creating certain accounts in various platforms as mongodb Atlas or local, Google security, etc.. The information regarding it you can get from the app.js file where we have use variables of .env..

On Wed, Apr 19, 2023, 2:10 PM Chethan R @.***> wrote:

i am getting below error please help me [image: image] https://user-images.githubusercontent.com/71137457/233018522-668a9451-c5c7-4429-a648-034db9d246dc.png

and also sir please explain how and what to do in Step-2 : Create a .env file and set up the dovenv variable which is used in app.js (or) remove dotenv variables from app.js and set the links like mongoDB link etc.

i used both the methods but dint understand 2nd step and unable to login and use the features.

please help sir..

— Reply to this email directly, view it on GitHub https://github.com/MohdSaif-1807/Network-Intrusion-Detection-System-Using-Machine-Learning-and-Deep-Learning/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/A26FF7NZQ5RN255GNMBTGDTXB6QGHANCNFSM6AAAAAAXDXKZ3I . You are receiving this because you are subscribed to this thread.Message ID: <MohdSaif-1807/Network-Intrusion-Detection-System-Using-Machine-Learning-and-Deep-Learning/issues/1 @github.com>

chethanrraj90 commented 1 year ago

Ok sir, looking forward to you

MohdSaif-1807 commented 1 year ago

Done!! Updated the Docker Image Now you can run the docker container to view the Screenshot (1711) application. And for the .env file there are variables which is listed in the following image where you have to required values that are encoded in angular brackets.

chethanrraj90 commented 1 year ago

thank you sir.. docker run --publish 3000:3000 saif0786/nids is the command for docker method? but getting error image please share updated command for docker

MohdSaif-1807 commented 1 year ago

Before running this command did you have removed all existing images of saif0786/nids from docker desktop?

On Sun, Apr 23, 2023, 4:01 PM Chethan R @.***> wrote:

thank you sir.. docker run --publish 3000:3000 saif0786/nids is the command for docker method? but getting error [image: image] https://user-images.githubusercontent.com/71137457/233834532-9823be5d-0488-481d-98bf-944509fd5168.png please share updated command for docker

— Reply to this email directly, view it on GitHub https://github.com/MohdSaif-1807/Network-Intrusion-Detection-System-Using-Machine-Learning-and-Deep-Learning/issues/1#issuecomment-1519026907, or unsubscribe https://github.com/notifications/unsubscribe-auth/A26FF7P7BZ5GRQ5LKTLBZNLXCUAHVANCNFSM6AAAAAAXDXKZ3I . You are receiving this because you commented.Message ID: <MohdSaif-1807/Network-Intrusion-Detection-System-Using-Machine-Learning-and-Deep-Learning/issues/1/1519026907 @github.com>

MohdSaif-1807 commented 1 year ago

If not then remove all the existing images of saif0786/nids from docker desktop and then run the command remember removal of images from docker desktop means deleting of those images from your docker desktop.

On Mon, Apr 24, 2023, 12:47 PM Mohd Saif @.***> wrote:

Before running this command did you have removed all existing images of saif0786/nids from docker desktop?

On Sun, Apr 23, 2023, 4:01 PM Chethan R @.***> wrote:

thank you sir.. docker run --publish 3000:3000 saif0786/nids is the command for docker method? but getting error [image: image] https://user-images.githubusercontent.com/71137457/233834532-9823be5d-0488-481d-98bf-944509fd5168.png please share updated command for docker

— Reply to this email directly, view it on GitHub https://github.com/MohdSaif-1807/Network-Intrusion-Detection-System-Using-Machine-Learning-and-Deep-Learning/issues/1#issuecomment-1519026907, or unsubscribe https://github.com/notifications/unsubscribe-auth/A26FF7P7BZ5GRQ5LKTLBZNLXCUAHVANCNFSM6AAAAAAXDXKZ3I . You are receiving this because you commented.Message ID: <MohdSaif-1807/Network-Intrusion-Detection-System-Using-Machine-Learning-and-Deep-Learning/issues/1/1519026907 @github.com>

chethanrraj90 commented 1 year ago

Yes sir now it is running successfully thank you so much for your help..

MohdSaif-1807 commented 1 year ago

Glad to hear it!

On Tue, Apr 25, 2023, 10:01 AM Chethan R @.***> wrote:

Yes sir now it is running successfully thank you so much for your help..

— Reply to this email directly, view it on GitHub https://github.com/MohdSaif-1807/Network-Intrusion-Detection-System-Using-Machine-Learning-and-Deep-Learning/issues/1#issuecomment-1521139587, or unsubscribe https://github.com/notifications/unsubscribe-auth/A26FF7OJZ2JOKHJ7YZV3SULXC5HRLANCNFSM6AAAAAAXDXKZ3I . You are receiving this because you commented.Message ID: <MohdSaif-1807/Network-Intrusion-Detection-System-Using-Machine-Learning-and-Deep-Learning/issues/1/1521139587 @github.com>

chethanrraj90 commented 1 year ago

image hi sir in predict section 2nd feature that is OPEN CSV i giving csv file but in return it is returning the same uploaded file when i download. it is not returning updated file with type of attack for each row.

what may be the problem

MohdSaif-1807 commented 1 year ago

Ok Man, So the problem may be related to the type of input you are trying to supply since you have selected open csv as a method to give input to the system you must have a knowledge about the type of input required by the system. And another problem would be slowness of your system. Your system may be slow due to which it may take more time to process the data.

On Thu, Apr 27, 2023, 3:25 PM Chethan R @.***> wrote:

[image: image] https://user-images.githubusercontent.com/71137457/234827330-a1fc585f-6de9-4bdc-8430-0eb9de80ecc4.png hi sir in predict section 2nd feature that is OPEN CSV i giving csv file but in return it is returning the same uploaded file when i download. it is not returning updated file with type of attack for each row.

what may be the problem

— Reply to this email directly, view it on GitHub https://github.com/MohdSaif-1807/Network-Intrusion-Detection-System-Using-Machine-Learning-and-Deep-Learning/issues/1#issuecomment-1525323465, or unsubscribe https://github.com/notifications/unsubscribe-auth/A26FF7NWCXEXA2VYWEVGMYLXDI7CPANCNFSM6AAAAAAXDXKZ3I . You are receiving this because you commented.Message ID: <MohdSaif-1807/Network-Intrusion-Detection-System-Using-Machine-Learning-and-Deep-Learning/issues/1/1525323465 @github.com>

chethanrraj90 commented 1 year ago

so basically i just gave same data what you have given in the video with same rows same attributes same values, that too with same file name. https://drive.google.com/file/d/1o76ZBdZ0vIAFx2EHPrKCtG12oNUeEsdu/view

MohdSaif-1807 commented 1 year ago

Ok So in that case you try to check the console statements as I have mention completed as the console statement when the file is successfully updated try to download the file after you see the completed as the statement in your console and check the csv file.

On Thu, Apr 27, 2023, 4:15 PM Chethan R @.***> wrote:

so basically i just gave same data what you have given with same rows same attributes same values as that too with same file name like in the video https://drive.google.com/file/d/1o76ZBdZ0vIAFx2EHPrKCtG12oNUeEsdu/view

— Reply to this email directly, view it on GitHub https://github.com/MohdSaif-1807/Network-Intrusion-Detection-System-Using-Machine-Learning-and-Deep-Learning/issues/1#issuecomment-1525449940, or unsubscribe https://github.com/notifications/unsubscribe-auth/A26FF7KSNEYKMIDUFSWSFSLXDJE33ANCNFSM6AAAAAAXDXKZ3I . You are receiving this because you commented.Message ID: <MohdSaif-1807/Network-Intrusion-Detection-System-Using-Machine-Learning-and-Deep-Learning/issues/1/1525449940 @github.com>

chethanrraj90 commented 1 year ago

okay sir

vaishnavichannegowda commented 3 months ago

![Uploading network error.png…]() Hi sir, i entered the network parameters i am only getting partial output where the knn description and binary,multi class attacks are not shown how to resolve it please help me with this i have demo tomorrow