Moving xwiki from one server to another - missing attachements

After moving everything to new server (following backup instruction) a got everything working except attachements and few other resources (ckeditor webjars etc.)

I got specific permanent directory /data/xwiki but it is set correctly in xwiki.properties file and permissions are correct. All files are there. However i still got 404

Any clues what i did forget?

127.0.0.1 - - [02/Mar/2021:15:27:04 +0100] "GET /xwiki/webjars/wiki%3Apgdenik/application-ckeditor-webjar/plugins/xwiki-resource/resourcePicker.min.css?evaluate=true HTTP/1.0" 404 41829
127.0.0.1 - - [02/Mar/2021:15:27:05 +0100] "GET /xwiki/webjars/wiki%3Apgdenik/codemirror/addon/dialog/dialog.css HTTP/1.0" 404 41811
127.0.0.1 - - [02/Mar/2021:15:27:05 +0100] "GET /xwiki/webjars/wiki%3Apgdenik/codemirror/addon/search/matchesonscrollbar.css HTTP/1.0" 404 41811
127.0.0.1 - - [02/Mar/2021:15:26:45 +0100] "GET /xwiki/bin/download/BackEnd/Lightbox%20support/next.png?rev=1.1 HTTP/1.0" 404 27734
127.0.0.1 - - [02/Mar/2021:15:26:45 +0100] "GET /xwiki/bin/download/BackEnd/Lightbox%20support/prev.png?rev=1.1 HTTP/1.0" 404 27734
127.0.0.1 - - [02/Mar/2021:15:26:45 +0100] "GET /xwiki/bin/download/BackEnd/Lightbox%20support/loading.gif?rev=1.1 HTTP/1.0" 404 27737
127.0.0.1 - - [02/Mar/2021:15:26:45 +0100] "GET /xwiki/bin/download/FlamingoThemes/Iceberg/LOGOSmensi.png?rev=1.3 HTTP/1.0" 404 21911

Well what you describe really feels like you don’t use the right permanent dir.

What error do you get when you try to access an attachment ? If the issue is related to the permanent dir you should get something like “file *** does not exist” which will give you a clue on where it expect to find it so that you can compare with what you actually have.

i tried to upload simple file as attachment and track down on unix that it was stored in

/var/cache/tomcat9/Catalina/localhost/xwiki/store/file/pgdenik/3/1/3e788f22649d3e3637760f77439996/attachments/4/6/2bb0b019e7cb2184e201fc4b5da8b6/f.igc

it was this issue - I had to explicitly allow tomcat to write to my specific perm directory - which solved it. thanks!