New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to retrieve remote metadata. Return code is: 503 , ReasonPhrase:Service Unavailable #38
Comments
503 is given when the StorageService, the one doing all the work, is not present. It normally is not present when the database is not configured. You can check on the OSGi console using:
and then "comp " ... where is the ID found from the "ls" command e.g.:
If the service is up and if now, why. |
I receive the same output like yours. Maybe also a docker problem? |
Not that I am aware of ... which version of Package Drone are you running? This should be in the lower right of each page. |
I am preparing a bug fix release right now, which also fixes a bug in the maven adapter. Although this would cause a 500, instead of a 503. This should be done in about an hour. I will let you know when the new docker version is available. |
Ok, so after I did:
I had the new version (0.1.4) and the problems which I had with maven were gone. |
I used Package Drone 0.1.2.20150212-1156. The newer version Package Drone 0.1.4.20150217-1154 doesn't solve the problem. Please tell me where do I have to call maven deploy? I have the following projects and build with tycho:
There are also some testProjects in your repository. With which project can I test? |
Hm ... ok, so you have to deploy the bundles and features. Not the target platform and not the repository/product. Using the test projects, a simply
|
Okay.. So I added a new group, then I added a key to it and finally added the group to the channel. In settings.xml I set the deploy key 510E8BE7-0CED-4A10-907F-DBDF65628216 (see screenshot). However it still fails with error 503. The link http://localhost:8080/maven/p2/ in browser shows that there the p2 repository is empty- i also changed the parent pom like this:
settings.xml:
|
Maybe you should hide the black id's from the key list and add a new column with the access key. I fixed this issue, but now I get error 401: Unauthorized. Are you sure that there should be no username in the settings? |
Yes, I guess this whole UI needs a bit of work. The token can either be put as username or password. I remember having an issue with Maven, running an external Maven setup from inside Eclipse caused troubles. While the embedded version worked. I will try to check this. |
Ok, so plain maven seems to use Aether works as expected while the Basic Connector does not authenticate properly. sigh I need to check this, sorry! |
Ok, I found out what goes wrong. Plain Maven uses Using Maven embedded in Eclipse works though, since they use Aether which just takes what was provides as username and password. So I will change Package Drone that the default username will always be "deploy". |
This change should provide a better view on how deploy keys are used with Maven.
notify the user when there are not deploy groups created or assigned.
Is the requirement of the deploy username present in the debian package version 0.1.4 (installed as of just now)? I have followed a similar process, and have an auth failure when doing mvn deploy (username is deploy and password is the key). Edit: I have used my brain and done a differential diagnosis by doing the deploy within eclipse, which works, hence I infer not. |
No, this handling is not present in 0.1.4. It will be in 0.1.5! I hope I can release this version today. But I don't want to make any promises, since I need to finish something else first. |
Thanks! |
Ok, so the release (0.1.5) is out. Docker images are updated, as are the YUM and APT repos. So with a:
I have Package Drone 0.1.5 running to which I can deploy using:
|
So I will close this. If it still causes problems, please re-open it. I guess I owe you some 🍻 ;-) |
I'm really happy to help. The project is really promising. I'll try the fix tomorrow. |
So I changed my settings.xml and the pom file like suggested. The command mvn deploy still doesn't work (see error). I have to explicit tell where to deploy the artifact using the suggested from you command.
Error by using maven deploy:
|
So it works with the "altDeploymentRepository" argument, but not with the settings.xml? This could only mean that there is something wrong in the configuration. At least maven does not seem to find the server credentials. |
Sorry. It was my mistake. |
So I am just glad it wasn't me 😉 |
I created a new channel named p2 and added all possible aspects (First tried these from the tutorial, then added all of them). When I try to deploy an artifact I receive the following error:
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project parent: Failed to retrieve remote metadata de.dentrassi:parent:1.0.0-SNAPSHOT/maven-metadata.xml: Could not transfer metadata de.dentrassi:parent:1.0.0-SNAPSHOT/maven-metadata.xml from/to p2 (http://localhost:8080/maven/p2): Failed to transfer file: http://localhost:8080/maven/p2/de/dentrassi/parent/1.0.0-SNAPSHOT/maven-metadata.xml. Return code is: 503 , ReasonPhrase:Service Unavailable. -> [Help 1]
Any idea ?
The text was updated successfully, but these errors were encountered: