I have had some issues to upload vector(shp) and raster(tif) via URL. Any user can access the files, but I GeoServer still unable to do so. Is there any Site URL configuration that I should do first in order GeoServer to retrieve the files?
I do not understand the question? How can users access the file?
Have you uploaded the file to a directory that GeoServer can access? For example the GEOSERVER_DATA_DIR or a shared file system?
Did you check permissions for the user geoserver is running as? For example a “tomcat” user would need permissions to access a shared “gis data” folder…
Shapefile and TIFF both require file system access (so the URL is a file reference and there is a “browse” button to help).
Aside: There are a few datastore like GeoTIFF with Cloud Optimized GeoTIFF (COG) that can take an HTTP URL but that is a community module (ie seeking funding).
Are you able to choose the file using the user interface Browse button? This would indicate to me that GeoServer has the file permissions to read the folder where the file is located. Did you check what user account was running GeoServer? And confirm that the user has access to /Users/username/Documents/example.tif ?
Other than that we need to look at the geoserer.log (either the file or using the user interface) for the stack trace describing where the read failure occurred.
Also it is worth running gdalinfo on the GeoTIFF just to see if it is encoded correctly and complete.
Aside: Please remember to keep conversation on the email list (as private one-on-one support is something many of our commercial support providers offer and I wish to respect that). By communicating in public others can join the conversation (who may have more insight than me).