org.eclipse.che.api.core.ServerException: Failed access: http://che-host:9090/wsmaster/api/preferences?token, method: GET, response code: 404, message: There is no any resources matched to request path /preferences

GitHub | cstack89 | 4 months ago
  1. 0

    Issue with Git Committing in 4.5.1

    GitHub | 4 months ago | cstack89
    org.eclipse.che.api.core.ServerException: Failed access: http://che-host:9090/wsmaster/api/preferences?token, method: GET, response code: 404, message: There is no any resources matched to request path /preferences
  2. 0

    Publishing to artifactory with bad characters in maven step name

    YouTrack | 5 years ago
    java.lang.RuntimeException: Error deploying artifact: /home/teamcity/work/88c29fc971d40868/pom.xml. Skipping deployment of remaining artifacts (if any) and build info.
  3. 0

    When deploying artifacts and the artifacts checksum to Artifactory, the artifact itself must be uploaded before it's checksum. Otherwise Artifactory will return with an Error 404 and consequently failing the job: 05:57:24 Deploying artifact: http://artifactory:8081/artifactory/repository/artifact.rpm.md5 05:57:24 ERROR: remote file operation failed: /root/workspace/job at hudson.remoting.Channel@2c03b560:hostname 05:57:24 java.io.IOException: remote file operation failed: /root/workspace/job at hudson.remoting.Channel@2c03b560:hostname 05:57:24 at hudson.FilePath.act(FilePath.java:916) 05:57:24 at hudson.FilePath.act(FilePath.java:893) 05:57:24 at org.jfrog.hudson.generic.GenericArtifactsDeployer.deploy(GenericArtifactsDeployer.java:82) 05:57:24 at org.jfrog.hudson.generic.ArtifactoryGenericConfigurator$1.tearDown(ArtifactoryGenericConfigurator.java:276) 05:57:24 at hudson.model.Build$BuildExecution.doRun(Build.java:170) 05:57:24 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529) 05:57:24 at hudson.model.Run.execute(Run.java:1706) 05:57:24 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 05:57:24 at hudson.model.ResourceController.execute(ResourceController.java:88) 05:57:24 at hudson.model.Executor.run(Executor.java:232) 05:57:24 Caused by: java.io.IOException: Failed to deploy file: HTTP response code: 404. HTTP response message: Not Found 05:57:24 at org.jfrog.build.client.ArtifactoryBuildInfoClient.throwHttpIOException(ArtifactoryBuildInfoClient.java:652) 05:57:24 at org.jfrog.build.client.ArtifactoryBuildInfoClient.uploadFile(ArtifactoryBuildInfoClient.java:527) 05:57:24 at org.jfrog.build.client.ArtifactoryBuildInfoClient.deployArtifact(ArtifactoryBuildInfoClient.java:302) 05:57:24 at org.jfrog.hudson.generic.GenericArtifactsDeployer$FilesDeployerCallable.deploy(GenericArtifactsDeployer.java:182) 05:57:24 at org.jfrog.hudson.generic.GenericArtifactsDeployer$FilesDeployerCallable.invoke(GenericArtifactsDeployer.java:154) 05:57:24 at org.jfrog.hudson.generic.GenericArtifactsDeployer$FilesDeployerCallable.invoke(GenericArtifactsDeployer.java:122) 05:57:24 at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2474) 05:57:24 at hudson.remoting.UserRequest.perform(UserRequest.java:118) 05:57:24 at hudson.remoting.UserRequest.perform(UserRequest.java:48) 05:57:24 at hudson.remoting.Request$2.run(Request.java:328) 05:57:24 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 05:57:24 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) 05:57:24 at java.util.concurrent.FutureTask.run(FutureTask.java:166) 05:57:24 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146) 05:57:24 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 05:57:24 at java.lang.Thread.run(Thread.java:701) Versus the proper order returns a successful deploy and successful job: 05:40:14 Deploying artifact: http://artifactory:8081/artifactory/repository/artifact.rpm 05:40:38 Deploying artifact: http://artifactory:8081/artifactory/repository/artifact.rpm.md5 05:40:38 Deploying build info to: http://artifactory:8081/artifactory/api/build 05:40:39 Finished: SUCCESS Same Jenkins, Artifactory, Build Host, Code Base, and git checksum in both instances. The only difference was artifact deployment order. Either force checksum files to be uploaded last, or allow the user to specify priority order of artifact deployment.

    Jenkins JIRA | 2 years ago | Daniel Dewey
    java.io.IOException: remote file operation failed: /root/workspace/job at hudson.remoting.Channel@2c03b560:hostname
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    When deploying artifacts and the artifacts checksum to Artifactory, the artifact itself must be uploaded before it's checksum. Otherwise Artifactory will return with an Error 404 and consequently failing the job: 05:57:24 Deploying artifact: http://artifactory:8081/artifactory/repository/artifact.rpm.md5 05:57:24 ERROR: remote file operation failed: /root/workspace/job at hudson.remoting.Channel@2c03b560:hostname 05:57:24 java.io.IOException: remote file operation failed: /root/workspace/job at hudson.remoting.Channel@2c03b560:hostname 05:57:24 at hudson.FilePath.act(FilePath.java:916) 05:57:24 at hudson.FilePath.act(FilePath.java:893) 05:57:24 at org.jfrog.hudson.generic.GenericArtifactsDeployer.deploy(GenericArtifactsDeployer.java:82) 05:57:24 at org.jfrog.hudson.generic.ArtifactoryGenericConfigurator$1.tearDown(ArtifactoryGenericConfigurator.java:276) 05:57:24 at hudson.model.Build$BuildExecution.doRun(Build.java:170) 05:57:24 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529) 05:57:24 at hudson.model.Run.execute(Run.java:1706) 05:57:24 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 05:57:24 at hudson.model.ResourceController.execute(ResourceController.java:88) 05:57:24 at hudson.model.Executor.run(Executor.java:232) 05:57:24 Caused by: java.io.IOException: Failed to deploy file: HTTP response code: 404. HTTP response message: Not Found 05:57:24 at org.jfrog.build.client.ArtifactoryBuildInfoClient.throwHttpIOException(ArtifactoryBuildInfoClient.java:652) 05:57:24 at org.jfrog.build.client.ArtifactoryBuildInfoClient.uploadFile(ArtifactoryBuildInfoClient.java:527) 05:57:24 at org.jfrog.build.client.ArtifactoryBuildInfoClient.deployArtifact(ArtifactoryBuildInfoClient.java:302) 05:57:24 at org.jfrog.hudson.generic.GenericArtifactsDeployer$FilesDeployerCallable.deploy(GenericArtifactsDeployer.java:182) 05:57:24 at org.jfrog.hudson.generic.GenericArtifactsDeployer$FilesDeployerCallable.invoke(GenericArtifactsDeployer.java:154) 05:57:24 at org.jfrog.hudson.generic.GenericArtifactsDeployer$FilesDeployerCallable.invoke(GenericArtifactsDeployer.java:122) 05:57:24 at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2474) 05:57:24 at hudson.remoting.UserRequest.perform(UserRequest.java:118) 05:57:24 at hudson.remoting.UserRequest.perform(UserRequest.java:48) 05:57:24 at hudson.remoting.Request$2.run(Request.java:328) 05:57:24 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 05:57:24 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) 05:57:24 at java.util.concurrent.FutureTask.run(FutureTask.java:166) 05:57:24 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146) 05:57:24 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 05:57:24 at java.lang.Thread.run(Thread.java:701) Versus the proper order returns a successful deploy and successful job: 05:40:14 Deploying artifact: http://artifactory:8081/artifactory/repository/artifact.rpm 05:40:38 Deploying artifact: http://artifactory:8081/artifactory/repository/artifact.rpm.md5 05:40:38 Deploying build info to: http://artifactory:8081/artifactory/api/build 05:40:39 Finished: SUCCESS Same Jenkins, Artifactory, Build Host, Code Base, and git checksum in both instances. The only difference was artifact deployment order. Either force checksum files to be uploaded last, or allow the user to specify priority order of artifact deployment.

    Jenkins JIRA | 2 years ago | Daniel Dewey
    java.io.IOException: remote file operation failed: /root/workspace/job at hudson.remoting.Channel@2c03b560:hostname
  6. 0

    Hi! I'm not sure I'm posting to right project. Anyway... We are using teamcity plugin to deploy our artifacts. Today we found our builds starts to fail with stack like this: {noformat} java.lang.RuntimeException: Error deploying artifact: /opt/teamcity/buildAgent/work/48555869d50ef6eb/<path_to_project>/target/<project>.war. Skipping deployment of remaining artifacts (if any) and build info. java.lang.RuntimeException: Error deploying artifact: /opt/teamcity/buildAgent/work/48555869d50ef6eb/<path_to_project>/target/<project>.war. Skipping deployment of remaining artifacts (if any) and build info. at org.jfrog.teamcity.agent.listener.AgentListenerBuildInfoHelper.runnerFinished(AgentListenerBuildInfoHelper.java:157) at org.jfrog.teamcity.agent.ArtifactoryAgentListener.runnerFinished(ArtifactoryAgentListener.java:108) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at jetbrains.buildServer.util.EventDispatcher.dispatch(EventDispatcher.java:115) at jetbrains.buildServer.util.EventDispatcher$2.invoke(EventDispatcher.java:67) at $Proxy8.runnerFinished(Unknown Source) at jetbrains.buildServer.agent.impl.buildStages.runnerStages.finish.FireRunnerFinishedFStage.doFinishStage(FireRunnerFinishedFStage.java:29) at jetbrains.buildServer.agent.impl.buildStages.RunnerFinishStagesExecutor.runFinishStage(RunnerFinishStagesExecutor.java:32) at jetbrains.buildServer.agent.impl.buildStages.RunnerFinishStagesExecutor.doBuildFinishStages(RunnerFinishStagesExecutor.java:23) at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.RunnerContextExecutor.safeCallFinishStages(RunnerContextExecutor.java:65) at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.RunnerContextExecutor.callRunnerStages(RunnerContextExecutor.java:56) at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.StepExecutor.doProcessNextStep(StepExecutor.java:89) at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.StepExecutor.processNextStep(StepExecutor.java:44) at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.ForEachBuildRunnerStage.doBuildStage(ForEachBuildRunnerStage.java:77) at jetbrains.buildServer.agent.impl.buildStages.BuildStagesExecutor$1.callStage(BuildStagesExecutor.java:31) at jetbrains.buildServer.agent.impl.buildStages.BuildStagesExecutor$1.callStage(BuildStagesExecutor.java:24) at jetbrains.buildServer.agent.impl.buildStages.StagesExecutor.callRunStage(StagesExecutor.java:78) at jetbrains.buildServer.agent.impl.buildStages.StagesExecutor.doStages(StagesExecutor.java:37) at jetbrains.buildServer.agent.impl.buildStages.BuildStagesExecutor.doStages(BuildStagesExecutor.java:24) at jetbrains.buildServer.agent.impl.BuildRunAction.doStages(BuildRunAction.java:70) at jetbrains.buildServer.agent.impl.BuildRunAction.runBuild(BuildRunAction.java:50) at jetbrains.buildServer.agent.impl.BuildAgentImpl.doActualBuild(BuildAgentImpl.java:247) at jetbrains.buildServer.agent.impl.BuildAgentImpl.access$100(BuildAgentImpl.java:48) at jetbrains.buildServer.agent.impl.BuildAgentImpl$1.run(BuildAgentImpl.java:220) at java.lang.Thread.run(Thread.java:722) Caused by: java.io.IOException: Failed to deploy file: HTTP response code: 413. HTTP response message: Request Entity Too Large at org.jfrog.build.client.ArtifactoryBuildInfoClient.throwHttpIOException(ArtifactoryBuildInfoClient.java:642) at org.jfrog.build.client.ArtifactoryBuildInfoClient.uploadFile(ArtifactoryBuildInfoClient.java:517) at org.jfrog.build.client.ArtifactoryBuildInfoClient.deployArtifact(ArtifactoryBuildInfoClient.java:292) at org.jfrog.teamcity.agent.listener.AgentListenerBuildInfoHelper.runnerFinished(AgentListenerBuildInfoHelper.java:155) ... 27 more {noformat} War file is about 64M. We already tried to tweak jetty settings (i.e requestBufferSize/headerBufferSize) but without any hope. Maybe we are missing something? Could Artifactory somehow restrict file size?

    JFrog JIRA | 4 years ago | Vsevolod Minkov
    java.lang.RuntimeException: Error deploying artifact: /opt/teamcity/buildAgent/work/48555869d50ef6eb/<path_to_project>/target/<project>.war. Skipping deployment of remaining artifacts (if any) and build info.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.io.IOException

      Failed access: http://che-host:9090/wsmaster/api/preferences?token, method: GET, response code: 404, message: There is no any resources matched to request path /preferences

      at org.eclipse.che.api.core.rest.DefaultHttpJsonRequest.doRequest()
    2. org.eclipse.che
      RemotePreferenceDao.getPreferences
      1. org.eclipse.che.api.core.rest.DefaultHttpJsonRequest.doRequest(DefaultHttpJsonRequest.java:276)[che-core-api-core-4.5.1.jar:4.5.1]
      2. org.eclipse.che.api.core.rest.DefaultHttpJsonRequest.request(DefaultHttpJsonRequest.java:155)[che-core-api-core-4.5.1.jar:4.5.1]
      3. org.eclipse.che.RemotePreferenceDao.getPreferences(RemotePreferenceDao.java:85)[wsagent-local-4.5.1.jar:4.5.1]
      3 frames