ProbeManager icon indicating copy to clipboard operation
ProbeManager copied to clipboard

Issue with LXC installatio

Open emixam3 opened this issue 7 years ago • 2 comments

Hi, I'e tried to install ProbeManager as doc mentioned it, but in LXC container. One in debian9, the other one in Ubuntu14. But nothing works. The install always fails. All my containers are up-to-date,

Some issues talks about Python (I've got Python3.5 like recommanded configuration), some other one talks about chmod issue... And I'm root on my system!

emixam3 avatar Dec 17 '18 21:12 emixam3

Hi, So, I've tried with Debian Stretch VM and LXC container, Ubuntu 14 VM and LXC container, same issues. Sometimes Python issues, sometimes chown issues, sometimes chmod.... What I do:

  • As root:
  • Configure my system to use Python 3.5 (or sometimes Python 3.6);
  • Install GIT
  • git clone --recursive https://github.com/treussart/ProbeManager.git
  • cd ProbeManager
  • ./install.sh prod /usr/local/share
  • Then multiple crashes.

And if I launch ./install.sh again, other crash, but not the same that the first time!

emixam3 avatar Dec 23 '18 10:12 emixam3

`[74%] Building CXX object src/file_analysis/analyzer/x509/CMakeFiles/plugin-Bro-X509.dir/X509.cc.o /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.cc: In static member function 'static RecordVal* file_analysis::X509::ParseCertificate(file_analysis::X509Val*, const char*)': /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.cc:142:43: error: invalid use of incomplete type 'X509 {aka struct x509_st}' if ( ! i2t_ASN1_OBJECT(buf, 255, ssl_cert->cert_info->key->algor->algorithm) ) ^~ In file included from /usr/include/openssl/x509.h:20:0, from /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.h:12, from /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.cc:5: /usr/include/openssl/ossl_typ.h:119:16: note: forward declaration of 'X509 {aka struct x509_st}' typedef struct x509_st X509; ^~~~~~~ /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.cc:154:27: error: invalid use of incomplete type 'X509 {aka struct x509_st}' if ( OBJ_obj2nid(ssl_cert->cert_info->key->algor->algorithm) == NID_md5WithRSAEncryption ) ^~ In file included from /usr/include/openssl/x509.h:20:0, from /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.h:12, from /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.cc:5: /usr/include/openssl/ossl_typ.h:119:16: note: forward declaration of 'X509 {aka struct x509_st}' typedef struct x509_st X509; ^~~~~~~ /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.cc:156:27: error: invalid use of incomplete type 'X509 {aka struct x509_st}' old_algorithm = ssl_cert->cert_info->key->algor->algorithm; ^~ In file included from /usr/include/openssl/x509.h:20:0, from /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.h:12, from /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.cc:5: /usr/include/openssl/ossl_typ.h:119:16: note: forward declaration of 'X509 {aka struct x509_st}' typedef struct x509_st X509; ^~~~~~~ /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.cc:157:11: error: invalid use of incomplete type 'X509 {aka struct x509_st}' ssl_cert->cert_info->key->algor->algorithm = OBJ_nid2obj(NID_rsaEncryption); ^~ In file included from /usr/include/openssl/x509.h:20:0, from /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.h:12, from /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.cc:5: /usr/include/openssl/ossl_typ.h:119:16: note: forward declaration of 'X509 {aka struct x509_st}' typedef struct x509_st X509; ^~~~~~~ /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.cc:160:43: error: invalid use of incomplete type 'X509 {aka struct x509_st}' if ( ! i2t_ASN1_OBJECT(buf, 255, ssl_cert->sig_alg->algorithm) ) ^~ In file included from /usr/include/openssl/x509.h:20:0, from /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.h:12, from /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.cc:5: /usr/include/openssl/ossl_typ.h:119:16: note: forward declaration of 'X509 {aka struct x509_st}' typedef struct x509_st X509; ^~~~~~~ /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.cc:169:12: error: invalid use of incomplete type 'EVP_PKEY {aka struct evp_pkey_st}' if ( pkey->type == EVP_PKEY_DSA ) ^~ In file included from /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.h:9:0, from /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.cc:5: /home/ProbeManager/bro-2.5.3/src/file_analysis/../File.h:17:16: note: forward declaration of 'EVP_PKEY {aka struct evp_pkey_st}' typedef struct evp_pkey_st EVP_PKEY; ^~~~~~~~~~~ /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.cc:172:17: error: invalid use of incomplete type 'EVP_PKEY {aka struct evp_pkey_st}' else if ( pkey->type == EVP_PKEY_RSA ) ^~ In file included from /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.h:9:0, from /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.cc:5: /home/ProbeManager/bro-2.5.3/src/file_analysis/../File.h:17:16: note: forward declaration of 'EVP_PKEY {aka struct evp_pkey_st}' typedef struct evp_pkey_st EVP_PKEY; ^~~~~~~~~~~ /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.cc:176:35: error: invalid use of incomplete type 'EVP_PKEY {aka struct evp_pkey_st}' char exponent = BN_bn2dec(pkey->pkey.rsa->e); ^~ In file included from /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.h:9:0, from /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.cc:5: /home/ProbeManager/bro-2.5.3/src/file_analysis/../File.h:17:16: note: forward declaration of 'EVP_PKEY {aka struct evp_pkey_st}' typedef struct evp_pkey_st EVP_PKEY; ^~~~~~~~~~~ /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.cc:185:17: error: invalid use of incomplete type 'EVP_PKEY {aka struct evp_pkey_st}' else if ( pkey->type == EVP_PKEY_EC ) ^~ In file included from /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.h:9:0, from /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.cc:5: /home/ProbeManager/bro-2.5.3/src/file_analysis/../File.h:17:16: note: forward declaration of 'EVP_PKEY {aka struct evp_pkey_st}' typedef struct evp_pkey_st EVP_PKEY; ^~~~~~~~~~~ /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.cc:195:12: error: invalid use of incomplete type 'X509 {aka struct x509_st}' ssl_cert->cert_info->key->algor->algorithm = old_algorithm; ^~ In file included from /usr/include/openssl/x509.h:20:0, from /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.h:12, from /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.cc:5: /usr/include/openssl/ossl_typ.h:119:16: note: forward declaration of 'X509 {aka struct x509_st}' typedef struct x509_st X509; ^~~~~~~ /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.cc: In member function 'void file_analysis::X509::ParseExtension(X509_EXTENSION)': /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.cc:266:35: error: invalid use of incomplete type 'X509_EXTENSION {aka struct X509_extension_st}' M_ASN1_OCTET_STRING_print(bio,ex->value); ^~ In file included from /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.h:12:0, from /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.cc:5: /usr/include/openssl/x509.h:79:16: note: forward declaration of 'X509_EXTENSION {aka struct X509_extension_st}' typedef struct X509_extension_st X509_EXTENSION; ^~~~~~~~~~~~~~~~~ /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.cc:266:42: error: 'M_ASN1_OCTET_STRING_print' was not declared in this scope M_ASN1_OCTET_STRING_print(bio,ex->value); ^ /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.cc: In member function 'void file_analysis::X509::ParseSAN(X509_EXTENSION*)': /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.cc:360:37: warning: 'unsigned char* ASN1_STRING_data(ASN1_STRING*)' is deprecated [-Wdeprecated-declarations] const char* name = (const char*) ASN1_STRING_data(gen->d.ia5); ^~~~~~~~~~~~~~~~ In file included from /usr/include/openssl/e_os2.h:13:0, from /usr/include/openssl/x509.h:19, from /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.h:12, from /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.cc:5: /usr/include/openssl/asn1.h:553:1: note: declared here DEPRECATEDIN_1_1_0(unsigned char ASN1_STRING_data(ASN1_STRING x)) ^ /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.cc:360:64: warning: 'unsigned char ASN1_STRING_data(ASN1_STRING)' is deprecated [-Wdeprecated-declarations] const char* name = (const char*) ASN1_STRING_data(gen->d.ia5); ^ In file included from /usr/include/openssl/e_os2.h:13:0, from /usr/include/openssl/x509.h:19, from /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.h:12, from /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.cc:5: /usr/include/openssl/asn1.h:553:1: note: declared here DEPRECATEDIN_1_1_0(unsigned char ASN1_STRING_data(ASN1_STRING x)) ^ /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.cc: In static member function 'static StringVal file_analysis::X509::KeyCurve(EVP_PKEY)': /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.cc:448:10: error: invalid use of incomplete type 'EVP_PKEY {aka struct evp_pkey_st}' if ( key->type != EVP_PKEY_EC ) ^~ In file included from /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.h:9:0, from /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.cc:5: /home/ProbeManager/bro-2.5.3/src/file_analysis/../File.h:17:16: note: forward declaration of 'EVP_PKEY {aka struct evp_pkey_st}' typedef struct evp_pkey_st EVP_PKEY; ^~~~~~~~~~~ /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.cc:456:37: error: invalid use of incomplete type 'EVP_PKEY {aka struct evp_pkey_st}' if ( (group = EC_KEY_get0_group(key->pkey.ec)) == NULL) ^~ In file included from /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.h:9:0, from /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.cc:5: /home/ProbeManager/bro-2.5.3/src/file_analysis/../File.h:17:16: note: forward declaration of 'EVP_PKEY {aka struct evp_pkey_st}' typedef struct evp_pkey_st EVP_PKEY; ^~~~~~~~~~~ /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.cc: In static member function 'static unsigned int file_analysis::X509::KeyLength(EVP_PKEY*)': /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.cc:477:12: error: invalid use of incomplete type 'EVP_PKEY {aka struct evp_pkey_st}' switch(key->type) { ^~ In file included from /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.h:9:0, from /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.cc:5: /home/ProbeManager/bro-2.5.3/src/file_analysis/../File.h:17:16: note: forward declaration of 'EVP_PKEY {aka struct evp_pkey_st}' typedef struct evp_pkey_st EVP_PKEY; ^~~~~~~~~~~ /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.cc:479:25: error: invalid use of incomplete type 'EVP_PKEY {aka struct evp_pkey_st}' return BN_num_bits(key->pkey.rsa->n); ^~ In file included from /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.h:9:0, from /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.cc:5: /home/ProbeManager/bro-2.5.3/src/file_analysis/../File.h:17:16: note: forward declaration of 'EVP_PKEY {aka struct evp_pkey_st}' typedef struct evp_pkey_st EVP_PKEY; ^~~~~~~~~~~ /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.cc:482:25: error: invalid use of incomplete type 'EVP_PKEY {aka struct evp_pkey_st}' return BN_num_bits(key->pkey.dsa->p); ^~ In file included from /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.h:9:0, from /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.cc:5: /home/ProbeManager/bro-2.5.3/src/file_analysis/../File.h:17:16: note: forward declaration of 'EVP_PKEY {aka struct evp_pkey_st}' typedef struct evp_pkey_st EVP_PKEY; ^~~~~~~~~~~ /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.cc:492:48: error: invalid use of incomplete type 'EVP_PKEY {aka struct evp_pkey_st}' const EC_GROUP *group = EC_KEY_get0_group(key->pkey.ec); ^~ In file included from /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.h:9:0, from /home/ProbeManager/bro-2.5.3/src/file_analysis/analyzer/x509/X509.cc:5: /home/ProbeManager/bro-2.5.3/src/file_analysis/../File.h:17:16: note: forward declaration of 'EVP_PKEY {aka struct evp_pkey_st}' typedef struct evp_pkey_st EVP_PKEY; ^~~~~~~~~~~ src/file_analysis/analyzer/x509/CMakeFiles/plugin-Bro-X509.dir/build.make:119: recipe for target 'src/file_analysis/analyzer/x509/CMakeFiles/plugin-Bro-X509.dir/X509.cc.o' failed make[3]: *** [src/file_analysis/analyzer/x509/CMakeFiles/plugin-Bro-X509.dir/X509.cc.o] Error 1 make[3]: Leaving directory '/home/ProbeManager/bro-2.5.3/build' CMakeFiles/Makefile2:9333: recipe for target 'src/file_analysis/analyzer/x509/CMakeFiles/plugin-Bro-X509.dir/all' failed make[2]: *** [src/file_analysis/analyzer/x509/CMakeFiles/plugin-Bro-X509.dir/all] Error 2 make[2]: Leaving directory '/home/ProbeManager/bro-2.5.3/build' Makefile:149: recipe for target 'all' failed make[1]: *** [all] Error 2 make[1]: Leaving directory '/home/ProbeManager/bro-2.5.3/build' Makefile:15: recipe for target 'all' failed make: *** [all] Error 2 usage: setcap [-q] [-v] (-r|-|) [ ... (-r|-|<capsN>) <filenameN> ]

Note must be a regular (non-symlink) file. ./probemanager/bro/install.sh: line 53: type: critical-stack-intel: not found Detected operating system as debian/stretch. Checking for curl... Detected curl... Checking for gpg... Detected gpg... Running apt-get update... done. Installing debian-archive-keyring which is needed for installing apt-transport-https on many Debian systems. Installing apt-transport-https... done. Installing /etc/apt/sources.list.d/criticalstack_critical-stack-intel.list...done. Importing packagecloud gpg key... done. Running apt-get update... done.

The repository is setup! You can now install packages. Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package critical-stack-intel chown: missing operand after 'www-data:root' Try 'chown --help' for more information. chown: cannot access '/usr/local/bro': No such file or directory chown: cannot access '/etc/bro': No such file or directory chmod: cannot access '/usr/local/bro': No such file or directory chmod: missing operand after '750' Try 'chmod --help' for more information. ./probemanager/bro/install.sh: line 72: type: bro: not found Install failed of probemanager/bro`

This is one of my issue

emixam3 avatar Dec 29 '18 10:12 emixam3