Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stack trace @installation #190

Closed
jbasalone opened this issue Aug 7, 2014 · 13 comments
Closed

stack trace @installation #190

jbasalone opened this issue Aug 7, 2014 · 13 comments
Assignees

Comments

@jbasalone
Copy link

so I am struggling getting past this stack trace for a new installation from scratch .

screen shot 2014-08-06 at 4 58 46 pm

root@ip-10-70-3-43:~# java -version
java version "1.6.0_31"
OpenJDK Runtime Environment (IcedTea6 1.13.3) (6b31-1.13.3-1ubuntu1)
OpenJDK 64-Bit Server VM (build 23.25-b01, mixed mode)

root@ip-10-70-3-43:~# uname -ar
Linux ip-10-70-3-43 3.13.0-29-generic #53-Ubuntu SMP Wed Jun 4 21:00:20 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

! @6j5lii2kl - Internal server error, for request [GET /] ->

play.api.UnexpectedException: Unexpected exception [ObjectExistsException: Cache play already exists]
at play.core.ReloadableApplication$$anonfun$get$1$$anonfun$apply$3$$anonfun$1.apply(ApplicationProvider.scala:134) ~[play_2.9.1.jar:2.0.4]
at play.core.ReloadableApplication$$anonfun$get$1$$anonfun$apply$3$$anonfun$1.apply(ApplicationProvider.scala:112) ~[play_2.9.1.jar:2.0.4]
at scala.Option.map(Option.scala:133) ~[scala-library.jar:0.11.3]
at play.core.ReloadableApplication$$anonfun$get$1$$anonfun$apply$3.apply(ApplicationProvider.scala:112) ~[play_2.9.1.jar:2.0.4]
at play.core.ReloadableApplication$$anonfun$get$1$$anonfun$apply$3.apply(ApplicationProvider.scala:110) ~[play_2.9.1.jar:2.0.4]
at scala.Either$RightProjection.flatMap(Either.scala:277) ~[scala-library.jar:0.11.3]
at play.core.ReloadableApplication$$anonfun$get$1.apply(ApplicationProvider.scala:110) ~[play_2.9.1.jar:2.0.4]
at play.core.ReloadableApplication$$anonfun$get$1.apply(ApplicationProvider.scala:110) ~[play_2.9.1.jar:2.0.4]
at akka.dispatch.Future$$anon$3.liftedTree1$1(Future.scala:195) ~[akka-actor.jar:2.0.2]
at akka.dispatch.Future$$anon$3.run(Future.scala:194) ~[akka-actor.jar:2.0.2]
at akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:94) ~[akka-actor.jar:2.0.2]
at akka.jsr166y.ForkJoinTask$AdaptedRunnableAction.exec(ForkJoinTask.java:1381) ~[akka-actor.jar:2.0.2]
at akka.jsr166y.ForkJoinTask.doExec(ForkJoinTask.java:259) ~[akka-actor.jar:2.0.2]
at akka.jsr166y.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:975) ~[akka-actor.jar:2.0.2]
at akka.jsr166y.ForkJoinPool.runWorker(ForkJoinPool.java:1479) ~[akka-actor.jar:2.0.2]
at akka.jsr166y.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104) ~[akka-actor.jar:2.0.2]
Caused by: net.sf.ehcache.ObjectExistsException: Cache play already exists
at net.sf.ehcache.CacheManager.addCache(CacheManager.java:990) ~[ehcache-core.jar:na]
at play.api.cache.EhCachePlugin.x$3(Cache.scala:111) ~[play_2.9.1.jar:2.0.4]
at play.api.cache.EhCachePlugin.cache(Cache.scala:109) ~[play_2.9.1.jar:2.0.4]
at play.api.cache.EhCachePlugin.onStart(Cache.scala:127) ~[play_2.9.1.jar:2.0.4]
at play.api.Play$$anonfun$start$1.apply(Play.scala:60) ~[play_2.9.1.jar:2.0.4]
at play.api.Play$$anonfun$start$1.apply(Play.scala:60) ~[play_2.9.1.jar:2.0.4]
at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59) ~[scala-library.jar:0.11.3]
at scala.collection.immutable.List.foreach(List.scala:45) ~[scala-library.jar:0.11.3]
at play.api.Play$.start(Play.scala:60) ~[play_2.9.1.jar:2.0.4]
at play.core.ReloadableApplication$$anonfun$get$1$$anonfun$apply$3$$anonfun$1.apply(ApplicationProvider.scala:125) ~[play_2.9.1.jar:2.0.4]
... 15 common frames omitted

