ebimodeling / biocro_regional

Enabling BioCro to run regionally, starting with midwest miscanthus
University of Illinois/NCSA Open Source License
1 stars 3 forks source link

VM test - could not find a pecan.xml #14

Open taolin1 opened 8 years ago

taolin1 commented 8 years ago

library(PEcAn.all) settings.file <- c("/home/dlebauer/dev/biocro_regional/vignettes/illinois_mxg_settings.xml") settings <- read.settings(settings.file) 2015-08-31 09:04:20 SEVERE [read.settings] : Could not find a pecan.xml file Error in logger.severe("Could not find a pecan.xml file") : Could not find a pecan.xml file

dlebauer commented 8 years ago

sorry - that workflow is not on the PEcAn VM. Here is what to do:

  1. If you haven't already, and the PEcAn VM is connected to the world, change the username/password for the carya user
  2. Set up an ssh key-pair with Github
  3. clone the biocro_regional repository

    cd ${HOME}
    git clone git@github.com:ebimodeling/biocro_regional
  4. cd into the pecan directory, checkout the biocro-module branch, and build PEcAn

    cd ${HOME}/pecan
    git pull
    git fetch --all 
    git checkout -b biocro-module2
    ./scripts/build.sh --dependencies
  5. Change the file path to the PEcAn settings file
    • from "/home/dlebauer/dev/biocro_regional/vignettes/illinois_mxg_settings.xml"
    • to "${HOME}/biocro_regional/vignettes/illinois_mxg_settings.xml"

.... proceed, and let me know if this resolves the issue ...

dlebauer commented 8 years ago

How can I configure PEcAn VM to submit jobs to ROGER?

  • create a new user account
  • git clone git@github.com:pecanproject/pecan
  • ./pecan/scripts/sshkey.sh
  • follow instructions (roger-login.ncsa.illinois.edu; username, copy-paste last line in terminal beginning with cat " .... ... to send public key to roger
  • now this should work ...
haohuuiuc commented 8 years ago

Thanks, David! It works.

haohuuiuc commented 8 years ago

The sshkey setting looks okay, however, after I reload setting file and run to the following command,

start.model.runs(settings, settings$database$bety$write) # Start ecosystem model runs

It is still using my account instead of Tao's to submit jobs, any steps I missed?

haohuuiuc commented 8 years ago

Oh, just figured out I need to change the .ssh/config user name option, it works now.