The origin server did not find a current representation for the target resource or is not willing to disclose that one exists

I tried to update xwiki to version 12.4+1 and now i have error: The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.

Tomcat is active and running.

Please provide the xwiki logs. Thanks

See https://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Logging#HLogLocation

Thanks for the fast reply. Here is the catalina.out log:
catalina.out.txt (787.7 KB)

Note: I see lots of warnings in your logs. Can you confirm that you’re NOT using the tomcat manager to restart XWiki? You need to stop and start tomcat (and not just the xwiki webapp, we don’t support this ATM).

i do not use tomcat manager.

I see plenty of these:

2020-06-03 13:04:06,258 [localhost-startStop-1] WARN  .c.a.ComponentAnnotationLoader - Component [org.xwiki.extension.maven.internal.MavenExtensionScanner] which implements [role = [interface org.xwiki.extension.repository.internal.core.ExtensionScanner] hint = [maven]] tried to overwrite component [org.xwiki.extension.maven.internal.MavenExtensionScanner]. However, no action was taken since both components have the same priority level of [1000].
2020-06-03 13:04:06,265 [localhost-startStop-1] WARN  .c.a.ComponentAnnotationLoader - Component [org.xwiki.extension.maven.internal.converter.ArtifactModelConverter] which implements [role = [org.xwiki.properties.converter.Converter<org.xwiki.extension.maven.ArtifactModel>] hint = [default]] tried to overwrite component [org.xwiki.extension.maven.internal.converter.ArtifactModelConverter]. However, no action was taken since both components have the same priority level of [1000].
2020-06-03 13:04:06,265 [localhost-startStop-1] WARN  .c.a.ComponentAnnotationLoader - Component [org.xwiki.extension.maven.internal.converter.ModelConverter] which implements [role = [org.xwiki.properties.converter.Converter<org.apache.maven.model.Model>] hint = [default]] tried to overwrite component [org.xwiki.extension.maven.internal.converter.ModelConverter]. However, no action was taken since both components have the same priority level of [1000].
2020-06-03 13:04:06,338 [localhost-startStop-1] WARN  .c.a.ComponentAnnotationLoader - Component [org.xwiki.context.internal.DefaultExecution] which implements [role = [interface org.xwiki.context.Execution] hint = [default]] tried to overwrite component [org.xwiki.context.internal.DefaultExecution]. However, no action was taken since both components have the same priority level of [1000].
2020-06-03 13:04:06,338 [localhost-startStop-1] WARN  .c.a.ComponentAnnotationLoader - Component [org.xwiki.context.internal.DefaultExecutionContextManager] which implements [role = [interface org.xwiki.context.ExecutionContextManager] hint = [default]] tried to overwrite component [org.xwiki.context.internal.DefaultExecutionContextManager]. However, no action was taken since both components have the same priority level of [1000].
2020-06-03 13:04:06,338 [localhost-startStop-1] WARN  .c.a.ComponentAnnotationLoader - Component [org.xwiki.context.internal.concurrent.DefaultContextStoreManager] which implements [role = [interface org.xwiki.context.concurrent.ContextStoreManager] hint = [default]] tried to overwrite component [org.xwiki.context.internal.concurrent.DefaultContextStoreManager]. However, no action was taken since both components have the same priority level of [1000].
2020-06-03 13:04:06,368 [localhost-startStop-1] WARN  .c.a.ComponentAnnotationLoader - Component [org.xwiki.mail.script.MailSenderScriptService] which implements [role = [interface org.xwiki.script.service.ScriptService] hint = [mailsender]] tried to overwrite component [org.xwiki.mail.script.MailSenderScriptService]. However, no action was taken since both components have the same priority level of [1000].
2020-06-03 13:04:06,368 [localhost-startStop-1] WARN  .c.a.ComponentAnnotationLoader - Component [org.xwiki.mail.internal.DefaultMailSender] which implements [role = [interface org.xwiki.mail.MailSender] hint = [default]] tried to overwrite component [org.xwiki.mail.internal.DefaultMailSender]. However, no action was taken since both components have the same priority level of [1000].
2020-06-03 13:04:06,368 [localhost-startStop-1] WARN  .c.a.ComponentAnnotationLoader - Component [org.xwiki.mail.internal.RecipientConverter] which implements [role = [org.xwiki.properties.converter.Converter<javax.mail.Message$RecipientType>] hint = [default]] tried to overwrite component [org.xwiki.mail.internal.RecipientConverter]. However, no action was taken since both components have the same priority level of [1000].
2020-06-03 13:04:06,368 [localhost-startStop-1] WARN  .c.a.ComponentAnnotationLoader - Component [org.xwiki.mail.internal.MemoryMailListener] which implements [role = [interface org.xwiki.mail.MailListener] hint = [memory]] tried to overwrite component [org.xwiki.mail.internal.MemoryMailListener]. However, no action was taken since both components have the same priority level of [1000].

This suggest that your xwiki install is not correct. It could mean that you tried to upgrade an xwiki instance by copying the WAR content from a newer version on top of it. This is not going to work.

Could you do a directory listing of your xwiki’s WEB-INF/lib directory?

I did the upgrade on my debian 9 as usual:

The following packages are currently pending an upgrade:

xwiki-common 12.4+1
xwiki-mysql-common 12.4+1
xwiki-tomcat8-common 12.4+1
xwiki-tomcat8-mysql 12.4+1

with command:
apt-get dist-upgrade

Note that your last log says:

03-Jun-2020 13:31:30.157 SCHWERWIEGEND [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal Context [/xwiki] startup failed due to previous errors

This means Tomcat failed to start XWiki. I can’t see the problem and it’s likely you need to enable tomcat logging to see it. First you need to solve the component loading warnings.

Then you could check https://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Installation/InstallationWAR/InstallationTomcat/#HSEVERE:ErrorlistenerStart to display more logs from Tomcat at startup.

We need this to help further.

/usr/lib/xwiki/WEB-INF
insgesamt 376
drwxr-xr-x 4 root root 4096 Jun 3 13:03 .
drwxr-xr-x 7 root root 4096 Jun 3 13:03 …
lrwxrwxrwx 1 root root 16 Dez 30 14:26 cache -> /etc/xwiki/cache
drwxr-xr-x 2 root root 4096 Jun 3 13:03 classes
lrwxrwxrwx 1 root root 16 Dez 30 14:26 fonts -> /etc/xwiki/fonts
lrwxrwxrwx 1 root root 28 Jun 3 10:22 hibernate.cfg.xml -> /etc/xwiki/hibernate.cfg.xml
lrwxrwxrwx 1 root root 41 Jun 3 10:22 jboss-deployment-structure.xml -> /etc/xwiki/jboss-deployment-structure.xml
drwxr-xr-x 2 root root 372736 Jun 3 13:03 lib
lrwxrwxrwx 1 root root 22 Dez 30 14:26 observation -> /etc/xwiki/observation
lrwxrwxrwx 1 root root 22 Jun 3 10:22 portlet.xml -> /etc/xwiki/portlet.xml
lrwxrwxrwx 1 root root 28 Jun 3 10:22 struts-config.xml -> /etc/xwiki/struts-config.xml
lrwxrwxrwx 1 root root 22 Jun 3 10:22 sun-web.xml -> /etc/xwiki/sun-web.xml
lrwxrwxrwx 1 root root 29 Jun 3 10:22 version.properties -> /etc/xwiki/version.properties
lrwxrwxrwx 1 root root 18 Jun 3 10:22 web.xml -> /etc/xwiki/web.xml
lrwxrwxrwx 1 root root 20 Jun 3 10:22 xwiki.cfg -> /etc/xwiki/xwiki.cfg
lrwxrwxrwx 1 root root 28 Jun 3 10:22 xwiki-locales.txt -> /etc/xwiki/xwiki-locales.txt
lrwxrwxrwx 1 root root 27 Jun 3 10:22 xwiki.properties -> /etc/xwiki/xwiki.properties

Not WEB-INF… WEB-INF/lib

Here is the list
lib.txt (358.1 KB)

Ok your xwiki config is wrong. It contains both 11.10.5 and 12.4 mixed, which cannot work.

For ex

-rw-r--r-- 1 root root    15707 Jun  3 10:22 xwiki-platform-crypto-store-api-11.10.5.jar
-rw-r--r-- 1 root root    38709 Jun  3 10:22 xwiki-platform-crypto-store-api-11.10.5.xed
-rw-r--r-- 1 root root    15700 Jun  3 10:22 xwiki-platform-crypto-store-api-12.4.jar
-rw-r--r-- 1 root root    59790 Jun  3 10:22 xwiki-platform-crypto-store-api-12.4.xed

I’m not a user of the debian packaging but I doubt that it is the issue or a lot of users would have the issue and that’s not the case.

It was working till today. Is it enough just to delete the packages of version 11 or i must do new Installation completely?

Note that this should not prevent xwiki from starting so the stat issue you have now is not related to the duplicate jars but these duplicate jars will cause all sort of non working features in xwiki in various places.

@xvostikk feels like the warning in https://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Installation/InstallationViaAPT/#HXWikiasrootwebapp28shortURLs29

Ha no nothing to do with duplicated jars.

Just wanted to chime in. We’ve run into the same problem. Did an upgrade to 12.4 yesterday or so and Xwiki did all the updating in the frontend and worked. Today I installed the updated deb packages 12.4+1 and everything is broken…

Could you check if you also have XWiki JARs from several versions in WEB-INF/lib?

It does look that way:

/usr/lib/xwiki/WEB-INF/lib/xwiki-commons-configuration-api-11.10.5.jar
/usr/lib/xwiki/WEB-INF/lib/xwiki-commons-configuration-api-11.10.5.xed
/usr/lib/xwiki/WEB-INF/lib/xwiki-commons-configuration-api-12.4.jar
/usr/lib/xwiki/WEB-INF/lib/xwiki-commons-configuration-api-12.4.xed
/usr/lib/xwiki/WEB-INF/lib/xwiki-commons-context-11.10.5.jar
/usr/lib/xwiki/WEB-INF/lib/xwiki-commons-context-11.10.5.xed
/usr/lib/xwiki/WEB-INF/lib/xwiki-commons-context-12.4.jar
/usr/lib/xwiki/WEB-INF/lib/xwiki-commons-context-12.4.xed

Those did come with xwiki-common.deb v 12.4+1 So it looks as if there has been a mistake while packaging the .deb files.