Code Monkey home page Code Monkey logo

docker-archiva's People

Contributors

mattmatician avatar sandr0x00 avatar tkent avatar tmeneau avatar volxxx avatar x-lhan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-archiva's Issues

Default admin user credentials

What is the default admin username and password? When I try creating a new user with username 'admin' it says user already exists. However, nowhere in the documentation, the password is mentioned.

Running from example seems to hang on "Loading"

After changing default ports from 8080 to 7777 and 8443 to 8888, and then using respective -p 7777:8080 -p 8888:8443 calls, it seems to hang on a "loading" statement without doing anything else. Are you sure there aren't any additional steps that I need to take to get it up and running?

Neither request log nor archiva log seem to expose any exceptions when making a request to ip:7777/ page via HTTP protocol.

SSL Connection issue while connecting to mysql database

Describe the bug
while using useSSL=true, unable to connect to database.

To Reproduce
Steps to reproduce the behavior:

  1. added parameters MYSQL_JDBC_PARAMS = characterEncoding=UTF-8&dontTrackOpenResources=true&holdResultsOpenOverStatementClose=true&useFastDateParsing=false&useSSL=true&useUnicode=true&autoReconnect=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC
  2. mounted db ca.pem to /certs

Environment Details
Docker Version: 20.10.9
Host OS: Centos 8
Image Version: 2.2.9

It's not possible to import bought certificates with key

What is the path to import certificate with the corresponding key?

It seems P12 bundles needs to be created for this kind of import but the bash script only imports crt and pem files.

What is the recommended way of doing this?

validation_mail: user and password set via env variable

In the moment the user and password cannot be set through env variables.

<New id="validation_mail" class="org.eclipse.jetty.plus.jndi.Resource">
    <Arg>mail/Session</Arg>
    <Arg>
      <New class="org.eclipse.jetty.jndi.factories.MailSessionReference">
        <Set name="user"></Set>
        <Set name="password"></Set>
        <Set name="properties">
          <New class="java.util.Properties">
            <Put name="mail.smtp.host"><Env name="SMTP_HOST" default="localhost"/></Put>
            <Put name="mail.smtp.port"><Env name="SMTP_PORT" default="25"/></Put>
          </New>
        </Set>
      </New>
    </Arg>
  </New>

Is it possible to change the code, that the user and password can set with env values?

Permission denied: Cannot create '/archiva-data' directory when using volume option

Using the command from the example:

docker run --name archiva -h archiva -p 443:8443\                 
  -e SSL_ENABLED=true -v /somepath/archiva_mnt:/archiva-data xetusoss/archiva

or

docker run --name archiva -h archiva -p 8080:8080 -v /archiva_mnt:/archiva-data xetusoss/archiva

Results in:

mkdir: cannot create directory ‘/archiva-data/temp’: Permission denied
chown: cannot access ‘/archiva-data/temp’: No such file or directory
Installing data
cp: cannot create directory ‘/archiva-data/data’: Permission denied
chown: cannot access ‘/archiva-data/data’: No such file or directory
Installing logs
cp: cannot create directory ‘/archiva-data/logs’: Permission denied
chown: cannot access ‘/archiva-data/logs’: No such file or directory
Installing repositories
mkdir: cannot create directory ‘/archiva-data/repositories’: Permission denied
chown: cannot access ‘/archiva-data/repositories’: No such file or directory
Installing conf
cp: cannot create directory ‘/archiva-data/conf’: Permission denied
chown: cannot access ‘/archiva-data/conf’: No such file or directory
Generating self-signed keystore and certificate for HTTPS support(Dst: /archiva-data/ssl/keystore)
mkdir: cannot create directory ‘/archiva-data/ssl/’: Permission denied
keytool error: java.io.FileNotFoundException: /archiva-data/ssl/keystore (No such file or directory)
mv: cannot move ‘jetty.xml’ to ‘/archiva-data/conf/jetty.xml’: No such file or directory
Running Apache Archiva...
FATAL  | wrapper  | Unable to resolve the full path of the configuration file, /opt/archiva/conf/wrapper.conf: No such file or directory

I see there is also a comment about this https://hub.docker.com/r/xetusoss/archiva/
Is there a workaround or we have to set permissions to that folder every time?

Support custom context path with environment variable

Hello,
Would it be possible to add to ability to change the context path of Archiva (ex:
/archiva instead of default / context path). It would be useful when Archiva is being deployed behing a reverse proxy sharing the domain name with other applications.
ex: https://example.org/archiva

