Configure cloud-controller.xml in Stratos - openstack

I have configure the cloud-controller.xml file before I start the stratos server in order to support OpenStack. The order of file given to me was stratos-server/repository/conf/cloud-controller.xml.
But, there is no folder called stratos-server, but there are about 12 files in different folders. Can anyone help me to figure out which file I have to configure and how?

I'm assuming you're using Apache Stratos 4.0.0, which earlier was WSO2 Stratos.
If you're using stratos-installer[1], then you only need to provide the OpenStack details in INSTALL_DIR/stratos-installer/conf/setup.conf file. The installer will configure cloud-controller.xml along with the other files using the information given in the setup.conf file.
However, if you're just extracting the Stratos zip file and configuring the files, the the cloud-controller.xml is in EXTRACTED_LOCATION/repository/conf/ folder.
[1] - https://cwiki.apache.org/confluence/display/STRATOS/4.0.0+Automated+Product+Configuration

Related

Artifactory configured to store binaries in two places mistakenly(?) and how to get back to one

Have both a storage.properties and a binarystore.xml, is it possible that Artifactory is picking up both these and storing the binaries with in the Derby (as specified in the storage.properties) and in the file-system (as specified in the binarystore.xml)?
Certainly seems so based on disk usage. Would a solution be to just remove the storage.properties, restart and Artifactory would then only use the file-system?
Version 6.17.0 (Pro)
binarystore.xml content:
<config version="v1">
<chain template="file-system"/>
<provider type="file-system" id="file-system">
<binariesDir>/some/path/active/data/filestore</binariesDir>
</provider>
</config>
storage.properties content:
type=derby
url=jdbc:derby:{db.home};create=true
driver=org.apache.derby.jdbc.EmbeddedDriver
These are completely two different files for two different configurations. The functionality of the binarystore.xml file is to define the location where you want to store the uploaded artifacts/binaries.
Whereas the storage.properties defines the database the Artifactory needs to connect/use (which is by default derby). However, please be informed of the usage of storage.properties file has been deprecated a long time back in 4.X version of Artifactory and replaced by db.propertiies file.
You can rename the storage.properties and restart the service and it shouldn't cause any issue. Do not remove any data from $Artiifactory_home/data/derby - internal Derby writes all data here.
From Artifactory version 4.6 and above, Artifactory do not use storage.properties file to get the binarystore configuration, instead it use binarystore.xml file so you can take a backup of storage.properties file and remove it and perform a restart. Also, please make sure you have correct details in db.properties file. As Artifactory will read the database configuration from db.properties file.

A .jar file does not run after building it

Actually, I'm trying to add new language to Streama Media Server. I downloaded source code, added new language file (as guided here). After that, I want to build a jar with that project, I build it with IntelliJ Idea 2021.1 (here is how I did). So, When I run that jar file (in Ubunt 20.04), it fails and gives this error: Screenshot
When you have made adjustments to the source code, it is likely that you will want to create a new .jar file and deploy it on your server. For this, you can use a simple command:
# for unix based systems
**./gradlew assemble**
# for windows
**./gradlew.bat assemble**
This will create 2 new .jar files under build/libs,
streama-{version}.jar
streama-{version}.jar.original
all you will need is the streama-{version}.jar.
This file is an executable, so you can just copy it into your deployment directory / your server and start it as usual.

Can I use non-canonical share folder paths?

I am working under linux/unix (ubuntu centos darwin)
I often build from source and install my biotools folders in a non-canonical place in order to have full write access to that place for all users and also to avoid overwriting/conflicting with important files placed by the OS in /usr/... and /usr/local/...
I put the tool build folders in /opt/biotools and alias all exe files in /opt/biotools/bin (which is in my PATH)
Now some apps need to access dependencies or libraries usually written in /usr/local/share or /usr/local/lib, ...
Is it possible to add such folders like /opt/biotools/share, /opt/biotools/lib, ... and have the system find them?
Should I add these folders to the PATH?
Thanks for your help

Missing org.sonatype.nexus.cfg file, how to proceed?

Nexus OSS 3.7.1-02 running on RHEL 7. I have several repositories on it and I am able to publish and retrieve packages and jars, therefore, I presume that the setup is working correctly.
In the official documentation, I am referring to the 'Serving SSL Directly' section which uses the embedded Jetty server for serving https connections.
I am unable to find the file '$install-dir/etc/org.sonatype.nexus.cfg' mentioned in the documentation and there are a couple of config. around this file. I executed a find command for that file on the root directory but the file doesn't exist at all.
Another confusing step is:
Edit $install-dir/etc/org.sonatype.nexus.cfg. Change the nexus-args
property comma delimited value to include
${karaf.etc}/jetty-https.xml.
Now there's neither any directory under the 'karaf' directory nor does the file exist there but I found one jetty-https.xml file under nexus-3.7.1-02/etc/jetty.
How shall I proceed?
That isn't the official documentation, it's the documentation for "3.0". The official documentation is here: https://help.sonatype.com/display/NXRM3 (unversioned).
Specifically, I suspect you're looking for this: https://help.sonatype.com/display/NXRM3/Configuring+SSL.
Anyway, that file was replaced in an older version.
It now resides in ${data-dir}/etc/nexus.properties.

TFS 2015 Build vNext: Upload Files via WebDAV?

We want to upload files to a WebDAV-Folder and tried to use the "Windows Machine File Copy"-task for that (this uses ROBOCOPY inside). But we donĀ“t see any possibility to enter the destination folder in the right form.
1. We tried
\\our.website.de#SSL\DavWWWRoot\remote.php\webdav\
and
2. we also mounted this location as a network drive first and tried to use the drive letter,
but none of these attempts succeeded.
Is "Windows Machine File Copy" the right type of task for that or is there any custom task out there that accomplishes what we need?
Thx...
You should separate specified Machines and the folder path. Do not use it together.
Machines:
Example: dbserver.fabrikam.com, dbserver_int.fabrikam.com:5986,192.168.34:5986
Folder Path:
The folder on the Windows machine(s) to which the files will be
copied.
Example: C:\FabrikamFibre\Web
More detail info please refer this link: Deploy: Windows Machine File Copy

Resources