Artifactory Migration

Hello,

I’m trying to migrate from Artifactory to Nexus 3.30.1; I’ve found instructions here which details to create a repository for the old-releases and this will create a folder sonatype-work/nexus/storage/old-releases. However upon creation the storage directory simply isn’t there:

benn@serena:/opt/sonatype-work/nexus3$ ls -al
total 76
drwxrwxrwx 14 benn benn 4096 May 21 18:21 .
drwxr-xr-x 3 benn benn 4096 May 21 15:58 …
drwxrwxrwx 3 benn benn 4096 May 21 16:30 blobs
drwxrwxrwx 328 root root 12288 May 21 18:21 cache
drwxrwxrwx 6 benn benn 4096 May 21 16:30 db
drwxrwxrwx 3 benn benn 4096 May 21 16:30 elasticsearch
drwxrwxrwx 3 benn benn 4096 May 21 16:30 etc
drwxrwxrwx 2 benn benn 4096 May 21 16:30 generated-bundles
drwxrwxrwx 2 benn benn 4096 May 21 16:30 instances
-rwxrwxrwx 1 benn benn 4 May 21 18:21 karaf.pid
drwxrwxrwx 3 benn benn 4096 May 21 16:30 keystores
-rwxrwxrwx 1 benn benn 21 May 21 18:21 lock
drwxrwxrwx 4 benn benn 4096 May 24 18:08 log
drwxrwxrwx 3 benn benn 4096 May 21 15:58 orient
-rwxrwxrwx 1 benn benn 5 May 21 18:21 port
drwxrwxrwx 2 benn benn 4096 May 21 16:30 restore-from-backup
drwxrwxrwx 11 benn benn 4096 May 22 18:27 tmp

I thought it could be a permissions thing but as you can see I have made the entire directory writable for now and it is still not appearing. Does anyone have any ideas as to why the directory is not there?

Cheers,

Neil

Hello,

I discovered the instructions were for Nexus 2 and we are on nexus 3! So I found a few bash scripts that use curl to deploy the artifacts and it works!

Use this link

Regards,

Neil

You can also try the import task which can do some importing from artifactory repositories (though it isn’t mentioned explicitly in the docs, we have some handling to ignore special artifactory files). Repository Import