Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot run multiple instances of the EGA Fuse client on the same machine. #21

Closed
pneerincx opened this issue Aug 3, 2021 · 2 comments
Closed

Comments

@pneerincx
Copy link
Contributor

Dear developers,

We use the EGA Fuse client for access to specific datasets for the Solve-RD project: works great :) This is inside a folder for this project on an HPC cluster. Now we want to do the same for other datasets for another project (Cineca). Obviously that has to be mounted in a different location and with different permissions, but it is on the same HPC cluster. Running a second instance of the EGA Fuse client fails, because port 8080 is already in use. Would it be possible to add another commanline option to specify the port number in addition to mountpoint and credentials, so we can run multiple instances of the EGA Fuse client?
The error we get is this:

$> sudo journalctl -u ega-fuse-client@cineca
   -- Logs begin at Thu 2021-03-18 14:19:34 UTC, end at Mon 2021-08-02 15:20:59 UTC. --
   Aug 02 12:19:39 gearshift systemd[1]: Started EGA Fuse Client for cineca mount..
   Aug 02 12:19:40 gearshift systemd[1]: Stopping EGA Fuse Client for cineca mount....
   Aug 02 12:19:40 gearshift systemd[1]: Stopped EGA Fuse Client for cineca mount..
   Aug 02 12:19:40 gearshift systemd[1]: Started EGA Fuse Client for cineca mount..
   Aug 02 12:19:44 gearshift env[19674]: ,------.  ,----.      ,---.     ,------. ,--. ,--.  ,---.   ,------.    ,-----. ,--.    ,--. ,------. ,--.  ,--. ,--------.
   Aug 02 12:19:44 gearshift env[19674]: |  .---' '  .-./     /  O  \    |  .---' |  | |  | '   .-'  |  .---'   '  .--./ |  |    |  | |  .---' |  ,'.|  | '--.  .--'
   Aug 02 12:19:44 gearshift env[19674]: |  `--,  |  | .---. |  .-.  |   |  `--,  |  | |  | `.  `-.  |  `--,    |  |     |  |    |  | |  `--,  |  |' '  |    |  |
   Aug 02 12:19:44 gearshift env[19674]: |  `---. '  '--'  | |  | |  |   |  |`    '  '-'  ' .-'    | |  `---.   '  '--'\ |  '--. |  | |  `---. |  | `   |    |  |
   Aug 02 12:19:44 gearshift env[19674]: `------'  `------'  `--' `--'   `--'      `-----'  `-----'  `------'    `-----' `-----' `--' `------' `--'  `--'    `--'
   Aug 02 12:19:44 gearshift env[19674]: 2021-08-02 12:19:44.297  INFO 19674 --- [           main] u.ac.ebi.ega.egafuse.EgaFuseApplication  : Starting EgaFuseApplication v2.0.0 on gearshift with PID 19674 (/usr/local/ega-fuse-client/ega-fuse-client-2.0.0.jar started by root in /)
   Aug 02 12:19:44 gearshift env[19674]: 2021-08-02 12:19:44.302  INFO 19674 --- [           main] u.ac.ebi.ega.egafuse.EgaFuseApplication  : No active profile set, falling back to default profiles: default
   Aug 02 12:19:45 gearshift env[19674]: 2021-08-02 12:19:45.980  INFO 19674 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 8080 (http)
   Aug 02 12:19:46 gearshift env[19674]: 2021-08-02 12:19:46.030  INFO 19674 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
   Aug 02 12:19:46 gearshift env[19674]: 2021-08-02 12:19:46.031  INFO 19674 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet engine: [Apache Tomcat/9.0.31]
   Aug 02 12:19:46 gearshift env[19674]: 2021-08-02 12:19:46.323  INFO 19674 --- [           main] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
   Aug 02 12:19:46 gearshift env[19674]: 2021-08-02 12:19:46.324  INFO 19674 --- [           main] o.s.web.context.ContextLoader            : Root WebApplicationContext: initialization completed in 1856 ms
   Aug 02 12:19:47 gearshift env[19674]: 2021-08-02 12:19:47.526  INFO 19674 --- [           main] o.s.s.concurrent.ThreadPoolTaskExecutor  : Initializing ExecutorService 'applicationTaskExecutor'
   Aug 02 12:19:47 gearshift env[19674]: 2021-08-02 12:19:47.735  INFO 19674 --- [           main] o.apache.catalina.core.StandardService   : Stopping service [Tomcat]
   Aug 02 12:19:47 gearshift env[19674]: 2021-08-02 12:19:47.755  INFO 19674 --- [           main] ConditionEvaluationReportLoggingListener :
   Aug 02 12:19:47 gearshift env[19674]: Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
   Aug 02 12:19:47 gearshift env[19674]: 2021-08-02 12:19:47.757 ERROR 19674 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   :
   Aug 02 12:19:47 gearshift env[19674]: ***************************
   Aug 02 12:19:47 gearshift env[19674]: APPLICATION FAILED TO START
   Aug 02 12:19:47 gearshift env[19674]: ***************************
   Aug 02 12:19:47 gearshift env[19674]: Description:
   Aug 02 12:19:47 gearshift env[19674]: Web server failed to start. Port 8080 was already in use.
   Aug 02 12:19:47 gearshift env[19674]: Action:
   Aug 02 12:19:47 gearshift env[19674]: Identify and stop the process that's listening on port 8080 or configure this application to listen on another port.
   Aug 02 12:19:47 gearshift env[19674]: 2021-08-02 12:19:47.760  INFO 19674 --- [           main] o.s.s.concurrent.ThreadPoolTaskExecutor  : Shutting down ExecutorService 'applicationTaskExecutor'
   Aug 02 12:19:47 gearshift systemd[1]: ega-fuse-client@cineca.service: main process exited, code=exited, status=1/FAILURE
   Aug 02 12:19:47 gearshift systemd[1]: Unit ega-fuse-client@cineca.service entered failed state.
   Aug 02 12:19:47 gearshift systemd[1]: ega-fuse-client@cineca.service failed.

This is correct as we already have another instances of the EGA Fuse client running for Solve-RD:

$> sudo netstat -tulpn | grep 8080
   tcp6       0      0 :::8080                 :::*                    LISTEN      20593/java

$> ps aux | grep 20593
   egon      3465  0.0  0.0 112808   972 pts/56   S+   15:21   0:00 grep --color=auto 20593
   root     20593  0.2  0.2 9856520 575260 ?      Ssl  12:19   0:31 /apps/software/AdoptOpenJDK/8u222b10-hotspot/bin/java -Xmx4g -jar /usr/local/ega-fuse-client/ega-fuse-client.jar -cf /etc/ega-fuse-client.d/solve_rd.cf -m /groups/umcg-solve-rd/prm03/ega-fuse-client
@jorizci
Copy link
Contributor

jorizci commented Aug 17, 2021

@pneerincx check the newest version, we have dropped the web-server and will not require to reserve any port. Regards.

@jorizci jorizci closed this as completed Aug 17, 2021
@pneerincx
Copy link
Contributor Author

@jorizci Thanks, we'll update to 2.1.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants