Changes between Version 130 and Version 131 of FAQ


Ignore:
Timestamp:
Nov 28, 2017, 10:43:26 AM (7 years ago)
Author:
Bang Pham Huu
Comment:

Add solution for connection to rasdaman for petascope in Centos7

Legend:

Unmodified
Added
Removed
Modified
  • FAQ

    v130 v131  
    382382=== Why do I have to accept the [wiki:ContributorAgreement Rasdaman Contribution Agreement] when providing a patch? ===
    383383Because [wiki:License for legal reasons] the project must have a trackable code provenance.
     384
     385
     386=== Petascope cannot connect to rasdaman in Centos 7 ===
     387The problem is tomcat user running petascope web application from (e.g: /var/lib/tomcat/webapps) couldn't have permission to connect these ports: 7001-7010 (specified in rasmgr.conf) for rasmgr, rasservers in petascope.log
     388
     389{{{
     390ERROR [08:58:34] ApplicationMain@105: Error when initializing petascope's configurations
     391petascope.exceptions.PetascopeException: RasManager Error: Could not connect to RasServer .
     392        at org.rasdaman.ApplicationMain.placeholderConfigurer(ApplicationMain.java:104)
     393}}}
     394
     395
     396There are 2 solutions for it:
     397 * Disable SELinux completely with setenforce 0 [https://www.tecmint.com/disable-selinux-temporarily-permanently-in-centos-rhel-fedora/].
     398 * Allow these ports 7001-7010 could be accessed for http with these commands [http://cockpit-project.org/guide/133/listen.html]
     399 {{{
     400   # to install semanage tool
     401   sudo yum install setroubleshoot-server
     402
     403   # allow ports to be accessed
     404   sudo semanage port -m -t http_port_t -p tcp 7001
     405   sudo semanage port -m -t http_port_t -p tcp 7002
     406   sudo semanage port -m -t http_port_t -p tcp 7003
     407   sudo semanage port -a -t http_port_t -p tcp 7003
     408   sudo semanage port -a -t http_port_t -p tcp 7004
     409   sudo semanage port -a -t http_port_t -p tcp 7005
     410   sudo semanage port -a -t http_port_t -p tcp 7006
     411   sudo semanage port -a -t http_port_t -p tcp 7007
     412   sudo semanage port -a -t http_port_t -p tcp 7008
     413   sudo semanage port -a -t http_port_t -p tcp 7009
     414   sudo semanage port -a -t http_port_t -p tcp 7010
     415 }}}