Project

General

Profile

Actions

Bug #24959

closed

Error message when getting campaign through API

Added by Elaad FURREEDAN 6 months ago. Updated 5 months ago.

Status:
Released
Priority:
N/A
Category:
Web - UI & UX
Target version:
Severity:
Minor - inconvenience | misleading | easy workaround
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
Checked
Regression:
No

Description

On a plugin fresh install, when we go on the update campaigns page, there is an error showing up (see the following logs). This error disappear after the first campaign is created

.
2024-05-31 12:06:24+0000 ERROR api-processing - SystemError: An error occurred; cause was: java.nio.file.NoSuchFileException: /var/rudder/configuration-repository/campaigns
 -> com.normation.rudder.campaigns.CampaignRepositoryImpl.$anonfun$getAll$1(CampaignRepository.scala:78)
 -> com.normation.zio$ZioRuntime$.$anonfun$unsafeRun$1(ZioCommons.scala:445)
 -> com.normation.zio$ZioRuntime$.unsafeRun(ZioCommons.scala:445)
 -> com.normation.zio$ZioRuntime$.runNow(ZioCommons.scala:428)
 -> com.normation.zio$UnsafeRun.runNow(ZioCommons.scala:454)
 -> com.normation.rudder.rest.RudderJsonResponse$implicits$ToLiftResponseList.toLiftResponseList(RudderJsonResponse.scala:201)
 -> com.normation.rudder.rest.RudderJsonResponse$implicits$ToLiftResponseList.toLiftResponseList(RudderJsonResponse.scala:211)
 -> com.normation.rudder.rest.lift.CampaignApi$GetCampaigns$.process0(CampaignApi.scala:77)
 -> com.normation.rudder.rest.lift.LiftApiModule0.process(LiftApiDispatcher.scala:112)
 -> com.normation.rudder.rest.lift.LiftApiModule0.process$(LiftApiDispatcher.scala:104)
 -> com.normation.rudder.rest.lift.CampaignApi$GetCampaigns$.process(CampaignApi.scala:60)
 -> com.normation.rudder.rest.lift.CampaignApi$GetCampaigns$.process(CampaignApi.scala:60)
 -> com.normation.rudder.rest.lift.LiftApiModule.handler(LiftApiDispatcher.scala:67)
 -> com.normation.rudder.rest.lift.LiftApiModule.handler$(LiftApiDispatcher.scala:59)
 -> com.normation.rudder.rest.lift.CampaignApi$GetCampaigns$.handler(CampaignApi.scala:60)
 -> com.normation.rudder.rest.lift.CampaignApi$GetCampaigns$.handler(CampaignApi.scala:60)
 -> com.normation.rudder.rest.BuildHandler.$anonfun$buildApi$21(ApiDatastructures.scala:696)
 -> com.normation.rudder.rest.BuildHandler.$anonfun$buildApi$18(ApiDatastructures.scala:680)
 -> com.normation.rudder.rest.BuildHandler.$anonfun$buildApi$15(ApiDatastructures.scala:674)
 -> com.normation.rudder.rest.BuildHandler.$anonfun$buildApi$15$adapted(ApiDatastructures.scala:672)
 -> com.normation.rudder.rest.BuildHandler.$anonfun$buildApi$13(ApiDatastructures.scala:672)
 -> com.normation.rudder.rest.BuildHandler.$anonfun$buildApi$7(ApiDatastructures.scala:665)


Related issues 1 (0 open1 closed)

Related to Rudder - Architecture #21825: Port code to ZIO2ReleasedVincent MEMBRÉActions
Actions #1

Updated by Vincent MEMBRÉ 6 months ago

  • Project changed from 92 to Rudder
  • Subject changed from Error message on update campaigns page when there is no campaigns to Error message when getting campaign through API
  • Target version deleted (8.1)

CHeck whether the campaigns directory exists or not are not ran

Actions #2

Updated by Vincent MEMBRÉ 6 months ago

  • Target version set to 7.3.16
Actions #3

Updated by Vincent MEMBRÉ 6 months ago

  • Status changed from New to In progress
  • Assignee set to Vincent MEMBRÉ
Actions #4

Updated by Vincent MEMBRÉ 6 months ago

  • Category set to Web - UI & UX
  • Status changed from In progress to New
  • Assignee deleted (Vincent MEMBRÉ)
Actions #5

Updated by Vincent MEMBRÉ 6 months ago

  • Status changed from New to Pending technical review
  • Assignee set to François ARMAND
  • Pull Request set to https://github.com/Normation/rudder/pull/5700
Actions #6

Updated by Vincent MEMBRÉ 6 months ago

Actions #7

Updated by Anonymous 6 months ago

  • Status changed from Pending technical review to Pending release
Actions #8

Updated by Elaad FURREEDAN 5 months ago

  • Fix check changed from To do to Checked
Actions #9

Updated by Vincent MEMBRÉ 5 months ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 7.3.16, 8.0.10 and 8.1.5 which were released today.

Actions

Also available in: Atom PDF