PecanProject / pecan

The Predictive Ecosystem Analyzer (PEcAn) is an integrated ecological bioinformatics toolbox.
www.pecanproject.org
Other
202 stars 231 forks source link

Google map isn't loading on 03-inputs.php #860

Closed serbinsh closed 8 years ago

serbinsh commented 8 years ago

screen shot 2016-06-03 at 7 29 32 am

It seems Google maps aren't loading anymore for me on modex after an update yesterday afternoon. Any suggestions on what might cause this? Because of this I can't move past this stage of the web workflow. Anyone else having this problem? Maybe just me.

@robkooper @mdietze ?

mdietze commented 8 years ago

Just pulled the latest code and everything works fine for me

robkooper commented 8 years ago

This is what the interface looks like when you have selected offline.

serbinsh commented 8 years ago

@robkooper I am not intentionally selecting offline. plus I am unable to click "next" Does that shed any light? Plus my previous button won't work on that page anymore? Google maps do load fine on 02-modelsite.php

screen shot 2016-06-03 at 1 50 15 pm

serbinsh commented 8 years ago

Ahh!!! If I DO select Offline on 01-introduction.php then everything works fine. So it seems on my system I have a bug on the 03-inputs page where the PHP doesn't seem to be loading correctly??

serbinsh commented 8 years ago

@robkooper I was wrong, even in offline mode things aren't working. I get this in the workflow.Rout

> # ----------------------------------------------------------------------
> # Load required libraries
> # ----------------------------------------------------------------------
> library(PEcAn.all)
Loading required package: PEcAn.DB
Loading required package: DBI
Loading required package: PEcAn.utils
Loading required package: abind
Loading required package: plyr
Loading required package: XML
Loading required package: ggplot2
Loading required package: randtoolbox
Loading required package: rngWELL
This is randtoolbox. For overview, type 'help("randtoolbox")'.
Loading required package: RCurl
Loading required package: bitops
Loading required package: PEcAn.settings
Loading required package: lubridate

Attaching package: 'lubridate'

The following object is masked from 'package:plyr':

    here

The following object is masked from 'package:base':

    date

Loading required package: PEcAn.MA
Loading required package: lattice
Loading required package: MASS
Loading required package: PEcAn.uncertainty
Loading required package: PEcAn.priors
Loading required package: gridExtra
Loading required package: PEcAn.data.atmosphere
Loading required package: ncdf4
Loading required package: udunits2
Loading required package: data.table

Attaching package: 'data.table'

The following objects are masked from 'package:lubridate':

    hour, mday, month, quarter, wday, week, yday, year

Loading required package: REddyProc
Loading required package: PEcAn.data.land
Loading required package: PEcAn.data.remote
Loading required package: PEcAn.assim.batch
Loading required package: PEcAn.emulator
Loading required package: mvtnorm
Loading required package: MCMCpack
Loading required package: coda
##
## Markov Chain Monte Carlo Package (MCMCpack)
## Copyright (C) 2003-2016 Andrew D. Martin, Kevin M. Quinn, and Jong Hee Park
##
## Support provided by the U.S. National Science Foundation
## (Grants SES-0350646 and SES-0350613)
##
> library(RCurl)
> 
> #--------------------------------------------------------------------------------#
> # Functions used to write STATUS used by history
> #--------------------------------------------------------------------------------#
> status.start <- function(name) {
+   if (exists("settings")) {
+     cat(paste(name,
+               format(Sys.time(), "%F %T"), sep="\t"),
+         file=file.path(settings$outdir, "STATUS"), append=TRUE)
+   }
+ }
> status.end <- function(status="DONE") {
+   if (exists("settings")) {
+     cat(paste("",
+               format(Sys.time(), "%F %T"),
+               status,
+               "\n", sep="\t"),
+         file=file.path(settings$outdir, "STATUS"), append=TRUE)
+   }
+ }
> status.skip <- function(name) {
+   if (exists("settings")) {
+     cat(paste(name,
+               format(Sys.time(), "%F %T"),
+               "",
+               format(Sys.time(), "%F %T"),
+               "SKIPPED",
+               "\n", sep="\t"),
+         file=file.path(settings$outdir, "STATUS"), append=TRUE)
+   }
+ }
> status.check <- function(name) {
+   if (!exists("settings")) return (0)
+   status.file=file.path(settings$outdir, "STATUS")
+   if (!file.exists(status.file)){
+     return (0)
+   }
+   status.data <- read.table(status.file, row.names=1, header=FALSE, sep="\t", quote="", fill=TRUE)
+   if (! name %in% row.names(status.data)) {
+     return (0)
+   }
+   status.data[name,]
+   if (is.na(status.data[name, 3])) {
+     logger.warn("UNKNOWN STATUS FOR", name)
+     return (0)
+   }
+   if (status.data[name, 3] == "DONE") {
+     return (1)
+   }
+   if (status.data[name, 3] == "ERROR") {
+     return (-1)
+   }
+   return (0)
+ }
> kill.tunnel <- function() {
+   if (exists("settings") && !is.null(settings$run$host$tunnel)) {
+     pidfile <- file.path(dirname(settings$run$host$tunnel), "pid")
+     pid <- readLines(pidfile)
+     print(paste("Killing tunnel with PID", pid))
+     tools::pskill(pid)
+     file.remove(pidfile)
+   }
+ }
> 
> # make sure always to call status.end
> options(warn=1)
> options(error=quote({
+   status.end("ERROR")
+   kill.tunnel()
+   if (!interactive()) {
+     q()
+   }
+ }))
> 
> #options(warning.expression=status.end("ERROR"))
> 
> 
> # ----------------------------------------------------------------------
> # PEcAn Workflow
> # ----------------------------------------------------------------------
> # Open and read in settings file for PEcAn run.
> args <- commandArgs(trailingOnly = TRUE)
> if (is.na(args[1])){
+   settings <- read.settings("pecan.xml")
+ } else {
+   settings.file = args[1]
+   settings <- read.settings(settings.file)
+ }
2016-06-03 13:54:00 INFO   [read.settings] : 
   Loading inpufile= pecan.xml 
EntityRef: expecting ';'
Error: 1: EntityRef: expecting ';'
> proc.time()
   user  system elapsed 
  3.999   0.186   4.163 
serbinsh commented 8 years ago

@robkooper Plus the runs aren't getting updated in BETY now? These are new issues that seem to have started somewhere witin the last few updates, potentially updates to the web pages and/or PHP code?

serbinsh commented 8 years ago

@robkooper Do I need to update php or anything to address these issues? Any other updates I would need? I still can't seem to get the web pages to load properly anymore.

serbinsh commented 8 years ago

@robkooper @mdietze

Let me see if this makes sense at all.....this wasn't working....but I just installed R shiny server (and depends) and now the web pages are loading. Was this the trick and I didn't know? Does this make sense?

serbinsh commented 8 years ago

.....actually, this is site specific issue?! I have been trying Sylvania and that fails but Niwot and US-WCr works fine? So it seems this issue of Google maps loading is specific to Sylvania and possibly other sites?

I know there have been some mods to BETY to deal with sites, etc.....maybe that is to blame?

Thus what I mentioned about RE shiny isn't accurate......I thought it may have fixed it but no

robkooper commented 8 years ago

Cool, I got the same problem with Sylvania, that seems to be the missing piece.

robkooper commented 8 years ago

should be fixed now, open again if you find any other broken sites.

serbinsh commented 8 years ago

Thanks @robkooper !

serbinsh commented 8 years ago

@robkooper FYI - Sylvania working again for me.