The context path can be edited here: contexts/archiva.xml

A possibility could be to add a new environment variable such as:
ARCHIVA_SERVER_PATH: '/archiva'
with default value set to '/'

Thanks

Adrien

Artifacts are no longer stored under /archiva-data

Describe the bug
Artifacts are no longer stored under /archiva-data, so if a docker volume is used to make the archiva data persistent, it does not include the actual artifacts, which will disappear when the container is restarted. Old artifacts are still under archiva-data but are not found by archiva, and new artifacts are not kept between restarts.

To Reproduce
Given a pre v2.2.3 container with a volume which is mapped to /archiva-data in the container, and which has artifacts which have been deployed (ie a managaed repository, not a remote one).

  • Upgrade from pre v2.2.3 to v2.2.3
  • Browse to any artifact which has been deployed to archiva
  • The index will look correct, but all artifacts (jars, pom etc) will give "not found"

Alternatively:

  • Deploy an artifact
  • Attach to the container and run bash, eg:
    docker exec -ti /bin/bash
  • cd /archiva/repositories/internal
  • note that the artifact is in this location rather than /archiva-data/repositories/internal

Environment Details
Docker Version: 18.06.1-ce
Host OS: Oracle Enterprise Linux 7
Image Version: v2.2.3

KEYSTORE passcode issue.

I run this command:

docker run --name archiva -h archiva -d -p 443:8443 -e SSL_ENABLED=true -e KEYSTORE_PASS=“passcode2017#” -v /opt/archiva:/archiva-data xetusoss/archiva

However, I get this error:

Caused by: java.io.IOException: Keystore was tampered with, or password was incorrect
INFO | jvm 5 | 2018/03/08 23:58:32 | at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:780)
INFO | jvm 5 | 2018/03/08 23:58:32 | at sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:56)
INFO | jvm 5 | 2018/03/08 23:58:32 | at sun.security.provider.KeyStoreDelegator.engineLoad(KeyStoreDelegator.java:224)
INFO | jvm 5 | 2018/03/08 23:58:32 | at sun.security.provider.JavaKeyStore$DualFormatJKS.engineLoad(JavaKeyStore.java:70)
INFO | jvm 5 | 2018/03/08 23:58:32 | at java.security.KeyStore.load(KeyStore.java:1445)
INFO | jvm 5 | 2018/03/08 23:58:32 | at org.eclipse.jetty.util.security.CertificateUtils.getKeyStore(CertificateUtils.java:55)
INFO | jvm 5 | 2018/03/08 23:58:32 | at org.eclipse.jetty.util.ssl.SslContextFactory.getKeyStore(SslContextFactory.java:1053)
INFO | jvm 5 | 2018/03/08 23:58:32 | at org.eclipse.jetty.util.ssl.SslContextFactory.loadKeyStore(SslContextFactory.java:1013)
INFO | jvm 5 | 2018/03/08 23:58:32 | at org.eclipse.jetty.util.ssl.SslContextFactory.doStart(SslContextFactory.java:264)
INFO | jvm 5 | 2018/03/08 23:58:32 | at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
INFO | jvm 5 | 2018/03/08 23:58:32 | at org.eclipse.jetty.server.ssl.SslSelectChannelConnector.doStart(SslSelectChannelConnector.java:612)
INFO | jvm 5 | 2018/03/08 23:58:32 | at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
INFO | jvm 5 | 2018/03/08 23:58:32 | at org.eclipse.jetty.server.Server.doStart(Server.java:293)
INFO | jvm 5 | 2018/03/08 23:58:32 | at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
INFO | jvm 5 | 2018/03/08 23:58:32 | at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1274)
INFO | jvm 5 | 2018/03/08 23:58:32 | at java.security.AccessController.doPrivileged(Native Method)
INFO | jvm 5 | 2018/03/08 23:58:32 | at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1197)
INFO | jvm 5 | 2018/03/08 23:58:32 | ... 13 more
INFO | jvm 5 | 2018/03/08 23:58:32 | Caused by: java.security.UnrecoverableKeyException: Password verification failed
INFO | jvm 5 | 2018/03/08 23:58:32 | at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:778)
INFO | jvm 5 | 2018/03/08 23:58:32 | ... 29 more

When I goto /opt/archiva/ssl/keystore and type this command:

keytool -list -v -keystore keystore -storepass passcode2017#

I then get a list of certificates. So I know the passcode is correct.
Not sure the problem. Its almost like its still using the default "changeit" password. Advice?

Hello, I'm new to docker. How easy would it be to add the $PORT env variable as a configuration parameter ? Thanks

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Error creating bean with name 'authenticationInterceptor#rest'

Describe the bug
Container randomly throwing errors below.

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationInterceptor#rest': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.apache.archiva.redback.users.UserManager org.apache.archiva.redback.rest.services.interceptors.AuthenticationInterceptor.userManager; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userManager#archiva': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.apache.archiva.admin.model.runtime.RedbackRuntimeConfigurationAdmin org.apache.archiva.web.security.ArchivaConfigurableUsersManager.redbackRuntimeConfigurationAdmin; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'redbackRuntimeConfigurationAdmin#default': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private java.util.List org.apache.archiva.admin.repository.AbstractRepositoryAdmin.auditListeners; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'auditListener#metadata': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.apache.archiva.metadata.repository.RepositorySessionFactory org.apache.archiva.audit.MetadataAuditListener.repositorySessionFactory; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'repositorySessionFactory#cassandra': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.apache.archiva.metadata.repository.MetadataResolver org.apache.archiva.metadata.repository.cassandra.CassandraRepositorySessionFactory.metadataResolver; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'metadataResolver#default': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.apache.archiva.metadata.repository.storage.RepositoryStorage org.apache.archiva.metadata.repository.DefaultMetadataResolver.repositoryStorage; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'repositoryStorage#maven2': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.apache.archiva.admin.model.remote.RemoteRepositoryAdmin org.apache.archiva.metadata.repository.storage.maven2.Maven2RepositoryStorage.remoteRepositoryAdmin; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'remoteRepositoryAdmin#default': Invocation of init method failed; nested exception is org.apache.archiva.admin.model.RepositoryAdminException: Cannot forcefully unlock a NativeFSLock which is held by another indexer component: /archiva-data/data/remotes/central/.index/write.lock

To Reproduce
Randomly

Environment Details
Docker Version: Kubernetes 1.14.4_1527
Host OS: OpenJDK8
Image Version: v2.2.4

Container does not start as expected (HTTP ERROR 404)

Describe the bug
I expected a web UI after the container start.

To Reproduce
Steps to reproduce the behavior:

  1. docker pull xetusoss/archiva
  2. docker run --name archiva -p 8080:8080 xetusoss/archiva
  3. See error in browser:

HTTP ERROR 404
Problem accessing /auth/. Reason:

Not Found
Powered by Jetty://

Environment Details
Docker Version: 19.03.8
Host OS: Ubuntu 20.04.1 LTS

Write migration guide to reposilite

Since Archiva development continues at a snail pace, I think it's time to slowly sunset this repo. A great self-hosted alternative has shown up reposilite and seems to have great community support. If I'm contributing to open source in this area, my time is better spent helping there.

Before winding this down, we should add a clear migration guide from Archiva to Reposilite. And, we should give folks lots of time to move off of this image and make the switch. I know many small shops have been using this image for 8+ years now.

Return code is: 405, ReasonPhrase: HTTP method PUT is not supported by this URL.

Hi,
I set up the archiva container and now I am using archiva for the first time. I can upload file manually over the web interface, however I am struggling using maven. I tried out different configuations and I am still trying to figure out the maven configuration for deployment to the archiva container. I've changed the project pom (as ) to point to the archiva server, and I've set up the credentials for a new archiva user with the role manager for the internal and snapshot repositories in my settings.xml. I am still getting the error "PUT method is not supported." I've tried out dav (no change), and I've searched around a lot, and it'd be of great help to get some more pointers on how to resolve this. I am pasting the error below to show the problem:

Cheers!
Ben.

[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ common ---
[INFO] Installing /Users/benjamin/common/target/common-0.7-SNAPSHOT.jar to /Users/benjamin/.m2/repository/com/company/common/0.7-SNAPSHOT/common-0.7-SNAPSHOT.jar
[INFO] Installing /Users/benjamin/common/pom.xml to /Users/benjamin/.m2/repository/com/company/common/0.7-SNAPSHOT/common-0.7-SNAPSHOT.pom
[INFO]
[INFO] --- maven-deploy-plugin:2.7:deploy (default-deploy) @ common ---
Downloading: http://org-risk-jenkins-01.dev.company.com:8080/archiva/repository/snapshots/com/company/common/0.7-SNAPSHOT/maven-metadata.xml
Uploading: http://org-risk-jenkins-01.dev.company.com:8080/archiva/repository/snapshots/com/company/common/0.7-SNAPSHOT/common-0.7-20170403.101523-1.jar
Uploading: http://org-risk-jenkins-01.dev.company.com:8080/archiva/repository/snapshots/com/company/common/0.7-SNAPSHOT/common-0.7-20170403.101523-1.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.764 s
[INFO] Finished at: 2017-04-03T11:15:23+01:00
[INFO] Final Memory: 26M/263M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project common: Failed to deploy artifacts: Could not transfer artifact com.company:common:jar:0.7-20170403.101523-1 from/to snapshots (http://org-risk-jenkins-01.dev.company.com:8080/archiva/repository/snapshots/): Failed to transfer file: http://org-risk-jenkins-01.dev.company.com:8080/archiva/repository/snapshots/com/company/common/0.7-SNAPSHOT/common-0.7-20170403.101523-1.jar. Return code is: 405, ReasonPhrase: HTTP method PUT is not supported by this URL. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Add support for ARM 64

Describe the solution you'd like
Support for Raspberry PI's, I'm using a Pi 4 running the 64-bit OS, Support for ARM 64 would allow me to run this on my Pi Cluster. Java 8 is already support as you can see Here

Describe alternatives you've considered
I used to run this image on a standard PC until the motherboard died to thought I would try out a Pi Cluster instead.

Archiva 2.2.10

Hello,

are there any plans for an update to Archiva 2.2.10?

Thanks in advance!

BR

while trying to push the artifact from jenkins(CI Job) to nexus.Error:"HTTP method PUT is not supported by this URL".

Return code is: 400, ReasonPhrase: HTTP method PUT is not supported by this URL.
I have been trying multiple ways to resolve this error but i am unable to..
-Checked the location for the repository
-Added correct URL ...
But unable to resolve the error..
Can anyone suggest how can i get rid of this?

05:27:37 [samplegradle-develop-ci] $ /var/jenkins_home/tools/hudson.plugins.gradle.GradleInstallation/gradle/bin/gradle upload
05:27:38 Starting a Gradle Daemon (subsequent builds will be faster)
05:27:47 > Task :compileJava
05:27:47 > Task :processResources NO-SOURCE
05:27:47 > Task :classes
05:27:47 > Task :jar
05:27:49 > Task :javadoc
05:27:49 > Task :javadocJar
05:27:49 > Task :sourcesJar
05:27:53
05:27:53 > Task :uploadArchives
05:27:53 Could not transfer artifact com.xx.mule.dip.integration:simple-project:jar:2.0-20190711.092752-1 from/to remote (https://repository.xxxxx.com): Failed to transfer file: https://repository.xxx.com/com/lh/mule/dip/integration/simple-project/2.0-SNAPSHOT/simple-project-2.0-20190711.092752-1.jar. Return code is: 400, ReasonPhrase: HTTP method PUT is not supported by this URL.
05:27:55 Could not transfer artifact com.lh.mule.dip.integration:simple-project:pom:2.0-20190711.092752-1 from/to remote (https://repository.xxxxxxx.com): Failed to transfer file: https://repository.xxxxxx.com/com/lh/mule/dip/integration/simple-project/2.0-SNAPSHOT/simple-project-2.0-20190711.092752-1.pom. Return code is: 400, ReasonPhrase: HTTP method PUT is not supported by this URL.

Adding port 8443 to port list

I am trying to get Archiva to run with ssl. I have a working stand alone Archive running but thcontinerized version if blocking port 8443. It looks like the docker-compose.yaml is missing a definition for this port. I can share the wrapper.conf, jetty.conf, and jetty-ssl.conf files with you in return for help on this issue.

How to set rest.baseUrl if behind proxy.

Hi. I am new to archiva. I just want to set rest.baseUrl in archiva configuration. the only file i saw this option was in /archiva-data/conf/archiva.xml but i have noticed that this file is being recreated each time new container is created. My question is how does the container works. how are these configurations created at runtime. what is jetty.xml and where can I set rest.baseUrl to be a permanent change. Thanks.

can't create directory '/archiva-data/data': Permission denied

Using the command :

docker run --name archiva -v /volume1/docker/archiva/data:/archiva-data -p 62547:8080 xetusoss/archiva:v2

Results in:

WARNING: SMTP_HOST not set, Archiva cannot send emails!
WARNING: JVM_MAX_MEM has been depreciated and is no longer used!
Creating empty directory for data...
mkdir: can't create directory '/archiva-data/data': Permission denied

I see there is an old issue about the permissions : #3

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.