@william-richard
Copy link
Contributor

Currently, Collins supports play 2.0.8 only, and it looks like you may be running with play 2.9.1. Does that seem right?

Just in case, here's a link to play 2.0.8

Let me know if that fixes your problem!

@william-richard william-richard self-assigned this Aug 7, 2014
@jbasalone
Copy link
Author

,,,
root@ip-10-70-3-43:~/src/play-2.0.8# ./play -version
Getting play console_2.9.1 2.0.8 ...
:: retrieving :: org.scala-sbt#boot-app
confs: [default]
5 artifacts copied, 0 already retrieved (3667kB/24ms)
_ _
_ __ | | __ _ _ | |
| '
| |/ ' | || ||
| /|_|__|__ ()
|
| |__/

play! 2.0.8, http://www.playframework.org
,,,

Also, the link on the collins page is dead so you have to go to the site to pull it

@william-richard
Copy link
Contributor

Gah I'm sorry about my mistake and the broken link. The link should be better now.

Can you try asking play to clean up after itself? This is sometimes caused by a messed up project directory.

~/src/play-2.0.8/play clean
~/src/play-2.0.8/play clean-all

@jbasalone
Copy link
Author

Same thing.

screen shot 2014-08-07 at 10 59 54 am

[collins] $ run

[info] Updating {file:/home/ubuntu/src/collins/}collins...
[info] Done updating.
--- (Running the application from SBT, auto-reloading is enabled) ---

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/home/ubuntu/src/collins/lib/logback-classic.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/home/ubuntu/src/play-2.0.8/framework/../repository/local/ch.qos.logback/logback-classic/1.0.0/jars/logback-classic.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [ch.qos.logback.classic.selector.DefaultContextSelector]

(Server started, use Ctrl+D to stop and go back to the console...)

[info] Compiling 323 Scala sources and 8 Java sources to /home/ubuntu/src/collins/target/scala-2.9.1/classes...

Last Application Log Entry

2014-08-07 17:59:40,472 - [WARN] - from play in New I/O server worker #1-1 Applying evolution script for database 'collins':

--- Rev:1,Ups - 2754d7b

CREATE TABLE status (
id INTEGER NOT NULL AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(16) NOT NULL UNIQUE,
description VARCHAR(255) NOT NULL
);
CREATE TABLE asset_type (
id INTEGER NOT NULL AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(255) NOT NULL UNIQUE
);
CREATE TABLE asset (
id BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY,
tag VARCHAR(255) NOT NULL UNIQUE,
status INTEGER NOT NULL,
asset_type INTEGER NOT NULL,
created TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
updated TIMESTAMP NULL,
deleted TIMESTAMP NULL,
CONSTRAINT fk_status FOREIGN KEY (status) REFERENCES status(id),
CONSTRAINT fk_type FOREIGN KEY (asset_type) REFERENCES asset_type (id)
);
CREATE INDEX status_idx ON asset (status);
CREATE INDEX asset_type_idx ON asset (asset_type);
CREATE INDEX created_idx ON asset (created);
CREATE INDEX updated_idx ON asset (updated);

CREATE TABLE asset_meta (
id BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(255) NOT NULL UNIQUE,
priority INTEGER NOT NULL DEFAULT -1,
label VARCHAR(255) NOT NULL,
description VARCHAR(255) NOT NULL
);
CREATE INDEX asset_meta_idx ON asset_meta (priority);

CREATE TABLE asset_meta_value (
asset_id BIGINT NOT NULL,
asset_meta_id BIGINT NOT NULL,
group_id INTEGER NOT NULL DEFAULT 0,
value TEXT,
CONSTRAINT fk_amv_asset_id FOREIGN KEY (asset_id) REFERENCES asset (id) ON DELETE CASCADE,
CONSTRAINT fk_amv_asset_meta_id FOREIGN KEY (asset_meta_id) REFERENCES asset_meta (id)
);
CREATE INDEX amv_ids ON asset_meta_value (asset_id, asset_meta_id);
CREATE INDEX amv_mid ON asset_meta_value (asset_meta_id);
CREATE INDEX amv_gid ON asset_meta_value (group_id);

-- NOTE Because format/source/message_type are not user manageable, we do not have another table
-- that tracks the text for each of these. It could be easily added.
CREATE TABLE asset_log (
id BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY,
asset_id BIGINT NOT NULL,
created TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
format TINYINT NOT NULL DEFAULT 0, -- 0=text,1=json,....
source TINYINT NOT NULL DEFAULT 0, -- 0=internal,1=API,2=User,....
message_type TINYINT NOT NULL DEFAULT 0, -- 0=note,1=error,2=lifecycle,...
message TEXT
);
CREATE INDEX al_aid ON asset_log (asset_id,message_type);

CREATE TABLE ipmi_info (
id BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY,
asset_id BIGINT NOT NULL UNIQUE,
username VARCHAR(64) NOT NULL,
password VARCHAR(90) NOT NULL,
gateway BIGINT NOT NULL,
address BIGINT NOT NULL UNIQUE,
netmask BIGINT NOT NULL,
CONSTRAINT fk_ipmi_aid FOREIGN KEY (asset_id) REFERENCES asset (id) ON DELETE CASCADE
);
CREATE INDEX ipmi_gateway_idx ON ipmi_info (gateway);
CREATE INDEX ipmi_netmask_idx ON ipmi_info (netmask);

--- Rev:2,Ups - 3425b37

INSERT INTO status VALUES (1, 'New', 'Asset has been entered into the system');
INSERT INTO status VALUES (2, 'Unallocated', 'Asset has gone through intake');
INSERT INTO status VALUES (3, 'Allocated', 'Asset is in use or is ready for use');
INSERT INTO status VALUES (4, 'Cancelled', 'Asset is scheduled for decommissioning');
INSERT INTO status VALUES (5, 'Maintenance', 'Asset is scheduled for maintenance');
INSERT INTO status VALUES (6, 'Decommissioned', 'Asset is gone');
INSERT INTO status VALUES (7, 'Incomplete', 'Asset has not been finalized');

INSERT INTO asset_type VALUES (1, 'Server Node');
INSERT INTO asset_type VALUES (2, 'Server Chassis');
INSERT INTO asset_type VALUES (3, 'Rack');
INSERT INTO asset_type VALUES (4, 'Switch');
INSERT INTO asset_type VALUES (5, 'Router');
INSERT INTO asset_type VALUES (6, 'Power Circuit');
INSERT INTO asset_type VALUES (7, 'Power Strip');
INSERT INTO asset_type VALUES (8, 'Data Center');

INSERT INTO asset_meta VALUES (1, 'SERVICE_TAG', 1, 'Service Tag', 'Vendor supplied service tag');
INSERT INTO asset_meta VALUES (2, 'CHASSIS_TAG', 1, 'Chassis Tag', 'Tag for asset chassis');
INSERT INTO asset_meta VALUES (3, 'RACK_POSITION', 1, 'Rack Position', 'Position of asset in rack');
INSERT INTO asset_meta VALUES (4, 'POWER_PORT', 2, 'Power Port', 'Power port of asset');
INSERT INTO asset_meta VALUES (5, 'SWITCH_PORT', 2, 'Switch Port', 'Switch port that asset is connected to');

INSERT INTO asset_meta VALUES (6, 'CPU_COUNT', -1, 'CPU Count', 'Number of physical CPUs in asset');
INSERT INTO asset_meta VALUES (7, 'CPU_CORES', -1, 'CPU Cores', 'Number of cores per physical CPU');
INSERT INTO asset_meta VALUES (8, 'CPU_THREADS', -1, 'CPU Threads', 'Number of threads per CPU core');
INSERT INTO asset_meta VALUES (9, 'CPU_SPEED_GHZ', 3, 'CPU Speed', 'CPU Speed in GHz');
INSERT INTO asset_meta VALUES (10, 'CPU_DESCRIPTION', -1, 'CPU Description', 'CPU description, vendor labels');

INSERT INTO asset_meta VALUES (11, 'MEMORY_SIZE_BYTES', -1, 'Memory', 'Size of Memory Stick');
INSERT INTO asset_meta VALUES (12, 'MEMORY_DESCRIPTION', -1, 'Memory Description', 'Memory description, vendor label');
INSERT INTO asset_meta VALUES (13, 'MEMORY_SIZE_TOTAL', 4, 'Memory Total', 'Total amount of available memory in bytes');
INSERT INTO asset_meta VALUES (14, 'MEMORY_BANKS_TOTAL', -1, 'Memory Banks', 'Total number of memory banks');

INSERT INTO asset_meta VALUES (15, 'NIC_SPEED', 5, 'NIC Speed', 'Speed of nic, stored as bits per second');
INSERT INTO asset_meta VALUES (16, 'MAC_ADDRESS', 2, 'MAC Address', 'MAC Address of NIC');
INSERT INTO asset_meta VALUES (17, 'NIC_DESCRIPTION', -1, 'NIC Description', 'Vendor labels for NIC');

INSERT INTO asset_meta VALUES (18, 'DISK_SIZE_BYTES', -1, 'Disk Size', 'Disk size in bytes');
INSERT INTO asset_meta VALUES (19, 'DISK_TYPE', 6, 'Inferred disk type', 'Inferred disk type: SCSI, IDE or FLASH');
INSERT INTO asset_meta VALUES (20, 'DISK_DESCRIPTION', -1, 'Disk Description', 'Vendor labels for disk');
INSERT INTO asset_meta VALUES (21, 'DISK_STORAGE_TOTAL', 7, 'Total disk storage', 'Total amount of available storage');

INSERT INTO asset_meta VALUES (22, 'LLDP_INTERFACE_NAME', -1, 'LLDP Interface Name', 'Interface name reported by lldpctl');
INSERT INTO asset_meta VALUES (23, 'LLDP_CHASSIS_NAME', -1, 'LLDP Chassis Name', 'Chassis name reported by lldpctl');
INSERT INTO asset_meta VALUES (24, 'LLDP_CHASSIS_ID_TYPE', -1, 'LLDP Chassis ID Type', 'Chassis ID Type reported by lldpctl');
INSERT INTO asset_meta VALUES (25, 'LLDP_CHASSIS_ID_VALUE', -1, 'LLDP Chassis ID Value', 'Chassis ID Value reported by lldpctl');
INSERT INTO asset_meta VALUES (26, 'LLDP_CHASSIS_DESCRIPTION', -1, 'LLDP Chassis Description', 'Chassis Description reported by lldpctl');
INSERT INTO asset_meta VALUES (27, 'LLDP_PORT_ID_TYPE', -1, 'LLDP Port ID Type', 'Port ID Type reported by lldpctl');
INSERT INTO asset_meta VALUES (28, 'LLDP_PORT_ID_VALUE', -1, 'LLDP Port ID Value', 'Port ID Value reported by lldpctl');
INSERT INTO asset_meta VALUES (29, 'LLDP_PORT_DESCRIPTION', -1, 'LLDP Port Description', 'Port Description reported by lldpctl');
INSERT INTO asset_meta VALUES (30, 'LLDP_VLAN_ID', -1, 'LLDP VLAN ID', 'VLAN ID reported by lldpctl');
INSERT INTO asset_meta VALUES (31, 'LLDP_VLAN_NAME', -1, 'LLDP VLANE Name', 'VLAN name reported by lldpctl');
INSERT INTO asset_meta VALUES (32, 'INTERFACE_NAME', -1, 'Interface Name', 'Name of physical interface, e.g. eth0');
INSERT INTO asset_meta VALUES (33, 'INTERFACE_ADDRESS', 0, 'IP Address', 'Address on interface, e.g. 10.0.0.1');

INSERT INTO asset VALUES (1, 'tumblrtag1', 7, 1, CURRENT_TIMESTAMP, null, null);

-- gateway 10.0.0.1, ip address 10.0.0.2, netmask /19 = 255.255.224.0
INSERT INTO ipmi_info VALUES(1, 1, 'test-user', '', 167772161, 167772162, 4294959104);

INSERT INTO asset_meta_value VALUES(1, 1, 0, 'dell service tag 123');
INSERT INTO asset_meta_value VALUES(1, 2, 0, 'chassis tag abc');

INSERT INTO asset_log SET asset_id=1, message_type=6, message='Automatically created by database migration';

--- Rev:3,Ups - eb35112

INSERT INTO asset_type VALUES (9, 'Configuration');

--- Rev:4,Ups - edccf21

INSERT INTO status VALUES (8, 'Provisioning', 'Asset is currently being provisioned');
INSERT INTO status VALUES (9, 'Provisioned', 'Asset is provisioned but not allocated');

--- Rev:5,Ups - ae4d06e

CREATE TABLE ip_addresses (
id BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY,
asset_id BIGINT NOT NULL,
gateway BIGINT NOT NULL,
address BIGINT NOT NULL UNIQUE,
netmask BIGINT NOT NULL,
CONSTRAINT fk_ip_addr_aid FOREIGN KEY (asset_id) REFERENCES asset (id) ON DELETE CASCADE
);
CREATE INDEX ip_gateway_idx ON ip_addresses (gateway);
CREATE INDEX ip_netmask_idx ON ip_addresses (netmask);
CREATE INDEX ip_combo ON ip_addresses (asset_id, address);

--- Rev:6,Ups - 1e9f094

ALTER TABLE ip_addresses ADD COLUMN pool CHAR(32) NOT NULL DEFAULT '';
CREATE INDEX pool_idx ON ip_addresses (pool);

--- Rev:7,Ups - fb952d8

UPDATE asset_meta SET priority = -1 WHERE id=33;

--- Rev:8,Ups - 7511724

ALTER TABLE asset_meta ADD value_type INT(4) NOT NULL DEFAULT 1;

--- Rev:9,Ups - 4c19e33

CREATE TABLE state (
id INTEGER NOT NULL AUTO_INCREMENT PRIMARY KEY,
status INTEGER NOT NULL DEFAULT 0,
name VARCHAR(32) NOT NULL DEFAULT '' UNIQUE,
label VARCHAR(32) NOT NULL DEFAULT '',
description VARCHAR(255) NOT NULL DEFAULT ''
);
CREATE INDEX state_status_idx ON state(status);

ALTER TABLE asset ADD COLUMN state INTEGER NOT NULL DEFAULT 0;
CREATE INDEX asset_state_idx ON asset (state);

INSERT INTO state VALUES(1, 0, 'NEW', 'New', 'A service in this state is inactive. It does minimal work and consumes minimal resources.');
INSERT INTO state VALUES(2, 0, 'STARTING', 'Starting', 'A service in this state is transitioning to Running.');
INSERT INTO state VALUES(3, 0, 'RUNNING', 'Running', 'A service in this state is operational.');
INSERT INTO state VALUES(4, 0, 'STOPPING', 'Stopping', 'A service in this state is transitioning to Terminated.');
INSERT INTO state VALUES(5, 0, 'TERMINATED', 'Terminated', 'A service in this state has completed execution normally. It does minimal work and consumes minimal resources.');
INSERT INTO state VALUES(6, 0, 'FAILED', 'Failed', 'A service in this state has encountered a problem and may not be operational. It cannot be started nor stopped.');
INSERT INTO state VALUES(7, 5, 'RELOCATION', 'Relocation', 'An asset is being physically relocated.');
INSERT INTO state VALUES(8, 5, 'IPMI_PROBLEM', 'IPMI Problem', 'An asset is experiencing IPMI issues and needs to be examined. It needs investigation.');
INSERT INTO state VALUES(9, 5, 'HARDWARE_PROBLEM', 'Hardware Problem', 'An asset is experiencing a non-IPMI issue and needs to be examined. It needs investigation.');
INSERT INTO state VALUES(10, 5, 'NETWORK_PROBLEM', 'Network Problem', 'An asset is experiencing a network problem that may or may not be hardware related. It needs investigation.');
INSERT INTO state VALUES(11, 5, 'HARDWARE_UPGRADE', 'Hardware Upgrade', 'An asset is in need or in process of having hardware upgraded.');
INSERT INTO state VALUES(12, 5, 'HW_TESTING', 'Hardware Testing', 'Performing some testing that requires putting the asset into a maintenance state.');
INSERT INTO state VALUES(13, 5, 'MAINT_NOOP', 'Maintenance NOOP', 'Doing nothing, bouncing this through maintenance for my own selfish reasons.');

--- Rev:10,Ups - 2aea1a8

ALTER TABLE asset_type ADD COLUMN label VARCHAR(255) NOT NULL DEFAULT '';
UPDATE asset_type SET name='SERVER_NODE', label='Server Node' WHERE id=1;
UPDATE asset_type SET name='SERVER_CHASSIS', label='Server Chassis' WHERE id=2;
UPDATE asset_type SET name='RACK', label='Rack' WHERE id=3;
UPDATE asset_type SET name='SWITCH', label='Switch' WHERE id=4;
UPDATE asset_type SET name='ROUTER', label='Router' WHERE id=5;
UPDATE asset_type SET name='POWER_CIRCUIT', label='Power Circuit' WHERE id=6;
UPDATE asset_type SET name='POWER_STRIP', label='Power Strip' WHERE id=7;
UPDATE asset_type SET name='DATA_CENTER', label='Data Center' WHERE id=8;
UPDATE asset_type SET name='CONFIGURATION', label='Configuration' WHERE id=9;

--- Rev:11,Ups - 1a5a1ae

INSERT INTO asset_meta (name, priority, label, description) VALUES ('BASE_PRODUCT', 1, 'Base Product', 'Formal product model designation');
INSERT INTO asset_meta (name, priority, label, description) VALUES ('BASE_VENDOR', 1, 'Base Vendor', 'Who made your spiffy computer?');
INSERT INTO asset_meta (name, priority, label, description) VALUES ('BASE_DESCRIPTION', -1, 'Base Description', 'How does your computer introduce itself?');

2014-08-07 17:59:41,861 - [INFO] - from play in play-akka.actor.default-dispatcher-2 database [collins] connected at jdbc:h2:mem:play
2014-08-07 17:59:41,870 - [INFO] - from play in play-akka.actor.default-dispatcher-2 database [collins] connected at jdbc:h2:mem:play
2014-08-07 17:59:41,917 - [ERROR] - from application in New I/O server worker #1-1

! @6j614b2i2 - Internal server error, for request [GET /] ->

play.api.UnexpectedException: Unexpected exception [ObjectExistsException: Cache play already exists]
at play.core.ReloadableApplication$$anonfun$get$1$$anonfun$apply$3$$anonfun$1.apply(ApplicationProvider.scala:134) ~[play_2.9.1.jar:2.0.4]
at play.core.ReloadableApplication$$anonfun$get$1$$anonfun$apply$3$$anonfun$1.apply(ApplicationProvider.scala:112) ~[play_2.9.1.jar:2.0.4]
at scala.Option.map(Option.scala:133) ~[scala-library.jar:0.11.3]
at play.core.ReloadableApplication$$anonfun$get$1$$anonfun$apply$3.apply(ApplicationProvider.scala:112) ~[play_2.9.1.jar:2.0.4]
at play.core.ReloadableApplication$$anonfun$get$1$$anonfun$apply$3.apply(ApplicationProvider.scala:110) ~[play_2.9.1.jar:2.0.4]
at scala.Either$RightProjection.flatMap(Either.scala:277) ~[scala-library.jar:0.11.3]
at play.core.ReloadableApplication$$anonfun$get$1.apply(ApplicationProvider.scala:110) ~[play_2.9.1.jar:2.0.4]
at play.core.ReloadableApplication$$anonfun$get$1.apply(ApplicationProvider.scala:110) ~[play_2.9.1.jar:2.0.4]
at akka.dispatch.Future$$anon$3.liftedTree1$1(Future.scala:195) ~[akka-actor.jar:2.0.2]
at akka.dispatch.Future$$anon$3.run(Future.scala:194) ~[akka-actor.jar:2.0.2]
at akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:94) ~[akka-actor.jar:2.0.2]
at akka.jsr166y.ForkJoinTask$AdaptedRunnableAction.exec(ForkJoinTask.java:1381) ~[akka-actor.jar:2.0.2]
at akka.jsr166y.ForkJoinTask.doExec(ForkJoinTask.java:259) ~[akka-actor.jar:2.0.2]
at akka.jsr166y.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:975) ~[akka-actor.jar:2.0.2]
at akka.jsr166y.ForkJoinPool.runWorker(ForkJoinPool.java:1479) ~[akka-actor.jar:2.0.2]
at akka.jsr166y.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104) ~[akka-actor.jar:2.0.2]
Caused by: net.sf.ehcache.ObjectExistsException: Cache play already exists
at net.sf.ehcache.CacheManager.addCache(CacheManager.java:990) ~[ehcache-core.jar:na]
at play.api.cache.EhCachePlugin.x$3(Cache.scala:111) ~[play_2.9.1.jar:2.0.4]
at play.api.cache.EhCachePlugin.cache(Cache.scala:109) ~[play_2.9.1.jar:2.0.4]
at play.api.cache.EhCachePlugin.onStart(Cache.scala:127) ~[play_2.9.1.jar:2.0.4]
at play.api.Play$$anonfun$start$1.apply(Play.scala:60) ~[play_2.9.1.jar:2.0.4]
at play.api.Play$$anonfun$start$1.apply(Play.scala:60) ~[play_2.9.1.jar:2.0.4]
at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59) ~[scala-library.jar:0.11.3]
at scala.collection.immutable.List.foreach(List.scala:45) ~[scala-library.jar:0.11.3]
at play.api.Play$.start(Play.scala:60) ~[play_2.9.1.jar:2.0.4]
at play.core.ReloadableApplication$$anonfun$get$1$$anonfun$apply$3$$anonfun$1.apply(ApplicationProvider.scala:125) ~[play_2.9.1.jar:2.0.4]
... 15 common frames omitted

