JFrog Artifactory could not start artdb.db_properties' doesn't exist - artifactory

I've installed JFrog Artifactory on linux platform, configured to use an external mysql server.
I could see tables being created how ever the artifactory service throws page 500 exception.
looking at the catalina.out states that
Caused by: org.artifactory.storage.StorageException: Failed to load db properties from database
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'artdb.db_properties' doesn't exist
need help guys!! how do i get it resolved..

Connect to another database:
create new db in mysql
Correct system.yaml
Restart artifactory

Related

Artifactory to Artifactory remote repos

i have 2 Artifactory server and have configured ubuntu repos.
One off the artifactorys goes to internet to ubuntu and the other
artifactory connects to the artifactory with internet access.
I have the following problem. From my local artifactory i get always the error 404.
I cant fetch the metafile (Packages) from the ubuntu repo.
But if i reconfigure my remote repo and set --> store artifacts locally all seems fine.
I want store the artifacts locally. My local artifactory should ask the artifactory with internet access and should get all files from the remote artifactory.
Have anyone a idea how to solve my problem?
best regards
I assume you are trying to set up a smart remote repository with Artifactory. Refer to this wiki and set up the smart remote repository, basically, you should be adding the URL in your local Artifactory's remote repository as http://ARTIFACTORY_URL/ubuntu-remote/ and make sure the "store artifacts locally"is checked so that this remote repository can able to index the artifacts.

JFrog artifactory 7.4.3 integration with mssql issue

I have installed the JFrog Artifactory OSS 7.4.3 on windows.It is working fine with default DB Derby.
Tried to integrate with MSSQL server. Configured DB url, username and password properly. when I start the service, it created the required tables in the database.
But application is throwing error in artifactory-service.log file as The DB driver for mssql was not found. Copy the relevant DB driver to '$JF_PRODUCT_HOME/var/bootstrap/artifactory/tomcat/lib'.
I have downloaded different versions of mssql jdbc drivers supported for jdk11. still facing the same issue.
JFrog's documentation is wrong! Following their documentation (on Windows), Artifactory was unable to connect to SQL server when placing the MSSql JDBC driver inter $JF_PRODUCT_HOME/var/bootstrap/artifactory/tomcat/lib.
So I went sleuthing and found where they put all the other SQL server dialect libraries: $JF_PRODUCT_HOME/app/artifactory/tomcat/lib. Copy the MSSQL JDBC JAR file there and you'll be good to go!

I am trying to connect a local artifactory running on a laptop in docker to a remote artifactory on AWS behind an ELB

I have set up Artifactory OSS Version 6.9.1 on an AWS instance behind an ELB and have been successfully deploying builds to it from GitLab CI/CD. I am now trying to set up a local Artifactory OSS Version 6.10.0 on my laptop so that I can develop builds locally before sharing with the team.
My local artifactory connects perfectly to JCentre and I can browse that repository.
My gradle build will happily connect to the AWS hosted artifactory at http://{URL}/artifactory and resolve my dependencies.
When I connect a remote repository with http://"{URL}/artifactory I get a 500 Internal Error message on Test. If I take off the /artifactory it says it has connected successfully but when I try to browse the remote repo it is empty.
I read Connect one Artifactory to another Artifactory and followed the instructions to edit the json configuration and make the remote repository a smart repository here https://www.jfrog.com/confluence/display/RTF/Smart+Remote+Repositories.
It now has the smart repository image but still cannot be browsed.
Gradle still cannot resolve dependencies with the local artifactory using the remote-repo name.
As stated in the Smart Remote Repository documentation, you should configure the remote repository URL with the following structure:
http://ARTIFACTORY_URL/api/package-type/repository-key
So if you have a Gradle repository named "gradle-test", the URL should be:
http://ARTIFACTORY_URL/api/gradle/gradle-test
Hope this helps.
In the end it turned out to be ridiculously simple. When setting up the remote repository the key needs to be in the url as well as the key field.
So for a repo with a repository key 'fractal' the connection URL is counter-intuitively http:///artifactory/fractal

'authenticationrequired' error on accessing debian repository

I am trying to create a remote repository with Artifactory to a Debian mirror (http://ftp.uni-stuttgart.de/debian/) repository. It doesn't matter which one I try, I always get the same error message:
Connection failed: Error 407: authenticationrequired
A Artifactory-wide proxy is configured and already working for NuGet, Maven and NPM package repositories.
Accessing the above mentioned repository via browser does not require any authentication.
What could be the reason for that?
Problem solved: Only connections using HTTPS are allowed. Perhaps as for accessing the Artifactory server itself HTTPS is used already, no degredation of communication channel is allowed.

Repository.RemoveUntrackedFiles() : access denied

Windows Server 2008
McAfee Agent v4.8.0.1938
no indexing service
ASP.NET C# app
libgit2sharp v0.21.0.176 NuGet package
My ASP.NET app uses libgit2sharp Repository.Clone() method to clone a GitHub repo to local repo
Running my app tests on my local workstation, I perform various operations against this repo with no issues.
However, once my app is deployed to a remote server and hosted inside IIS , I'm encountering what appear to be either permissions or locking issues.
Repository.RemoveUntrackedFiles()
Exception thrown :
Failed to rename lockfile to 'c:/github/my-org/my-repo/.git/index':
Access is denied.
If I re-attempt the operation it again fails but this time with a different exception :
The index is locked. This might be due to a concurrent or crashed
process.
Subsequent attempts ( no matter how many ) fail with this same exception.
Issue is not resolved with iisreset or reboot.
If I re-create the local repo by going to cli and deleting local repo folder and then running git clone, I'm now able to successfully execute various git operations until I again attempt Repository.RemoveUntrackedFiles() at which point the above error-sequence re-occurs.
EDIT : I'm also encountering similar issues with
Repository.Checkout()
Exception thrown :
Failed to rename lockfile to 'c:/github/my-org/my-repo/.git/index':
Access is denied.
I then go to the server and from the command line attempt git checkout master :
c:\github\opentable\service-ot-frontdoor-config>git checkout master
fatal: Unable to create 'c:/github/opentable/service-ot-frontdoor-config/.git/index.lock': File exists.
If no other git process is currently running, this probably means a
git process crashed in this repository earlier. Make sure no other git
process is running and remove the file manually to continue.

Resources