Fiori deploy fails due to missing virus scan profile

Published by Tobias Hofmann on

7 min read

In case deploying a Fiori app via the Fiori tools fails due to an active virus scan profile, it is normally sufficient to deactivate virus scanning. In my case, virus scanning was turned off, yet the deploy continued to fail because of a missing default virus scan profile.

Problem

You want to deploy a Fiori app to your ABAP server. The UI5 deploy configuration is correct and the ABAP system is accessible. Deploy is done either via the Fiori Tools Wizard or manually:

npm run deploy

The Fiori tools build the app and start to deploy it.

Ein Bild, das Text, Schrift, Screenshot, Zahl enthält.

KI-generierte Inhalte können fehlerhaft sein.

The deploy fails:

Ein Bild, das Text, Screenshot, Schrift enthält.

KI-generierte Inhalte können fehlerhaft sein.

Error message:

Virus scan server error: „No virus scan profile is selected as the “default”

Cause

A guided answer exists for the issue SAP Fiori Tools: No default virus profile active or found

Ein Bild, das Text, Schrift, Screenshot enthält.

KI-generierte Inhalte können fehlerhaft sein.

The same information is included in SAP Note 3052386.

Disable virus scan

First step is to check if virus scanning is active for OData services. The upload of the Fiori app is done using a OData v2 service.

Tx: /n/iwfnd/virus_scan

Ein Bild, das Text, Schrift, Reihe, Zahl enthält.

KI-generierte Inhalte können fehlerhaft sein.

Scanning for virus is disabled for OData v2 services. However, a scan profile is set. Normally, all you need to do is to turn off virus scan to be able to upload an app. The checkbox to turn off virus scanning is checked: no virus scanning (who came up with checking the checkbox to turn it off?). In my case, while scanning is turned off, a scan profile is set. Normally, with scanning turned off, the screen looks like this:

Ein Bild, das Text, Schrift, Reihe, Quittung enthält.

KI-generierte Inhalte können fehlerhaft sein.

There is no virus scan profile configured and the scan for OData v2 services is disabled.

With virus scanning turned off, why does the upload fail due to a missing virus scanning profile?

Root Cause

The note and guided answer contain more information about where to check for virus scanning settings. Let’s go through each of the listed transactions:

  • VSCAN
  • VSCANGROUP
  • VSCANPROFILE

Tx: VSCAN

No virus scanner provider is maintained. Therefore, the system is not prepared to do virus scanning at all.

Ein Bild, das Text, Screenshot, Schrift, weiß enthält.

KI-generierte Inhalte können fehlerhaft sein.

Tx: VSCANGROUP

No virus scanner group is configured.

Ein Bild, das Text, Schrift, Reihe, Screenshot enthält.

KI-generierte Inhalte können fehlerhaft sein.

Virus Scan Profile

Tx VSCANPROFILE

Several profiles are shipped by SAP. Ein Bild, das Text, Screenshot, Zahl, Schrift enthält.

KI-generierte Inhalte können fehlerhaft sein.

At the end of the list, you can find the profile /UI5/UI5_INFRA_APP/REP_DI_PUT

Ein Bild, das Text, Screenshot, Schrift, Reihe enthält.

KI-generierte Inhalte können fehlerhaft sein.

Note: it is marked as active.

Opening the details of this profile, the use reference checkbox is selected.

Ein Bild, das Text, Screenshot, Schrift, Zahl enthält.

KI-generierte Inhalte können fehlerhaft sein.

The scan profile overview shows that there is no default profile set. Seems that the configuration is broken. Maybe this is causing the virus scanning to ignore the flag to turn off virus scanning as the configured virus scan profile is misconfigured.

Solution

There are two alternative solutions to solve the error:

  1. Activate virus scanning, incl. configuration and having a virus scanner available.
  2. Deactivate virus scanning.

While 1. Is the preferred solution, 2. Is faster and easier to implement.

Tx: VSCANPROFILE

Ein Bild, das Text, Screenshot, Reihe, Schrift enthält.

KI-generierte Inhalte können fehlerhaft sein.

Double click on the profile. The detail screen appears. Click on Edit.

Ein Bild, das Text, Screenshot, Schrift, Zahl enthält.

KI-generierte Inhalte können fehlerhaft sein.

Deselect Active and Use Reference.

Provide a customization request.

Ein Bild, das Text, Schrift, Zahl, Reihe enthält.

KI-generierte Inhalte können fehlerhaft sein.

You should be able to deactivate the scan profile from the virus scan overview table directly by clicking on edit and deselect the active flag.

Ein Bild, das Text, Screenshot, Reihe, Schrift enthält.

KI-generierte Inhalte können fehlerhaft sein.

Deselect the active checkbox and click save.

Ein Bild, das Text, Screenshot, Schrift, Reihe enthält.

KI-generierte Inhalte können fehlerhaft sein.

Consistency Check

Here I got some messages. One was an error, blocking saving.

Ein Bild, das Text, Screenshot, Schrift, Reihe enthält.

KI-generierte Inhalte können fehlerhaft sein.

Going back to the virus scan profile overview, this profile is marked as active.

Ein Bild, das Text, Schrift, Zahl, Reihe enthält.

KI-generierte Inhalte können fehlerhaft sein.

Active, but throws an error when validated. Maybe this is causing the error? It blocks the configuration to deactivate the UI5 scan profile and maybe also the configuration to turn off virus scanning?

Let’s open the profile and deactivate it.

Ein Bild, das Text, Screenshot, Schrift, Zahl enthält.

KI-generierte Inhalte können fehlerhaft sein.

Now I could save the other profile too. The profile is not active!

Ein Bild, das Text, Screenshot, Schrift, Reihe enthält.

KI-generierte Inhalte können fehlerhaft sein.

Deactivate virus scan

Tx /n/iwfnd/virus_scan

Deactivate virus scanning and optionally remove any virus scan profile listed in the input box.

Ein Bild, das Text, Screenshot, Reihe, Schrift enthält.

KI-generierte Inhalte können fehlerhaft sein.

Result

Uploading a Fiori app via the deploy command works.

Let the world know

Tobias Hofmann

Doing stuff with SAP since 1998. Open, web, UX, cloud. I am not a Basis guy, but very knowledgeable about Basis stuff, as it's the foundation of everything I do (DevOps). Performance is king, and unit tests is something I actually do. Developing HTML5 apps when HTML5 wasn't around. HCP/SCP user since 2012, NetWeaver since 2002, ABAP since 1998.

0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.