| 384 | |
| 385 | |
| 386 | === Petascope cannot connect to rasdaman in Centos 7 === |
| 387 | The 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 | {{{ |
| 390 | ERROR [08:58:34] ApplicationMain@105: Error when initializing petascope's configurations |
| 391 | petascope.exceptions.PetascopeException: RasManager Error: Could not connect to RasServer . |
| 392 | at org.rasdaman.ApplicationMain.placeholderConfigurer(ApplicationMain.java:104) |
| 393 | }}} |
| 394 | |
| 395 | |
| 396 | There 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 | }}} |