-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Openseadragon doesn't work #33
Comments
Some work done here #34 |
Problem seems to be that Islandora (being the server) sees the valid Djatoka URL as http://localhost:80/adore-djatoka but then it uses that address to server OpenSeadragon tiles, and that address is invalid outside the VM. Is there are reason we are using port 8000 instead of port 80? Or perhaps we should change the default apache port to 8000 as well. |
Yeah, we need to change the default port. I'm doing a build now, and will push if need be. |
31bdc12 should do it. Just need a sanity test and verify. Islandora OpenSeadragon still isn't enabled at the end of the build. I had to go in and |
I'm still having problems with OpenSeadragon (at 694932f). It wasn't rendering images, so I tried the two commands that @ruebot describes above. Here is the output, still with no working viewer (also ran the first one with sudo):
I'd be happy to help troubleshoot this, but I've never dug into OpenSeadragon before. Any ideas? |
When I run without sudo it doesn't work, but when I run with sudo it does:
I think we're a little all over the map with file permissions on this box. Some files/dirs in modules and libraries are owned by vagrant:vagrant others by root:root and yet others by vagrant:web. Planning on submitting a different ticket to have the whole file system (except Drupal files dir and related) consistently owned, but for the purposes of this ticket I do notice openseadragon is a root:root one on my instance (so sudo would be needed). |
Still no luck for me with
I can confirm that /var/www/drupal/sites/all/libraries/openseadragon/ exists though. |
So, you don't get the error with sudo but the viewer still doesn't work on a page? Do you get any Javascript errors on the page (or does Chrome network tools, or whatever, show any additional information... like some AJAX call that's getting a 404 response)? |
That's correct. I've cleared my cache as well, just to be sure. |
Does this work for you? If it does, I'd say take a look at the output from Chrome's network tools + javascript console as a next step. |
Yes, thanks, when I change the localhost port to (host) localhost:8001 (which is where I am running Apache) in that URL, I can see that map of Arizona and New Mexico. Since I'm also running Tomcat on a non-standard port, (host) localhost:8081, I changed the djatoka proxy lines in apache's config file to use that port, just to see what would happen:
But, after restating apache, it still doesn't work. On guest, Tomcat is running on port 8080. |
Tailing my apache access log I see the following request:
There is a 404 in there for /adore-djatoka/resolver though. Port seems to be alive or there wouldn't be a response, so it must have to do with the proxy configuration. I'll play around a bit more and report back. EDIT: Just tailed the log and refreshed the request that you gave me (to render the Arizona map) and there's a 200 response code in the access log for /adore-djatoka/resolver. |
Got it to work by running apache on guest and host 8000. I'll continue to look into why changing the host's port breaks it (but not anything else, presumably). |
Correct. Apache runs on port 8000 on this box because of VirtualBox restrictions, and the reverse proxy setup in the apache config uses that port. |
@mjordan Had you changed the port 8000 in Vagrantfile too? I don't understand Vagrant port mapping / handling, but noticed there is a setting in there too. |
Up until about two builds ago I've only been using my laptop as a host with the following port mappings in Vagrantfile:
I do that because all those ports are all taken already on my host laptop. OpenSeadragon is the only thing that I've found doesn't work with those modified host ports. Doing a
Which I assume is why the port mapping in the Vagrantfile is being ignored. |
I've created a ticket to pull out things like ports (usernames, passwords, etc.) into variables: #70 |
The problem here is that you need both the outside and inside Tomcat on the same port, because the Tomcat builds the request using the port you define inside and sends it out to your browser which initiates the Ajax call. So if your Drupal setup works with port 8080, but your external browser use 8081 then you will never see the page because your ajax call for the tiles is using 8080. Not sure if I am explaining myself clearly. |
Need to setup proxy passes for djatoka...
The text was updated successfully, but these errors were encountered: