Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Akash Askoolum
    @akash1810
    ok
    Eugene Brukson
    @ebrukson
    using the template that was uploaded by the script
    Akash Askoolum
    @akash1810
    we will need to take a look at the scripts
    but as you’ve got a stack, that shouldn’t be a blocker
    hopefully :smile:
    Eugene Brukson
    @ebrukson
    cool
    let me try
    Eugene Brukson
    @ebrukson

    no dice :(
    same issue as before. I had the stack running before but couldnt get media api up. Thrall seems to be running, but not media api.

    http://grid.sjmweb.com:9001/ media api
    http://grid.sjmweb.com:9002/ thrall

    dot-properties were generated accordingly
    kahuna is also up and running but giving me an error notice possible due to media-api not available
    http://grid.sjmweb.com:9005/
    Akash Askoolum
    @akash1810
    are you seeing any particular errors?
    Eugene Brukson
    @ebrukson
    This message was deleted
    No source available, here is the exception stack trace:
         Global$.onStart(Global.scala:20)
         play.api.GlobalPlugin.onStart(GlobalSettings.scala:220)
         play.api.Play$$anonfun$start$1$$anonfun$apply$mcV$sp$1.apply(Play.scala:91)
         play.api.Play$$anonfun$start$1$$anonfun$apply$mcV$sp$1.apply(Play.scala:91)
         scala.collection.immutable.List.foreach(List.scala:381)
         play.api.Play$$anonfun$start$1.apply$mcV$sp(Play.scala:91)
         play.api.Play$$anonfun$start$1.apply(Play.scala:91)
         play.api.Play$$anonfun$start$1.apply(Play.scala:91)
         play.utils.Threads$.withContextClassLoader(Threads.scala:21)
         play.api.Play$.start(Play.scala:90)
         play.core.ReloadableApplication$$anonfun$get$1$$anonfun$apply$1$$anonfun$1.apply(ApplicationProvider.scala:157)
         play.core.ReloadableApplication$$anonfun$get$1$$anonfun$apply$1$$anonfun$1.apply(ApplicationProvider.scala:130)
         scala.Option.map(Option.scala:146)
         play.core.ReloadableApplication$$anonfun$get$1$$anonfun$apply$1.apply(ApplicationProvider.scala:130)
         play.core.ReloadableApplication$$anonfun$get$1$$anonfun$apply$1.apply(ApplicationProvider.scala:128)
         scala.util.Success.flatMap(Try.scala:230)
         play.core.ReloadableApplication$$anonfun$get$1.apply(ApplicationProvider.scala:128)
         play.core.ReloadableApplication$$anonfun$get$1.apply(ApplicationProvider.scala:120)
         scala.concurrent.impl.Future$PromiseCompletingRunnable.liftedTree1$1(Future.scala:24)
         scala.concurrent.impl.Future$PromiseCompletingRunnable.run(Future.scala:24)
         scala.concurrent.forkjoin.ForkJoinTask$AdaptedRunnableAction.exec(ForkJoinTask.java:1361)
         scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
         scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
         scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
    Akash Askoolum
    @akash1810
    is elasticsearch running
    Eugene Brukson
    @ebrukson
    also in the terminal
    at play.core.ReloadableApplication$$anonfun$get$1$$anonfun$apply$1.apply(ApplicationProvider.scala:128) ~[play_2.11-2.3.8.jar:2.3.8] Caused by: com.amazonaws.services.s3.model.AmazonS3Exception: Access Denied (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; Reques t ID: 62DE76B6BD6279E8)
    Elastic search is running
    ^ needs to be run once the cf stack has been made
    Eugene Brukson
    @ebrukson

    wasnt aware
    ran it now

    still the same error. Should I restart the app?

    Akash Askoolum
    @akash1810
    yes, restart
    Eugene Brukson
    @ebrukson

    same thing, no dice

    should I restart the whole setup with a clean image? what version of Scala should I be using?

    Akash Askoolum
    @akash1810
    you shouldn’t be seeing 403s now though?
    Eugene Brukson
    @ebrukson
    sorry I terminated the service let me restart it again
    Eugene Brukson
    @ebrukson
    reinstalled from scratch on another box. Dev stack can be created now but i am getting the same error still :(
    "No sources available"
    should I look into grid setting?
    Akash Askoolum
    @akash1810
    so you've created a stack, ran post-dev-stack-creation.sh to populate the buckets with the required files and ran dot-properties to generate the files in /etc/gu/... can you start elasticsearch, then start media-api, then curl localhost:9001
    any errors, paste them here
    @ebrukson ^
    Eugene Brukson
    @ebrukson
    Untitled.png
    Here is the error I keep getting. Only Thrall runs without issues
    Akash Askoolum
    @akash1810
    iirc you’re creating your stack in us-east-1. I’ve a strong feeling your current problem is related to guardian/grid#1507
    Eugene Brukson
    @ebrukson
    ty for the tip
    I will try with eu-west-1
    Akash Askoolum
    @akash1810
    @ebrukson just a quick fyi that we’ve released #1507 now
    Eugene Brukson
    @ebrukson
    Thanks for that. create-dev-stack.sh script now works in any region for me, however the media-api service still kicks off an error
    grid_issue1.png
    Robert Kenny
    @kenoir
    @akash1810 do you think @ebrukson last problem is down to missing lines in the .properties file? That error looks familiar.
    Akash Askoolum
    @akash1810
    looks like it - CommonPlayAppProperties.scala:10suggests a missing domain.root value
    Eugene Brukson
    @ebrukson
    I have it set
    [aws]
    ; awscli profile name, defaulted to media-service Hint cat ~/.aws/credentials
    profile_name = media-service
    region = us-east-1
    
    [properties]
    ; Domain root of your site, e.g. media.foobar.co.uk
    domain_root = grid2.sjmweb.com
    
    ; Token used to access mixpanel. See https://mixpanel.com/help/questions/articles/where-can-i-find-my-project-token
    mixpanel_token =
    
    ; Comma separated list of CORS domains.
    cors = sjmweb.com, grid2.sjwmweb.com
    
    ; Configuration for pan domain authentication. See https://github.com/guardian/pan-domain-authentication
    panda_domain = sjmweb.com
    Akash Askoolum
    @akash1810
    Hmm, the line Caused by: scala.MatchError: grid2.sjmweb.com (of class java.lang.String) is curious.
    Mark Pajak
    @MarkPajak
    Hello! Please could you me know what linux OS and RAM you'd recommend to install this on? Thanks.
    Akash Askoolum
    @akash1810
    @MarkPajak no hard recommendation, however, we use ubuntu with 2GB RAM per service
    Mark Pajak
    @MarkPajak
    OK great, thanks. ALso your link to https://github.com/guardian/dev-nginx#install-ssl-certificates is giving a 404. Does the server need an SSL? Thanks
    Mark Pajak
    @MarkPajak
    I am getting a "Cannot load plugin" error when connecting ot the services over a browser : (shift+enter for line break) exception occurred during Plugin [play.api.GlobalPlugin] initialization No source available, here is the exception stack trace: ->java.lang.ExceptionInInitializerError: Global$.beforeStart(Global.scala:16) play.api.GlobalPlugin.<init>(GlobalSettings.scala:214) sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) java.lang.reflect.Constructor.newInstance(Constructor.java:422) play.api.WithDefaultPlugins$$anonfun$plugins$1$$anonfun$apply$9.apply(Application.scala:132) play.api.WithDefaultPlugins$$anonfun$plugins$1$$anonfun$apply$9.apply(Application.scala:130) scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:245) scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:245) scala.collection.immutable.List.foreach(List.scala:381) scala.collection.TraversableLike$class.map(TraversableLike.scala:245) scala.collection.immutable.List.map(List.scala:285) play.api.WithDefaultPlugins$$anonfun$plugins$1.apply(Application.scala:130) play.api.WithDefaultPlugins$$anonfun$plugins$1.apply(Application.scala:166) play.utils.Threads$.withContextClassLoader(Threads.scala:21) play.api.WithDefaultPlugins$class.plugins(Application.scala:128) play.api.DefaultApplication.plugins$lzycompute(Application.scala:402) play.api.DefaultApplication.plugins(Application.scala:402) play.api.Play$$anonfun$start$1.apply$mcV$sp(Play.scala:91) play.api.Play$$anonfun$start$1.apply(Play.scala:91) play.api.Play$$anonfun$start$1.apply(Play.scala:91) play.utils.Threads$.withContextClassLoader(Threads.scala:21) play.api.Play$.start(Play.scala:90) play.core.ReloadableApplication$$anonfun$get$1$$anonfun$apply$1$$anonfun$1.apply(ApplicationProvider.scala:157) play.core.ReloadableApplication$$anonfun$get$1$$anonfun$apply$1$$anonfun$1.apply(ApplicationProvider.scala:130) scala.Option.map(Option.scala:146) play.core.ReloadableApplication$$anonfun$get$1$$anonfun$apply$1.apply(ApplicationProvider.scala:130) play.core.ReloadableApplication$$anonfun$get$1$$anonfun$apply$1.apply(ApplicationProvider.scala:128) scala.util.Success.flatMap(Try.scala:230) play.core.ReloadableApplication$$anonfun$get$1.apply(ApplicationProvider.scala:128) play.core.ReloadableApplication$$anonfun$get$1.apply(ApplicationProvider.scala:120) scala.concurrent.impl.Future$PromiseCompletingRunnable.liftedTree1$1(Future.scala:24) scala.concurrent.impl.Future$PromiseCompletingRunnable.run(Future.scala:24) scala.concurrent.forkjoin.ForkJoinTask$AdaptedRunnableAction.exec(ForkJoinTask.java:1361) scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260) scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339) scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979) scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
    Akash Askoolum
    @akash1810
    @MarkPajak re dev-nginx - we recognise dev-nginx is a private repo, we're looking at opening it up. All it does is create nginx configurations - see here for a community response https://github.com/guardian/grid/issues/1090#issuecomment-154572622. (Note, if you run the Grid using Docker, these configurations will be generated automatically.)
    re SSL - yes it is required. All APIs operate over https
    regarding being unable to connect to a service via a browser and the stack trace - what service does this relate to?
    please also note that services must be launched from the project root - i.e. cd /path/to/grid then sbt "project media-api" "run 9001"
    Fabrizio Marmitt
    @fabriziomarmitt
    Hi guys! I am interested in using the Grid in my company, so I'm starting testing. I would like to understand one thing, the Grid works only linked to an account of the AWS?
    Thank you
    Akash Askoolum
    @akash1810
    Yes, currently you need an AWS account.