Accidentally deleted app and cannot seem to set it up again

40 views
Skip to first unread message

April Browning

unread,
Oct 6, 2020, 11:51:01 AM10/6/20
to NYT Library Community
Hi there,

This is such a great tool!! I was so excited to share with my organization this beautiful library and everyone was so impressed and we were using it. But then I tried to create another library for another purpose and needed to delete the apps that I created via trial and error the first time around but I was working too late at night (Covid brain!) and I deleted the wrong one. 

I have now gone through the steps meticulously several times and each time I end up with a Server Error. Says it deployed the app but it isn't connecting to any of the docs. There is nothing under view all or search. Can you advise on any possible solutions?

Thanks,
April

Andrew Fischer

unread,
Oct 6, 2020, 11:58:43 AM10/6/20
to NYT Library Community
Hi April,

Glad you're enjoying Library! Is there any additional information alongside the error you're seeing? 

One often-missed step is sharing the drive with your service account. If you created a new service account when setting up the new app instance, you will need to share the drive with the email associated with that service account using the share menu, just as if you'd share it with another person. Those service account emails have the form {service_account_name}@{project_id}.iam.gserviceaccount.com.

- Andrew

April Browning

unread,
Oct 6, 2020, 4:58:01 PM10/6/20
to Andrew Fischer, NYT Library Community

Hi Andrew,

Thanks for your reply!

I actually posted twice here because I wasn’t sure if it posted the first time. I checked and rechecked sharing the email with google drive. I don’t see “share”, I only see “manage members” and I add the email address there.

 

Here is the error code I am getting.  Any thoughts?

2020-10-06T14:56:02.348061+00:00 heroku[router]: at=info method=GET path="/" host=mba-naturalists-library.herokuapp.com request_id=488fdb76-8a4c-43f3-931c-4bfecdb77cd7 fwd="73.71.120.103" dyno=web.1 connect=1ms service=49ms status=302 bytes=808 protocol=https

2020-10-06T14:56:02.335324+00:00 app[web.1]: info: User not authenticated

2020-10-06T14:56:02.461476+00:00 heroku[router]: at=info method=GET path="/login" host=mba-naturalists-library.herokuapp.com request_id=0d806271-8253-43cd-a7d7-1d85ed26a2c4 fwd="73.71.120.103" dyno=web.1 connect=2ms service=15ms status=302 bytes=939 protocol=https

2020-10-06T14:56:05.525549+00:00 heroku[router]: at=info method=GET path="/auth/redirect?code=4/4wEuyZgePlWcQT8i5fyP4RyqqYofy6vf9Vr40fcbBA-w3G5MUVX4F1bTv5jWM8cqkb-pVJIjK7KUlzJMfOAzjsM&scope=email%20profile%20openid%20https://www.googleapis.com/auth/userinfo.profile%20https://www.googleapis.com/auth/userinfo.email&authuser=0&hd=mbayaq.org&prompt=none" host=mba-naturalists-library.herokuapp.com request_id=f6745ad8-b99b-4c74-a4c7-b53d4c0a5aeb fwd="73.71.120.103" dyno=web.1 connect=1ms service=192ms status=302 bytes=667 protocol=http

2020-10-06T14:56:05.745455+00:00 heroku[router]: at=info method=GET path="/" host=mba-naturalists-library.herokuapp.com request_id=79f8439c-7a37-4e71-a394-f71aa56f0674 fwd="73.71.120.103" dyno=web.1 connect=1ms service=100ms status=500 bytes=33977 protocol=http

2020-10-06T14:56:05.711067+00:00 app[web.1]: error: Serving an error page for /

2020-10-06T14:56:05.711076+00:00 app[web.1]: { message: 'Cannot convert undefined or null to object',

2020-10-06T14:56:05.711077+00:00 app[web.1]:   stack:

2020-10-06T14:56:05.711081+00:00 app[web.1]:    'TypeError: Cannot convert undefined or null to object\n    at Function.keys (<anonymous>)\n    at buildDisplayCategories (/app/server/routes/pages.js:58:29)\n    at handlePage (/app/server/routes/pages.js:49:24)' }

2020-10-06T14:56:06.067751+00:00 heroku[router]: at=info method=GET path="/whoami.json" host=mba-naturalists-library.herokuapp.com request_id=e50626f8-3f13-4b07-9c02-19b17cfe2166 fwd="73.71.120.103" dyno=web.1 connect=1ms service=7ms status=304 bytes=583 protocol=http

2020-10-06T15:09:32.233675+00:00 heroku[router]: at=info method=GET path="/" host=mba-naturalists-library.herokuapp.com request_id=5ca4f2d3-8fd2-44df-9cf2-692cda62f91a fwd="73.71.120.103" dyno=web.1 connect=1ms service=7ms status=500 bytes=33977 protocol=http

2020-10-06T15:09:32.236219+00:00 app[web.1]: error: Serving an error page for /

2020-10-06T15:09:32.236242+00:00 app[web.1]: { message: 'Cannot convert undefined or null to object',

2020-10-06T15:09:32.236244+00:00 app[web.1]:   stack:

2020-10-06T15:09:32.236245+00:00 app[web.1]:    'TypeError: Cannot convert undefined or null to object\n    at Function.keys (<anonymous>)\n    at buildDisplayCategories (/app/server/routes/pages.js:58:29)\n    at handlePage (/app/server/routes/pages.js:49:24)' }

2020-10-06T15:09:32.496242+00:00 heroku[router]: at=info method=GET path="/filename-listing.json" host=mba-naturalists-library.herokuapp.com request_id=99ce4af9-ea27-4ba1-a883-8181813176d7 fwd="73.71.120.103" dyno=web.1 connect=0ms service=9ms status=304 bytes=623 protocol=http

2020-10-06T15:09:32.491037+00:00 heroku[router]: at=info method=GET path="/whoami.json" host=mba-naturalists-library.herokuapp.com request_id=a4bad6e3-1d54-4b95-9bc6-f6e1365c3e88 fwd="73.71.120.103" dyno=web.1 connect=0ms service=8ms status=304 bytes=583 protocol=http

2020-10-06T15:09:35.011319+00:00 app[web.1]: error: Serving an error page for /

2020-10-06T15:09:35.011329+00:00 app[web.1]: { message: 'Cannot convert undefined or null to object',

2020-10-06T15:09:35.011330+00:00 app[web.1]:   stack:

2020-10-06T15:09:35.011332+00:00 app[web.1]:    'TypeError: Cannot convert undefined or null to object\n    at Function.keys (<anonymous>)\n    at buildDisplayCategories (/app/server/routes/pages.js:58:29)\n    at handlePage (/app/server/routes/pages.js:49:24)' }

2020-10-06T15:09:35.015803+00:00 heroku[router]: at=info method=GET path="/" host=mba-naturalists-library.herokuapp.com request_id=1658314a-3241-42b1-a6ca-4814435625ed fwd="73.71.120.103" dyno=web.1 connect=4ms service=13ms status=500 bytes=33977 protocol=http

2020-10-06T15:09:35.220316+00:00 heroku[router]: at=info method=GET path="/whoami.json" host=mba-naturalists-library.herokuapp.com request_id=42014bdd-d7b6-4120-bc2d-80e9066a10fc fwd="73.71.120.103" dyno=web.1 connect=0ms service=3ms status=304 bytes=583 protocol=http

2020-10-06T15:09:39.294069+00:00 heroku[router]: at=info method=GET path="/" host=mba-naturalists-library.herokuapp.com request_id=afc6272d-3b3b-4457-9efe-ddb7055e323d fwd="73.71.120.103" dyno=web.1 connect=0ms service=13ms status=500 bytes=33977 protocol=http

2020-10-06T15:09:39.288816+00:00 app[web.1]: error: Serving an error page for /

2020-10-06T15:09:39.288826+00:00 app[web.1]: { message: 'Cannot convert undefined or null to object',

2020-10-06T15:09:39.288827+00:00 app[web.1]:   stack:

2020-10-06T15:09:39.288848+00:00 app[web.1]:    'TypeError: Cannot convert undefined or null to object\n    at Function.keys (<anonymous>)\n    at buildDisplayCategories (/app/server/routes/pages.js:58:29)\n    at handlePage (/app/server/routes/pages.js:49:24)' }

2020-10-06T15:09:39.533919+00:00 heroku[router]: at=info method=GET path="/whoami.json" host=mba-naturalists-library.herokuapp.com request_id=324f0cdd-d0f4-4e2b-8511-3a4611a00604 fwd="73.71.120.103" dyno=web.1 connect=0ms service=12ms status=304 bytes=583 protocol=http

2020-10-06T15:44:11.310289+00:00 heroku[web.1]: Idling

2020-10-06T15:44:11.312449+00:00 heroku[web.1]: State changed from up to down

2020-10-06T15:44:12.870152+00:00 heroku[web.1]: Stopping all processes with SIGTERM

2020-10-06T15:44:13.131754+00:00 heroku[web.1]: Process exited with status 143

Disconnected from log stream. There may be events happening that you do not see here! Attempting to reconnect...

Connection to log stream failed. Please try again later.

 

 


--
You received this message because you are subscribed to a topic in the Google Groups "NYT Library Community" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/nyt-library-community/TH9DRURem-A/unsubscribe.
To unsubscribe from this group and all its topics, send an email to nyt-library-comm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nyt-library-community/191fd2c2-8e08-4dc2-8428-928ef4bca277n%40googlegroups.com.

April Browning

unread,
Oct 12, 2020, 6:44:48 PM10/12/20
to NYT Library Community
Hi Andrew and others,

Does the log I posted help to see where my code is broken? A lot of people keep asking me when this library will be back up and running. :(
Reply all
Reply to author
Forward
0 new messages