r/SQL • • Sep 27 '26

SQL Server Pls help, ssrs 2022 not working after upgrading from sql/ssrs2012

I upgraded ssrs 2022, configured db and restored encryption key. Then upgraded sql 2016 to 2022 and that completed.

When I went to http://localshost/Reports, it gave me an error about not being configured properly. /ReportServer shows some error related to wwwroot/ReportServer.

Did some googling, found that ssrs 2022 does not use IIS wwwroot directory. Checked keys table in the ReportServer db and found 2 instances of ssrs (one with new instance name and the other with old instance name from 2016). Google sear Lin suggests running an sql command to delete all entries, filtered on machinename, then open ssrsbconfiguration and reapply web service url so that it can rewrite run configuration file?

I’m fairly new to sql and found these steps from googling. I have sysadmi background but have very limited knowledge of sql.

I use Varonis. How can I fix SSRS 2022 so that Varonis can work again.

TIA

6 Upvotes

8 comments sorted by

3

u/TemporaryDisastrous Sep 28 '26

Did you just casually do this in prod?

1

u/RedditDon3 Sep 29 '26

I did this in my home lab, no issues. but slight hiccup with production. i guess things don’t always work out as planned.

1

u/CanProfessional766 Sep 29 '26

I’d avoid deleting anything from the Keys table for now. I’d first check the 2022 instance in Reporting Services Configuration Manager and make sure the database, Web Service URL, and Web Portal URL are all set correctly.Also SSRS 2022 doesn’t use IIS wwwroot, so that part can probably be ignored. Once /ReportServer is working check Varonis again.

1

u/RedditDon3 Sep 29 '26

I guess it was competing for the port 80. I changed IIS port to 8081, removed the old SSRS 2016 from the keys table, restarted ssrs 2022 and everything seems to be working after. Varonis did the health checks and found no issues with the application.

1

u/DarlanSandro Oct 01 '26

Esse erro apontando para "wwwroot" e a duplicidade na tabela "Keys" revelam dois problemas de migração: conflito de portas com o IIS e registro órfão de instância na base.

Na minha opinião, você não deve executar um "DELETE" manual via SQL direto na tabela "Keys". Fazer isso na mão pode corromper o mapeamento da chave simétrica e travar de vez a descriptografia de credenciais e conexões salvas. O caminho seguro é abrir o Report Server Configuration Manager, navegar até a opção Scale-out Deployment (Implantação Escalável), selecionar a linha correspondente à instância antiga de 2016 e clicar em Remove. A própria ferramenta cuida de limpar o registro órfão sem quebrar a chave da nova instância de 2022.

Já o erro mencionando "wwwroot/ReportServer" acontece porque o SSRS não roda no IIS; ele escuta diretamente via driver "http.sys" do Windows. Se a requisição caiu no "wwwroot", significa que existe um IIS ativo na máquina (frequentemente instalado pelos módulos web do Varonis) segurando o binding da porta 80 e interceptando a chamada antes do SSRS.

O que costumo fazer nesses cenários para resolver :

  1. No Report Server Configuration Manager, acesse a aba Web Service URL, mude a porta TCP para uma porta livre (como 8080, caso não utilize certificado SSL/HTTPS) e clique em Apply.
  2. Vá até a aba Web Portal URL, certifique-se de que ela também está usando essa porta dedicada e clique em Apply.
  3. Reinicie o serviço do SSRS pelo próprio Configuration Manager para recriar as reservas de URL no "http.sys".
  4. Teste no navegador o acesso em "http://localhost:8080/ReportServer" e "http://localhost:8080/Reports".

Com o SSRS respondendo na porta dedicada e a instância antiga removida da implantação escalável, abra o console de administração do Varonis (nas configurações de servidor de relatórios/DatAdvantage) e atualize a URL do Report Server para apontar para a nova porta configurada. Feito isso, a integração volta a operar normalmente.

1

u/[deleted] Sep 28 '26

[removed] — view removed comment

2

u/RedditDon3 Sep 29 '26

yes, did exactly that, on top of changing IIS port to 8081. thanks.

it was from 2016 to 2022