@jbasalone
Copy link
Author

any more suggestions?

@yl3w
Copy link
Contributor

yl3w commented Aug 9, 2014

I'd like to see how you are starting play from the command line.

@jbasalone
Copy link
Author

ubuntu@ip-10-70-3-43:~/src/collins$ ~/src/play-2.0.8/play
[info] Loading project definition from /home/ubuntu/src/collins/project
[info] Set current project to collins (in build file:/home/ubuntu/src/collins/)
_ _
_ __ | | __ _ _ | |
| '
| |/ ' | || ||
| /|_|__|__ ()
|
| |__/

play! 2.0.8, http://www.playframework.org

Type "help play" or "license" for more information.
Type "exit" or use Ctrl+D to leave this console.

[collins] $ run

--- (Running the application from SBT, auto-reloading is enabled) ---

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/home/ubuntu/src/collins/lib/logback-classic.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/home/ubuntu/src/play-2.0.8/framework/../repository/local/ch.qos.logback/logback-classic/1.0.0/jars/logback-classic.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [ch.qos.logback.classic.selector.DefaultContextSelector]

(Server started, use Ctrl+D to stop and go back to the console...)

@jbasalone
Copy link
Author

ping :)

@dallasmarlow
Copy link
Contributor

does that still happen when you run it without the play command? it looks
like a classpath issue

edit: to be clear, i have never run collins with the play command in development or production and head of master runs without an issue for me via sbt run as play is just a dep of the project.

On Tue, Aug 12, 2014 at 1:56 PM, Jenn Basalone notifications@github.com
wrote:

ping :)


Reply to this email directly or view it on GitHub
#190 (comment).

@jbasalone
Copy link
Author

so I didnt know you could run it outside of the play framework. How do you execute it outside? /me is a little confused.

@byxorna
Copy link
Contributor

byxorna commented Aug 13, 2014

@jbasalone You can take a look at https://github.com/tumblr/collins/blob/master/scripts/collins.sh for a sample (albeit old and in need of a rewrite) init script for how to run an artifact with java. Also, https://github.com/tumblr/collins/blob/master/scripts/package.sh will help you compile and spit out a zip you can then run with collins.sh.

@jbasalone
Copy link
Author

ah yea. the shell scripts needs help. lol

ill take a look. Thanks!

@jbasalone
Copy link
Author

the standalone works. Im getting other errors when trying to populate it but ill deal with that seperately. at least its up. Thank you so much :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants