opensourceBIM / BIMserver

The open source BIMserver platform
GNU Affero General Public License v3.0
1.56k stars 610 forks source link

Unable to install plugins #1329

Open felixh85 opened 1 month ago

felixh85 commented 1 month ago

Hi,

I want to install a new instance of the bimserver in the tomcat of one of our servers. So i downloaded the latest bimserver WAR file (bimserverwar-1.5.185.war). I added it to the Tomcat 9 running on the server and accessed the configuration of the bimserver. After pressing "Setup" at the end, I get an error message for the installation of the plugins: No plugin bundle available for your version of BIMserver: org.opensourcebim.bimviews This is just an example. I get the same error message for the other plugin.

Checking the logs, I find the following error:

2024-10-08 14:42:26,327 WARN [DefaultMetadataResolver-0-0] o.e.a.i.i.DefaultUpdateCheckManager [TrackingFileManager.java:88] Failed to create parent directories for tracking file /.m2/repository/org/opensourcebim/bimviews/resolver-status.properties
2024-10-08 14:42:26,765 WARN [DefaultMetadataResolver-0-2] o.e.a.i.i.DefaultUpdateCheckManager [TrackingFileManager.java:88] Failed to create parent directories for tracking file /.m2/repository/org/opensourcebim/bimviews/resolver-status.properties
2024-10-08 14:42:26,767 WARN [DefaultMetadataResolver-0-1] o.e.a.i.i.DefaultUpdateCheckManager [TrackingFileManager.java:88] Failed to create parent directories for tracking file /.m2/repository/org/opensourcebim/bimviews/resolver-status.properties

From checking the forum, I found that the .m2 folder is missing and should be created. I did that. I created the path /.m2/repository/ and gae it full rights and assigned the owner to tomcat. Still this does not help. Can someone please help me with this issue. Thanks.

hlg commented 1 month ago

Assuming you are on a Linux system. The .m2 folder will be created in the user home of the user running Tomcat and must be writable. Check for the user home with /etc/passwd. It looks like in your case the home of the user running Tomcat is the root folder /. Make sure Tomcat is not accidentially running with a different user from the one you assume (e.g. ps aux | grep tomcat). If you run Tomcat with a security manager, also check the policies.