.treeinfo file missing error while syncing yum repository

Problem: .treefile is missing when syncing a yum repository from netboot server.I have attached the image that shows the error.Is there a way to skip this .treeinfo file or generate the file.

Expected Outcome:Yum repository sync successfully without .treeinfo missing error.

Foreman and Proxy versions:
Foreman 3.3 and Katello 4.5

Distribution and version:

There was a HTTP 500 error accessing that URL during the sync. That points to an error on the remote server.

Also remember: the detailed error information on a task is on the error tab…

Yes,I can see that the error is from remote server.The error shows that .treeinfo file is not found so I tried to create a yum repo in my linux machine using ‘createrepo’ command,but there is no .treeinfo file generated.
Do you know how to generate the .treeinfo file to solve this error?
(Repository type is yum)
Also the same URL is used in older version of satellite(Foreman 1.14.3 and Katello 3.3.2) and there is no error while syncing.

A 500 Internal Server Error is not a 404 Not Found. I guess if your server would properly respond with a 404 to the .treeinfo it would work. A 500 doesn’t say if there is a .treeinfo or not, just that the server had an unspecific error…