simile-widgets / exhibit

Publishing Framework for Large-Scale Data-Rich Interactive Web Pages
MIT License
175 stars 94 forks source link

api.simile-widgets.org not responding #193

Open jjon opened 5 years ago

jjon commented 5 years ago

server down?

karger commented 5 years ago

api.simile-widgets.org is back. the simile-widgets.org site is slightly broken and may remain so for a few more hours.

------ Original Message ------ From: "Jon Crump" notifications@github.com To: "simile-widgets/exhibit" exhibit@noreply.github.com Cc: "Subscribed" subscribed@noreply.github.com Sent: 2/21/2019 12:20:49 PM Subject: [simile-widgets/exhibit] api.simile-widgets.org not responding (#193)

server down?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/simile-widgets/exhibit/issues/193, or mute the thread https://github.com/notifications/unsubscribe-auth/ABFpXrXWrHChNwnDLNxIqBsyOknauxJlks5vPtVxgaJpZM4bH76c.

jjon commented 5 years ago

Thanks for responding so swiftly David. But I'm still not getting any response from api.simile-widgets.org

karger commented 5 years ago

Ok.  We're migrating to AWS and it seems things will be up and down for a few hours.

On Feb 21, 2019, 3:35 PM, at 3:35 PM, Jon Crump notifications@github.com wrote:

Thanks for responding so swiftly David. But I'm still not getting any response from api.simile-widgets.org

-- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/simile-widgets/exhibit/issues/193#issuecomment-466156310

lmorillas commented 5 years ago

Hmmmm Much more than a few hours :-/ --> ERR_CONNECTION_TIMED_OUT

Saludos,

-- luismiguel (@lmorillas)

El jue., 21 feb. 2019 a las 22:08, David Karger (notifications@github.com) escribió:

Ok. We're migrating to AWS and it seems things will be up and down for a few hours.

On Feb 21, 2019, 3:35 PM, at 3:35 PM, Jon Crump notifications@github.com wrote:

Thanks for responding so swiftly David. But I'm still not getting any response from api.simile-widgets.org

-- You are receiving this because you commented. Reply to this email directly or view it on GitHub:

https://github.com/simile-widgets/exhibit/issues/193#issuecomment-466156310

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/simile-widgets/exhibit/issues/193#issuecomment-466167115, or mute the thread https://github.com/notifications/unsubscribe-auth/AAviZxDGJ3Q97I03HXAL2yLlD7mjaH2eks5vPwrggaJpZM4bH76c .

karger commented 5 years ago

sorry, they must have run into a glitch in the transition that took them past end of day. It should be back tomorrow. Sorry for the lack of warning---I didn't know when this was going to happen.

------ Original Message ------ From: "Luis Miguel Morillas" notifications@github.com To: "simile-widgets/exhibit" exhibit@noreply.github.com Cc: "David Karger" karger@mit.edu; "Comment" comment@noreply.github.com Sent: 2/22/2019 2:40:43 AM Subject: Re: [simile-widgets/exhibit] api.simile-widgets.org not responding (#193)

Hmmmm Much more than a few hours :-/ --> ERR_CONNECTION_TIMED_OUT

Saludos,

-- luismiguel (@lmorillas)

El jue., 21 feb. 2019 a las 22:08, David Karger (notifications@github.com) escribió:

Ok. We're migrating to AWS and it seems things will be up and down for a few hours.

On Feb 21, 2019, 3:35 PM, at 3:35 PM, Jon Crump notifications@github.com wrote:

Thanks for responding so swiftly David. But I'm still not getting any response from api.simile-widgets.org

-- You are receiving this because you commented. Reply to this email directly or view it on GitHub:

https://github.com/simile-widgets/exhibit/issues/193#issuecomment-466156310

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub

https://github.com/simile-widgets/exhibit/issues/193#issuecomment-466167115, or mute the thread

https://github.com/notifications/unsubscribe-auth/AAviZxDGJ3Q97I03HXAL2yLlD7mjaH2eks5vPwrggaJpZM4bH76c .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/simile-widgets/exhibit/issues/193#issuecomment-466304136, or mute the thread https://github.com/notifications/unsubscribe-auth/ABFpXn63EsjA5BeteIm-_2fHMGaTxNXLks5vP577gaJpZM4bH76c.

jjon commented 5 years ago

I made Exhibit the centerpiece of a history course I'm teaching, and now I'm standing around with egg on my face. This makes more urgent my failed attempts to host all the software locally. I've broken my teeth on this several times. I have no trouble hosting Exhibit by itself, and Timeline by itself, but I've repeatedly failed to get an Exhibit with both Map and Timeline to run locally. Whenever I try to run a time-extension Exhibit reaches out to api.simile-widgets.org for the simile-ajax software. I can't seem to figure out how to point it at a local source.

I've attached below the <head> from my ongoing experimental exhibit in the hope that the assembled wise here can give me a hint as to what I'm doing wrong. Perhaps there's an example out there somewhere, or some documentation?

This is the <head> that works:

    <script type="text/javascript" src="//api.simile-widgets.org/exhibit/HEAD/lib/jquery.js"></script>

    <script src="//api.simile-widgets.org/exhibit/HEAD/exhibit-api.js"
            type="text/javascript">
    </script>
    <script src="//api.simile-widgets.org/exhibit/HEAD/extensions/time/time-extension.js"
            type="text/javascript" 
            rel="exhibit-extension">
    </script>
    <link href="//api.simile-widgets.org/exhibit/HEAD/extensions/map/map-extension.js"
            data-ex-apikey="AIzaSyAFf2dBmbxI_2Jfs2ty-05I__yDubzE6Hk"
            type="text/javascript" 
            rel="exhibit-extension" />

    <link 
        rel="exhibit/data" 
        type="application/jsonp"        href="https://spreadsheets.google.com/feeds/list/1qZ6Sgu2qcKy-Rbc-L_5YN-zJD2jErOw2BUhur3-yWlk/od6/public/basic?hl=en_US&alt=json-in-script"
        data-ex-converter="googleSpreadsheets" />

This does not:

<!-- ATTEMPT TO LOAD ALL JS LOCALLY STILL BREAKS ON SIMILE-AJAX/TIMELINE -->
    <script src="../../exhibit-master3.1.2-rc3/scripted/src/lib/jquery-1.12.4.min.js"
            type="text/javascript">
    </script>
    <script type="text/javascript">
        Timeline_ajax_url="../../timeline-2.3.1/ajax/2.2.4/simile-ajax-api.js";
        Timeline_urlPrefix="../../timeline-2.3.1/timeline/2.3.1/";       
        Timeline_parameters="bundle=false";
    </script>
    <script src="../../exhibit-master3.1.2-rc3/scripted/src/exhibit-api.js?bundle=false"
            type="text/javascript">
    </script>
    <script src="../../simile-common-master/src/webapp/api/simile-ajax.js"
            type="text/javascript">
    </script>
    <script src="../../exhibit-master3.1.2-rc3/scripted/src/extensions/time/time-extension.js?bundle=false"
            type="text/javascript" 
            rel="exhibit-extension">
    </script>
    <link 
        rel="exhibit-extension"
        type="text/javascript" 
        href="../../exhibit-master3.1.2-rc3/scripted/src/extensions/map/map-extension.js?bundle=false"
        data-ex-apikey='AIzaSyAFf2dBmbxI_2Jfs2ty-05I__yDubzE6Hk' />

At the risk of boring you further: an experiment at a different address also fails. I couldn't find a path for the timeline software that would work AND not look elsewhere for simile-ajax:

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Western Civilization</title>
    <script type="text/javascript" src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
    <script type="text/javascript" src="../../common-js/timeline-2.3.1/ajax/api/simile-ajax-api.js"></script>
    <script src="../../common-js/exhibit-dist/exhibit-api.js" type="text/javascript"></script>
    <script src="../../common-js/exhibit-dist/extensions/time/time-extension.js"
            type="text/javascript" 
            rel="exhibit-extension"
            bundle="false">
    </script>
    <link href="../../common-js/exhibit-dist/extensions/map/map-extension.js"
            data-ex-apikey="AIzaSyAFf2dBmbxI_2Jfs2ty-05I__yDubzE6Hk"
            type="text/javascript" 
            rel="exhibit-extension" />

    <link 
        rel="exhibit/data" 
        type="application/jsonp"        href="https://spreadsheets.google.com/feeds/list/15CarxbOMuO0LIPYf4pXzRjTHD2X7EvafY1Hsf2HWnwE/1/public/basic?hl=en_US&amp;alt=json-in-script#gid=115609054"
        data-ex-converter="googleSpreadsheets" />
karger commented 5 years ago

Jon, sorry for the trouble. Try this for now: http://people.csail.mit.edu/karger/ExhibitK/api/exhibit-api.js

------ Original Message ------ From: "Jon Crump" notifications@github.com To: "simile-widgets/exhibit" exhibit@noreply.github.com Cc: "David Karger" karger@mit.edu; "Comment" comment@noreply.github.com Sent: 2/22/2019 9:24:47 AM Subject: Re: [simile-widgets/exhibit] api.simile-widgets.org not responding (#193)

I made Exhibit the centerpiece of a history course I'm teaching, and now I'm standing around with egg on my face. This makes more urgent my failed attempts to host all the software locally. I've broken my teeth on this several times. I have no trouble hosting Exhibit by itself, and Timeline by itself, but I've repeatedly failed to get an Exhibit with both Map and Timeline to run locally. Whenever I try to run a time-extension Exhibit reaches out to api.simile-widgets.org for the simile-ajax software. I can't seem to figure out how to point it at a local source.

I've attached below the from my ongoing experimental exhibit http://neolography.com/staging/itinExhibitSketchIII.html in the hope that the assembled wise here can give me a hint as to what I'm doing wrong. Perhaps there's an example out there somewhere, or some documentation?

This is the that works:

<script type="text/javascript" src="//api.simile-widgets.org/exhibit/HEAD/lib/jquery.js"></script>

<script src="//api.simile-widgets.org/exhibit/HEAD/exhibit-api.js"
        type="text/javascript">
</script>
<script src="//api.simile-widgets.org/exhibit/HEAD/extensions/time/time-extension.js"
        type="text/javascript"
        rel="exhibit-extension">
</script>
<link href="//api.simile-widgets.org/exhibit/HEAD/extensions/map/map-extension.js"
        data-ex-apikey="AIzaSyAFf2dBmbxI_2Jfs2ty-05I__yDubzE6Hk"
        type="text/javascript"
        rel="exhibit-extension" />

<link
    rel="exhibit/data"
    type="application/jsonp"        href="https://spreadsheets.google.com/feeds/list/1qZ6Sgu2qcKy-Rbc-L_5YN-zJD2jErOw2BUhur3-yWlk/od6/public/basic?hl=en_US&alt=json-in-script"
    data-ex-converter="googleSpreadsheets" />

This does not:

<script src="../../exhibit-master3.1.2-rc3/scripted/src/lib/jquery-1.12.4.min.js"
        type="text/javascript">
</script>
<script src="../../exhibit-master3.1.2-rc3/scripted/src/exhibit-api.js?bundle=false"
        type="text/javascript">
</script>
<script src="../../simile-common-master/src/webapp/api/simile-ajax.js"
        type="text/javascript">
</script>
<script src="../../exhibit-master3.1.2-rc3/scripted/src/extensions/time/time-extension.js?bundle=false"
        type="text/javascript"
        rel="exhibit-extension">
</script>
<link
    rel="exhibit-extension"
    type="text/javascript"
    href="../../exhibit-master3.1.2-rc3/scripted/src/extensions/map/map-extension.js?bundle=false"
    data-ex-apikey='AIzaSyAFf2dBmbxI_2Jfs2ty-05I__yDubzE6Hk' />

At the risk of boring you further: an experiment at a different address http://neolography.com/timelines/HIST107timeline-example.html also fails. I couldn't find a path for the timeline software that would work AND not look elsewhere for simile-ajax:

Western Civilization — You are receiving this because you commented. Reply to this email directly, view it on GitHub , or mute the thread .
karger commented 5 years ago

I've checked and we can swap the domain name back to the old server for today if today is critical; then try to finish migration over the weekend. let me know if this is worth doing.

------ Original Message ------ From: "Jon Crump" notifications@github.com To: "simile-widgets/exhibit" exhibit@noreply.github.com Cc: "David Karger" karger@mit.edu; "Comment" comment@noreply.github.com Sent: 2/22/2019 9:24:47 AM Subject: Re: [simile-widgets/exhibit] api.simile-widgets.org not responding (#193)

I made Exhibit the centerpiece of a history course I'm teaching, and now I'm standing around with egg on my face. This makes more urgent my failed attempts to host all the software locally. I've broken my teeth on this several times. I have no trouble hosting Exhibit by itself, and Timeline by itself, but I've repeatedly failed to get an Exhibit with both Map and Timeline to run locally. Whenever I try to run a time-extension Exhibit reaches out to api.simile-widgets.org for the simile-ajax software. I can't seem to figure out how to point it at a local source.

I've attached below the from my ongoing experimental exhibit http://neolography.com/staging/itinExhibitSketchIII.html in the hope that the assembled wise here can give me a hint as to what I'm doing wrong. Perhaps there's an example out there somewhere, or some documentation?

This is the that works:

<script type="text/javascript" src="//api.simile-widgets.org/exhibit/HEAD/lib/jquery.js"></script>

<script src="//api.simile-widgets.org/exhibit/HEAD/exhibit-api.js"
        type="text/javascript">
</script>
<script src="//api.simile-widgets.org/exhibit/HEAD/extensions/time/time-extension.js"
        type="text/javascript"
        rel="exhibit-extension">
</script>
<link href="//api.simile-widgets.org/exhibit/HEAD/extensions/map/map-extension.js"
        data-ex-apikey="AIzaSyAFf2dBmbxI_2Jfs2ty-05I__yDubzE6Hk"
        type="text/javascript"
        rel="exhibit-extension" />

<link
    rel="exhibit/data"
    type="application/jsonp"        href="https://spreadsheets.google.com/feeds/list/1qZ6Sgu2qcKy-Rbc-L_5YN-zJD2jErOw2BUhur3-yWlk/od6/public/basic?hl=en_US&alt=json-in-script"
    data-ex-converter="googleSpreadsheets" />

This does not:

<script src="../../exhibit-master3.1.2-rc3/scripted/src/lib/jquery-1.12.4.min.js"
        type="text/javascript">
</script>
<script src="../../exhibit-master3.1.2-rc3/scripted/src/exhibit-api.js?bundle=false"
        type="text/javascript">
</script>
<script src="../../simile-common-master/src/webapp/api/simile-ajax.js"
        type="text/javascript">
</script>
<script src="../../exhibit-master3.1.2-rc3/scripted/src/extensions/time/time-extension.js?bundle=false"
        type="text/javascript"
        rel="exhibit-extension">
</script>
<link
    rel="exhibit-extension"
    type="text/javascript"
    href="../../exhibit-master3.1.2-rc3/scripted/src/extensions/map/map-extension.js?bundle=false"
    data-ex-apikey='AIzaSyAFf2dBmbxI_2Jfs2ty-05I__yDubzE6Hk' />

At the risk of boring you further: an experiment at a different address http://neolography.com/timelines/HIST107timeline-example.html also fails. I couldn't find a path for the timeline software that would work AND not look elsewhere for simile-ajax:

Western Civilization — You are receiving this because you commented. Reply to this email directly, view it on GitHub , or mute the thread .
jjon commented 5 years ago

Thanks David. I really appreciate your trying to help. I just wish I knew what to do with that. If I plop it in naked with just my spreadsheet link, I get multiple Type errors : TypeError: Cannot read property 'createFromDOM' of undefined and the trace always points to line 1 of your exhibit-api.js

also Unknown viewClass: Map

Now I see your comment of a moment ago. That would sure save my bacon for now if it's not too much trouble

jjon commented 5 years ago

Thanks David, for trying to share with me your copies of the Exhibit libraries. I thought I'd try that to see if I could get any clues on how to host the software locally. But, as you can see from the attached clip, using your copies results in the same problem: something calls out to the api.simile-widgets.org server to get the ajax and the timeline libraries. I sure would like to find away around that. image

karger commented 5 years ago

Jon, there's a way to do what you want, but it's complicated. Here's the long explanation.

There seem to be some serious problems with the version of simile-ajax in the repository, apparently due to some development that the folks at Zepheira started but never finished. I've never successfully built a version of that code that actually works. I've asked them about it several times but never gotten a response. At this point, the compiled version on simile-widgets.org might be the only existing copy that does work.

So, I've downloaded a copy of that code onto my own machine. With it, I am able to implement an exhibit timeline that does not fetch anything from simile-widgets.org. It requires some contortions because of things that are hard-coded that shouldn't be, but it can be done as follows: on your web site, create a directory called (say) your.site/Timeline, with two subdirectories ajax and timelineinside the ajax directory, place a directory called 2.2.1 that contains all the content downloaded from http://api.simile-widgets.org/ajax/2.2.1inside the timeline directory, place a directory called 2.3.1 that contains your local instance of the timeline api (ie the file timeline-api.js and associated subdirectories. this can be compiled from src or copied from api-simile-widgets.orgappend a timelinePrefix parameter to your url like so to modify where exhibit looks for timeline in the time extension: <script src=http://any.site/time-extension.js?timelinePrefix=http://your.site/Timeline">

I've set up a working example at http://people.csail.mit.edu/karger/ExhibitK/demos/presidents/presidents.html . It looks a little odd right now since simile-widgets isn't serving style files, but it works and you can verify nothing is loading from simile-widgets.org

------ Original Message ------ From: "Jon Crump" notifications@github.com To: "simile-widgets/exhibit" exhibit@noreply.github.com Cc: "David Karger" karger@mit.edu; "Comment" comment@noreply.github.com Sent: 2/24/2019 2:42:49 PM Subject: Re: [simile-widgets/exhibit] api.simile-widgets.org not responding (#193)

Thanks David, for trying to share with me your copies of the Exhibit libraries. I thought I'd try that to see if I could get any clues on how to host the software locally. But, as you can see from the attached clip, using your copies results in the same problem: something calls out to the api.simile-widgets.org server to get the ajax and the timeline libraries. I sure would like to find away around that. image https://user-images.githubusercontent.com/279479/53304273-07125500-3828-11e9-9e2e-696f0ac20285.png

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/simile-widgets/exhibit/issues/193#issuecomment-466809588, or mute the thread https://github.com/notifications/unsubscribe-auth/ABFpXv7_7PTNitn86EFsNI_jRtsMINsJks5vQus5gaJpZM4bH76c.

sayanmitracode commented 5 years ago

Any updates on this? My publications page uses exhibit + bibtex and is now broken. http://mitras.ece.illinois.edu/pubs.html

karger commented 5 years ago

change your exhibit link to

http://api.simile-widgets.org/exhibit/current/exhibit-api.js

and it will work. You can also link to newer (somewhat faster) versions of the code described at http://api.simile-widgets.org/exhibit/

------ Original Message ------ From: "sayan m" notifications@github.com To: "simile-widgets/exhibit" exhibit@noreply.github.com Cc: "David Karger" karger@mit.edu; "Comment" comment@noreply.github.com Sent: 2/25/2019 9:53:56 AM Subject: Re: [simile-widgets/exhibit] api.simile-widgets.org not responding (#193)

Any updates on this? My publications page uses exhibit + bibtex and is now broken. http://mitras.ece.illinois.edu/pubs.html

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/simile-widgets/exhibit/issues/193#issuecomment-467040624, or mute the thread https://github.com/notifications/unsubscribe-auth/ABFpXoFbdW-qp7MHB04JACeisvjdF_sZks5vQ_kEgaJpZM4bH76c.

sayanmitracode commented 5 years ago

Thanks, David. I tried both current and 3.1.0 but he page does not load the database. Did anything else change? First few lines now look like this:

jjon commented 5 years ago

Thanks again David. I examined your Presidents example and tried about a million permutations starting from your directions with no success. What finally worked, (or it seems to have worked) was this (NB: to make my TL scrolling/Map modifications work, I had to load jQuery up front):

The <head> element for the page at http://neolography.com/itinExhibitSketchIII.html contains this:

    <script src="../exhibit-dist/lib/jquery-1.12.4.min.js"
            type="text/javascript">
    </script>

    <script src="../exhibit-dist/exhibit-api.js"
            type="text/javascript">
    </script>

    <script src="../exhibit-dist/extensions/time/time-extension.js?timelinePrefix=http://neolography.com/Timeline"
            type="text/javascript" 
            rel="exhibit-extension">
    </script>

    <link href="../exhibit-dist/extensions/map/map-extension.js"
            data-ex-apikey="MyOldGoogleMapsAPIKey"
            type="text/javascript" 
            rel="exhibit-extension" />

    <link 
        rel="exhibit/data" 
        type="application/jsonp"        href="https://spreadsheets.google.com/feeds/list/1qZ6Sgu2qcKy-Rbc-L_5YN-zJD2jErOw2BUhur3-yWlk/od6/public/basic?hl=en_US&alt=json-in-script"
        data-ex-converter="googleSpreadsheets" />

But the directory structure that supports it looks like this: image

I sure would love it if you could verify for me that this was indeed successful.

You'll note that I had to name the ajax subdirectory api rather than 2.2.1. I still don't know why, but it does seem to have worked. If you've any further observations on HOW or WHY this works, I'd love to hear about it. If you have any further information on WHY this is so hard, what modifications Zephira may have made, or what the way forward may be for better integrating Timeline into Exhibit. I'd love to hear about that too.

(edit: To make matters even weirder, if you look at the ajax/api directory in a web browser, it will proclaim that you're looking at the "Index of /ajax/2.2.1")

The Timeline visualization is a crucial element of why Exhibit is so useful. When time permits, I'd love to deploy what limited skills I have in trying to bring it up to date with the Exhibit code base. Unless, of course, you could persuade David H. to ride to our rescue.

Again, many thanks for your help.

Szepi commented 5 years ago

Any news?

jjon commented 5 years ago

As of this morning (just in time for my class where I stood again with egg on my face) the server at api.simile-widgets.org is again not responding. Quick like a bunny, I switched to my locally hosted copies of the software, quite sure it wouldn't work, but lo, it worked! The <head> script and link elements I described above, and the directory structure I pictured, works to host an Exhibit with both a Map and a Timeline visualization.

jjon commented 5 years ago

http://api.simile-widgets.org still not responding as of 4:30. I sure hope you're not paying Amazon much for that "cloud"

edit: simile.mit.edu and simile-widgets.org also dead

karger commented 5 years ago

I think we're back up now, and should stay that way until we figure out a safe migration.