Code Monkey home page Code Monkey logo

Comments (9)

tobyweston avatar tobyweston commented on July 28, 2024

Hmmm, anything in the log file? It should be in the same folder as the config.

The file will be created (but if you were to open it, it'd be empty) and Radiate tries to set the default values. If it can't do this, when the VM exits, Radiate clears the empty file (deletes it). This is because Radiate uses the presence of the file to determine if it should try and create one (and default its values) on next startup... and round the loop you go!

Part of this defaulting of values is to actually go off to TeamCity and get the list of projects. It may well need basic auth to do that, try setting the following environment variables.

TEAMCITY_USER
TEAMCITY_PASSWORD

So for basic auth enable TeamCity, you're minimum environment variables are the two new ones above and teamcity.host. I'm going to change to case of that one btw.

What system are you running on? Windows?

from radiate.

jeffreykey avatar jeffreykey commented on July 28, 2024

Here's a full log of the first minute of uptime.

I'm using the environment variables above with success. I'd like to use the config, however, to trim out a few projects that are currently under construction.

Yes, it's running on Windows 7.

2014-03-05 12:43:59,347 INFO  [AllProjectsAsSingleTask] Failed to create Yml configuration file, falling back to use environment variables
2014-03-05 12:44:15,315 INFO  [AllProjectsMonitor] monitoring <Root project> (_Root)
Project A (ProjectA)
Main (ProjectA_Main)
CI (ProjectA_Main_CI)
Nightly (ProjectA_Main_Nightly)
Project B (ProjectB)
Project C (ProjectC)
CI (ProjectC_Ci)
Project D (ProjectB_ProjectD)
CI (ProjectB_ProjectD_Ci)
Main (Main)
CI (Main_Ci)
Nightly (Main_Nightly)
Project E (ProjectE)
Main (ProjectE_Main)
CI (ProjectE_Main_CI)
Utilities (Utilities)
Project F (Utilities_ProjectcF) as a single aggregate
2014-03-05 12:45:02,473 INFO  [AllProjectsAsSingleTask] Failed to create Yml configuration file, falling back to use environment variables
2014-03-05 12:45:04,405 ERROR [AllProjectsMonitor] java.lang.InterruptedException
com.googlecode.totallylazy.LazyException: java.lang.InterruptedException
 at com.googlecode.totallylazy.LazyException.lazyException(LazyException.java:15)
 at com.googlecode.totallylazy.Functions.call(Functions.java:78)
 at com.googlecode.totallylazy.Callers.call(Callers.java:109)
 at com.googlecode.totallylazy.iterators.MapIterator.next(MapIterator.java:23)
 at com.googlecode.totallylazy.Iterators.find(Iterators.java:281)
 at com.googlecode.totallylazy.Sequences.find(Sequences.java:457)
 at com.googlecode.totallylazy.Sequence.find(Sequence.java:287)
 at com.googlecode.totallylazy.Monad$methods.sequenceE(Monad.java:13)
 at bad.robot.radiate.teamcity.TeamCity.retrieveFullProjects(TeamCity.java:50)
 at bad.robot.radiate.teamcity.TeamCity.retrieveBuildTypes(TeamCity.java:57)
 at bad.robot.radiate.teamcity.AllProjectsMonitor.run(AllProjectsMonitor.java:38)
 at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
 at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
 at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source)
 at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
 at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.InterruptedException
 at java.util.concurrent.FutureTask.awaitDone(Unknown Source)
 at java.util.concurrent.FutureTask.get(Unknown Source)
 at com.googlecode.totallylazy.Callers$4.call(Callers.java:91)
 at com.googlecode.totallylazy.Callers$4.call(Callers.java:89)
 at com.googlecode.totallylazy.Functions.call(Functions.java:76)
 ... 16 more
2014-03-05 12:45:06,651 INFO  [DefaultHttpClient] I/O exception (java.net.SocketException) caught when processing request: Connection reset
2014-03-05 12:45:06,651 INFO  [DefaultHttpClient] Retrying request
2014-03-05 12:45:10,021 ERROR [AllProjectsMonitor] java.lang.InterruptedException
com.googlecode.totallylazy.LazyException: java.lang.InterruptedException
 at com.googlecode.totallylazy.LazyException.lazyException(LazyException.java:15)
 at com.googlecode.totallylazy.Functions.call(Functions.java:78)
 at com.googlecode.totallylazy.Callers.call(Callers.java:109)
 at com.googlecode.totallylazy.iterators.MapIterator.next(MapIterator.java:23)
 at com.googlecode.totallylazy.Iterators.find(Iterators.java:281)
 at com.googlecode.totallylazy.Sequences.find(Sequences.java:457)
 at com.googlecode.totallylazy.Sequence.find(Sequence.java:287)
 at com.googlecode.totallylazy.Monad$methods.sequenceE(Monad.java:13)
 at bad.robot.radiate.teamcity.TeamCity.retrieveFullProjects(TeamCity.java:50)
 at bad.robot.radiate.teamcity.TeamCity.retrieveBuildTypes(TeamCity.java:57)
 at bad.robot.radiate.teamcity.AllProjectsMonitor.run(AllProjectsMonitor.java:38)
 at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
 at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
 at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source)
 at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
 at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.InterruptedException
 at java.util.concurrent.FutureTask.awaitDone(Unknown Source)
 at java.util.concurrent.FutureTask.get(Unknown Source)
 at com.googlecode.totallylazy.Callers$4.call(Callers.java:91)
 at com.googlecode.totallylazy.Callers$4.call(Callers.java:89)
 at com.googlecode.totallylazy.Functions.call(Functions.java:76)
 ... 16 more

from radiate.

tobyweston avatar tobyweston commented on July 28, 2024

I've added some more logging, you can run from source or download 20140305.194947-9 (exe/scr).

Hopefully, that'll tell us more...

from radiate.

jeffreykey avatar jeffreykey commented on July 28, 2024

Here's the latest. The exception is from me closing the app.

2014-03-06 09:31:11,170 INFO  [AllProjectsAsSingleTask] Failed to create Yml configuration file (caused by an UnexpectedResponse Unexpected HTTP response from http://teamcity01.ourcorp.com:80/httpAuth/app/rest/projects (401, Unauthorized)), falling back to use environment variables
2014-03-06 09:31:19,735 INFO  [AllProjectsMonitor] monitoring <Root project> (_Root)
Dynamics (Dynamics)
Main (Dynamics_Main)
CI (Dynamics_Main_CI)
Nightly (Dynamics_Main_Nightly)
Flagship (Flagship)
Belden (Belden)
CI (Belden_Ci)
Curie (Flagship_Curie)
CI (Flagship_Curie_Ci)
Main (Main)
CI (Main_Ci)
Nightly (Main_Nightly)
Installer Framework (InstallerFramework)
Main (InstallerFramework_Main)
CI (InstallerFramework_Main_CI)
Utilities (Utilities)
ReSharper Plugin (Utilities_ReSharperPlugin) as a single aggregate
2014-03-06 10:03:59,504 INFO  [DefaultHttpClient] I/O exception (java.net.SocketException) caught when processing request: Connection reset
2014-03-06 10:03:59,504 INFO  [DefaultHttpClient] Retrying request
2014-03-06 10:24:44,246 ERROR [AllProjectsMonitor] java.lang.InterruptedException
com.googlecode.totallylazy.LazyException: java.lang.InterruptedException
    at com.googlecode.totallylazy.LazyException.lazyException(LazyException.java:15)
    at com.googlecode.totallylazy.Functions.call(Functions.java:78)
    at com.googlecode.totallylazy.Callers.call(Callers.java:109)
    at com.googlecode.totallylazy.iterators.MapIterator.next(MapIterator.java:23)
    at com.googlecode.totallylazy.Iterators.find(Iterators.java:281)
    at com.googlecode.totallylazy.Sequences.find(Sequences.java:457)
    at com.googlecode.totallylazy.Sequence.find(Sequence.java:287)
    at com.googlecode.totallylazy.Monad$methods.sequenceE(Monad.java:13)
    at bad.robot.radiate.teamcity.TeamCity.retrieveFullProjects(TeamCity.java:50)
    at bad.robot.radiate.teamcity.TeamCity.retrieveBuildTypes(TeamCity.java:57)
    at bad.robot.radiate.teamcity.AllProjectsMonitor.run(AllProjectsMonitor.java:38)
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.InterruptedException
    at java.util.concurrent.FutureTask.awaitDone(Unknown Source)
    at java.util.concurrent.FutureTask.get(Unknown Source)
    at com.googlecode.totallylazy.Callers$4.call(Callers.java:91)
    at com.googlecode.totallylazy.Callers$4.call(Callers.java:89)
    at com.googlecode.totallylazy.Functions.call(Functions.java:76)
    ... 16 more

from radiate.

tobyweston avatar tobyweston commented on July 28, 2024

Thanks. I spotted a bug where it (incorrectly) uses guest auth when its bootstrapping things even though you supply username/password for http basic auth. That last commit should fix it but I can't push a build until next week I'm afraid.

from radiate.

jeffreykey avatar jeffreykey commented on July 28, 2024

Great! Looking forward to it. Maybe now's the time for me to finally download IDEA and see if I have any Java chops -- or at least the ability to build.

from radiate.

jeffreykey avatar jeffreykey commented on July 28, 2024

Do you have an idea when you'll be pushing up the next build?

from radiate.

tobyweston avatar tobyweston commented on July 28, 2024

I've just pushed 20140313.124506-10, let me know how you get on

from radiate.

jeffreykey avatar jeffreykey commented on July 28, 2024

Got a chance to check this out late yesterday and it's working wonderfully. Thanks!

from radiate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.