Trigger.io Build error - trigger.io

Hi since yesterday i can't build my project and getting this log
[INFO] Forge tools running at version 3.3.54
[INFO] Your app configuration has changed since your last build of this platform, performing a remote build of your app. Once this is downloaded future builds will be faster.
[INFO] Starting new build
[INFO] This could take a while, but will only happen again if you modify config.json
[ERROR] build failed: [ DEBUG] 2013-06-13 11:46:53,206 -- inspecting build id 17977
[ INFO] 2013-06-13 11:46:55,509 -- running build "ios task 17977"
[ DEBUG] 2013-06-13 11:46:55,510 -- reading system config file from /opt/stable/SYSTEM_BUILD_CONFIG.json
[ INFO] 2013-06-13 11:46:55,511 -- adding "/mnt/stable/platform-source/v1.4.48/generate" to sys.path
[ DEBUG] 2013-06-13 11:46:55,511 -- set sys.path to be [u'/mnt/stable/platform-source/v1.4.48/generate', '/opt/stable/website', '/opt/stable/stable-python-env/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg', '/opt/stable/stable-python-env/lib/python2.7/site-packages/pip-1.1-py2.7.egg', '/opt/stable/stable-python-env/src/django-registration', '/opt/stable/stable-python-env/src/validictory', '/opt/stable/stable-python-env/src/django-haystack-dev', '/opt/stable/stable-python-env/lib/python27.zip', '/opt/stable/stable-python-env/lib/python2.7', '/opt/stable/stable-python-env/lib/python2.7/plat-darwin', '/opt/stable/stable-python-env/lib/python2.7/plat-mac', '/opt/stable/stable-python-env/lib/python2.7/plat-mac/lib-scriptpackages', '/opt/stable/stable-python-env/Extras/lib/python', '/opt/stable/stable-python-env/lib/python2.7/lib-tk', '/opt/stable/stable-python-env/lib/python2.7/lib-old', '/opt/stable/stable-python-env/lib/python2.7/lib-dynload', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages', '/opt/stable/stable-python-env/lib/python2.7/site-packages', '/opt/stable/stable-python-env/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg-info']
[ DEBUG] 2013-06-13 11:46:55,877 -- Enabled platforms: [u'ios']
[ DEBUG] 2013-06-13 11:46:55,878 -- Migrating config.json from version 3 to version 4
[ DEBUG] 2013-06-13 11:46:55,881 -- <ForgeTask (ios)> running...
[ DEBUG] 2013-06-13 11:46:55,891 -- <ForgeTask (ios)> script:
[{'do': {'preprocess_config': ()}},
{'do': {'resolve_urls': ('plugins.activations.config.activations.[].scripts.[]',
'plugins.activations.config.activations.[].styles.[]',
'plugins.icons.config.chrome',
'plugins.icons.config.safari',
'plugins.icons.config.firefox',
'plugins.launchimage.config.android',
'plugins.launchimage.config.android-landscape',
'plugins.button.config.default_icon',
'plugins.button.config.default_popup',
'plugins.button.config.default_icons.*')}},
{'do': {'addon_source': 'common-v2'}},
{'do': {'addon_source': 'plugin/schema'}},
{'do': {'addon_source': 'ios/ForgeCore'}, 'when': {'platform_is': 'ios'}},
{'do': {'addon_source': 'ios/app'}, 'when': {'platform_is': 'ios'}},
{'do': {'addon_source': 'ios/js'}, 'when': {'platform_is': 'ios'}},
{'do': {'prepare_plugin_override': ()}},
{'do': {'fallback_to_default_toolbar_icon': ()}},
{'do': {'copy_files': {'from': 'common-v2/forge',
'to': 'ios/app/ForgeInspector/assets/forge'}},
'when': {'platform_is': 'ios'}},
{'do': {'add_to_all_js': 'common-v2/api-prefix.js'}},
{'do': {'add_to_all_js': 'common-v2/config.js'}},
{'do': {'add_to_all_js': 'common-v2/api.js'}},
{'do': {'add_to_all_js': 'common-v2/modules/is/common.js'}},
{'do': {'add_to_all_js': 'common-v2/modules/is/ios.js'},
'when': {'platform_is': 'ios,ios-inspector'}},
{'do': {'add_to_all_js': 'common-v2/modules/logging/default.js'}},
{'do': {'add_to_all_js': 'common-v2/modules/internal/default.js'}},
{'do': {'add_to_all_js': 'common-v2/modules/event/mobile.js'},
'when': {'platform_is': 'android,an-inspector,ios,ios-inspector'}},
{'do': {'add_to_all_js': 'common-v2/modules/event/common.js'}},
{'do': {'add_to_all_js': 'common-v2/reload.js'}},
{'do': {'add_to_all_js': 'common-v2/tools.js'}},
{'do': {'add_to_all_js': 'ios/js/api-ios.js'},
'when': {'platform_is': 'ios'}},
{'do': {'add_to_all_js': 'common-v2/api-expose.js'}},
{'do': {'add_to_all_js': 'common-v2/api-suffix.js'}},
{'do': {'find_and_replace': {'find': 'kForgeLogLevel = #"DEBUG";',
'in': ('ios/ForgeCore/ForgeCore/utils/ForgeLog.m',),
'replace': 'kForgeLogLevel = #"${logging_level}";'}},
'when': {'platform_is': 'ios'}},
{'do': {'download_and_extract_plugins': ()}, 'when': {'platform_is': 'ios'}},
{'do': {'add_plugins_ios': ()}, 'when': {'platform_is': 'ios'}},
{'do': {'minify_in_place': 'ios/app/ForgeInspector/assets/forge/all.js'},
'when': {'is_external': (), 'platform_is': 'ios'}},
{'do': {'xcode_build': 'ios/app'}, 'when': {'platform_is': 'ios'}},
{'do': {'remove_files': 'common-v2'}},
{'do': {'rename_files': {'from': 'ios/app/dist', 'to': 'development/ios'}},
'when': {'platform_is': 'ios'}},
{'do': {'move_output': 'development'}},
{'do': {'remember_build_output_location': ()}}]
[ INFO] 2013-06-13 11:46:55,891 -- preprocessing configuration
[ INFO] 2013-06-13 11:46:55,892 -- copying source directory /mnt/stable/platform-source/v1.4.48/common-v2 to common-v2
[ INFO] 2013-06-13 11:46:55,902 -- copying source directory /mnt/stable/platform-source/v1.4.48/plugin/schema to plugin/schema
[ INFO] 2013-06-13 11:46:55,903 -- copying source directory /mnt/stable/platform-source/v1.4.48/ios/ForgeCore to ios/ForgeCore
[ INFO] 2013-06-13 11:46:55,925 -- copying source directory /mnt/stable/platform-source/v1.4.48/ios/app to ios/app
[ INFO] 2013-06-13 11:46:55,940 -- copying source directory /mnt/stable/platform-source/v1.4.48/ios/js to ios/js
[ INFO] 2013-06-13 11:46:55,941 -- copying source directory /mnt/stable/platform-source/v1.4.48/plugins to plugins
[ DEBUG] 2013-06-13 11:46:57,253 -- moving default toolbar icon into place
[ DEBUG] 2013-06-13 11:46:57,254 -- settings browser_action.default_icon
[ DEBUG] 2013-06-13 11:46:57,255 -- copying common-v2/forge to ios/app/ForgeInspector/assets/forge
[ DEBUG] 2013-06-13 11:46:57,323 -- concatenating common-v2/api-prefix.js to ios/app/ForgeInspector/assets/forge/all.js
[ INFO] 2013-06-13 11:46:57,323 -- appended common-v2/api-prefix.js to ios/app/ForgeInspector/assets/forge/all.js
[ DEBUG] 2013-06-13 11:46:57,323 -- concatenating common-v2/config.js to ios/app/ForgeInspector/assets/forge/all.js
[ INFO] 2013-06-13 11:46:57,324 -- appended common-v2/config.js to ios/app/ForgeInspector/assets/forge/all.js
[ DEBUG] 2013-06-13 11:46:57,326 -- concatenating common-v2/api.js to ios/app/ForgeInspector/assets/forge/all.js
[ INFO] 2013-06-13 11:46:57,366 -- appended common-v2/api.js to ios/app/ForgeInspector/assets/forge/all.js
[ DEBUG] 2013-06-13 11:46:57,367 -- concatenating common-v2/modules/is/common.js to ios/app/ForgeInspector/assets/forge/all.js
[ INFO] 2013-06-13 11:46:57,367 -- appended common-v2/modules/is/common.js to ios/app/ForgeInspector/assets/forge/all.js
[ DEBUG] 2013-06-13 11:46:57,371 -- concatenating common-v2/modules/is/ios.js to ios/app/ForgeInspector/assets/forge/all.js
[ INFO] 2013-06-13 11:46:57,371 -- appended common-v2/modules/is/ios.js to ios/app/ForgeInspector/assets/forge/all.js
[ DEBUG] 2013-06-13 11:46:57,378 -- concatenating common-v2/modules/logging/default.js to ios/app/ForgeInspector/assets/forge/all.js
[ INFO] 2013-06-13 11:46:57,384 -- appended common-v2/modules/logging/default.js to ios/app/ForgeInspector/assets/forge/all.js
[ DEBUG] 2013-06-13 11:46:57,385 -- concatenating common-v2/modules/internal/default.js to ios/app/ForgeInspector/assets/forge/all.js
[ INFO] 2013-06-13 11:46:57,385 -- appended common-v2/modules/internal/default.js to ios/app/ForgeInspector/assets/forge/all.js
[ DEBUG] 2013-06-13 11:46:57,392 -- concatenating common-v2/modules/event/mobile.js to ios/app/ForgeInspector/assets/forge/all.js
[ INFO] 2013-06-13 11:46:57,392 -- appended common-v2/modules/event/mobile.js to ios/app/ForgeInspector/assets/forge/all.js
[ DEBUG] 2013-06-13 11:46:57,394 -- concatenating common-v2/modules/event/common.js to ios/app/ForgeInspector/assets/forge/all.js
[ INFO] 2013-06-13 11:46:57,394 -- appended common-v2/modules/event/common.js to ios/app/ForgeInspector/assets/forge/all.js
[ DEBUG] 2013-06-13 11:46:57,394 -- concatenating common-v2/reload.js to ios/app/ForgeInspector/assets/forge/all.js
[ INFO] 2013-06-13 11:46:57,394 -- appended common-v2/reload.js to ios/app/ForgeInspector/assets/forge/all.js
[ DEBUG] 2013-06-13 11:46:57,395 -- concatenating common-v2/tools.js to ios/app/ForgeInspector/assets/forge/all.js
[ INFO] 2013-06-13 11:46:57,395 -- appended common-v2/tools.js to ios/app/ForgeInspector/assets/forge/all.js
[ DEBUG] 2013-06-13 11:46:57,395 -- concatenating ios/js/api-ios.js to ios/app/ForgeInspector/assets/forge/all.js
[ INFO] 2013-06-13 11:46:57,395 -- appended ios/js/api-ios.js to ios/app/ForgeInspector/assets/forge/all.js
[ DEBUG] 2013-06-13 11:46:57,397 -- concatenating common-v2/api-expose.js to ios/app/ForgeInspector/assets/forge/all.js
[ INFO] 2013-06-13 11:46:57,398 -- appended common-v2/api-expose.js to ios/app/ForgeInspector/assets/forge/all.js
[ DEBUG] 2013-06-13 11:46:57,398 -- concatenating common-v2/api-suffix.js to ios/app/ForgeInspector/assets/forge/all.js
[ INFO] 2013-06-13 11:46:57,398 -- appended common-v2/api-suffix.js to ios/app/ForgeInspector/assets/forge/all.js
[ DEBUG] 2013-06-13 11:46:57,399 -- replacing kForgeLogLevel = #"DEBUG"; with u'kForgeLogLevel = #"CRITICAL";'
[WARNING] 2013-06-13 11:46:57,400 -- No files were found to match pattern "ios/ForgeCore/ForgeCore/utils/ForgeLog.m"
[ INFO] 2013-06-13 11:46:57,400 -- Downloading plugins
[ INFO] 2013-06-13 11:46:57,400 -- Downloading plugin: geolocation
[ DEBUG] 2013-06-13 11:46:57,400 -- Plugin already downloaded: geolocation
[ INFO] 2013-06-13 11:46:57,400 -- Downloaded plugin: geolocation
[ INFO] 2013-06-13 11:46:57,400 -- Downloading plugin: launchimage
[ DEBUG] 2013-06-13 11:46:57,400 -- Plugin already downloaded: launchimage
[ INFO] 2013-06-13 11:46:57,401 -- Downloaded plugin: launchimage
[ INFO] 2013-06-13 11:46:57,401 -- Downloading plugin: parameters
[ DEBUG] 2013-06-13 11:46:57,401 -- Plugin already downloaded: parameters
[ INFO] 2013-06-13 11:46:57,401 -- Downloaded plugin: parameters
[ INFO] 2013-06-13 11:46:57,401 -- Downloading plugin: partners
[ DEBUG] 2013-06-13 11:46:57,401 -- Downloading plugin id: notahash
[ INFO] 2013-06-13 11:46:58,983 -- cleaning up source directories
[ ERROR] 2013-06-13 11:46:58,983 -- File is not a zip file

Looks like your config.json file is slightly wrong, the partners section should be in the root of the config rather than under the modules section.

Related

In jhipster generated microservices, application properties defined in central-config is not working

I have few microservices(uaa, gateway) generated using jhipster. I am using docker-compose to deploy all microservices. It all worked fine if I keep the database related configurations in uaa-dev.yml inside config folder of uaa-service. However, I wanted to externalize these configuration to a filesystem which is through central-server-config located inside docker-compose folder. Please note I am using JHipster Registry with "dev" and "native" profile which means it should pick up from filesystem.
Additionally, I have created uaa-dev.yml inside central-server-config folder and override DB Configuration.
Another observation is that I am able to change the log level through central-config which means uaa-dev.yml is loaded properly.
central-server-config/uaa-dev.yml has below configuration
logging:
level:
ROOT: DEBUG
io.github.jhipster: DEBUG
com.diatoz.uaa: DEBUG
spring:
datasource:
type: com.zaxxer.hikari.HikariDataSource
url: jdbc:postgresql://localhost:5432/myuaa
username: myuaa
password: myuaa
hikari:
poolName: Hikari
auto-commit: false
docker logs for uaa microservice shows below error
The application will start in 30s...
Picked up _JAVA_OPTIONS: -Xmx512m -Xms256m
██╗ ██╗ ██╗ ████████╗ ███████╗ ██████╗ ████████╗ ████████╗ ███████╗
██║ ██║ ██║ ╚══██╔══╝ ██╔═══██╗ ██╔════╝ ╚══██╔══╝ ██╔═════╝ ██╔═══██╗
██║ ████████║ ██║ ███████╔╝ ╚█████╗ ██║ ██████╗ ███████╔╝
██╗ ██║ ██╔═══██║ ██║ ██╔════╝ ╚═══██╗ ██║ ██╔═══╝ ██╔══██║
╚██████╔╝ ██║ ██║ ████████╗ ██║ ██████╔╝ ██║ ████████╗ ██║ ╚██╗
╚═════╝ ╚═╝ ╚═╝ ╚═══════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══════╝ ╚═╝ ╚═╝
:: JHipster 🤓 :: Running Spring Boot 2.2.7.RELEASE ::
:: https://www.jhipster.tech ::
2020-08-23 17:25:39.151 DEBUG 1 --- [ restartedMain] s.n.www.protocol.http.HttpURLConnection : sun.net.www.MessageHeader#7237f5da6 pairs: {GET /config/uaa/dev/master HTTP/1.1: null}{Accept: application/vnd.spring-cloud.config-server.v2+json}{Authorization: Basic YWRtaW46ZGlhdG96aXNiZXN0}{User-Agent: Java/11.0.8}{Host: jhipster-registry:8761}{Connection: keep-alive}
2020-08-23 17:25:39.363 DEBUG 1 --- [ restartedMain] s.n.www.protocol.http.HttpURLConnection : sun.net.www.MessageHeader#60b9d98513 pairs: {null: HTTP/1.1 200 OK}{Expires: 0}{Cache-Control: no-cache, no-store, max-age=0, must-revalidate}{X-XSS-Protection: 1; mode=block}{Pragma: no-cache}{Date: Sun, 23 Aug 2020 17:25:39 GMT}{Connection: keep-alive}{Vary: Origin}{Vary: Access-Control-Request-Method}{Vary: Access-Control-Request-Headers}{X-Content-Type-Options: nosniff}{Transfer-Encoding: chunked}{Content-Type: application/vnd.spring-cloud.config-server.v2+json}
2020-08-23 17:25:39.553 INFO 1 --- [ restartedMain] com.diatoz.uaa.UaaApp : The following profiles are active: dev,swagger
2020-08-23 17:25:42.172 WARN 1 --- [ restartedMain] o.s.boot.actuate.endpoint.EndpointId : Endpoint ID 'service-registry' contains invalid characters, please migrate to a valid format.
2020-08-23 17:25:44.013 DEBUG 1 --- [ restartedMain] i.m.c.u.i.logging.InternalLoggerFactory : Using SLF4J as the default logging framework
2020-08-23 17:25:44.780 DEBUG 1 --- [ restartedMain] com.diatoz.uaa.config.WebConfigurer : Registering CORS filter
2020-08-23 17:25:44.823 INFO 1 --- [ restartedMain] com.diatoz.uaa.config.WebConfigurer : Web application configuration, using profiles: dev
2020-08-23 17:25:44.842 INFO 1 --- [ restartedMain] com.diatoz.uaa.config.WebConfigurer : Web application fully configured
2020-08-23 17:25:44.924 DEBUG 1 --- [ restartedMain] c.diatoz.uaa.config.AsyncConfiguration : Creating Async Task Executor
2020-08-23 17:25:44.955 DEBUG 1 --- [ restartedMain] c.d.uaa.config.LiquibaseConfiguration : Configuring Liquibase
2020-08-23 17:25:46.000 ERROR 1 --- [ restartedMain] com.zaxxer.hikari.pool.HikariPool : Hikari - Exception during pool initialization.
org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:285)
at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:49)
at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:211)
at org.postgresql.Driver.makeConnection(Driver.java:459)
at org.postgresql.Driver.connect(Driver.java:261)
at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138)
at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:358)
at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:206)
at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:477)
at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:560)
at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:115)
at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112)
at org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl.getConnection(DatasourceConnectionProviderImpl.java:122)
at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcConnectionAccess.obtainConnection(JdbcEnvironmentInitiator.java:180)
at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:68)
at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:35)
at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:101)
at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:263)
at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:237)
at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:214)
at org.hibernate.id.factory.internal.DefaultIdentifierGeneratorFactory.injectServices(DefaultIdentifierGeneratorFactory.java:152)
at org.hibernate.service.internal.AbstractServiceRegistryImpl.injectDependencies(AbstractServiceRegistryImpl.java:286)
at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:243)
at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:214)
at org.hibernate.boot.internal.InFlightMetadataCollectorImpl.<init>(InFlightMetadataCollectorImpl.java:176)
at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:118)
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.metadata(EntityManagerFactoryBuilderImpl.java:1214)
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:1245)
at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:58)
at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:365)
at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:391)
at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:378)
at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet(LocalContainerEntityManagerFactoryBean.java:341)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1855)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1792)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:595)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:517)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:323)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:226)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:321)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1108)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:868)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:315)
at com.diatoz.uaa.UaaApp.main(UaaApp.java:63)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)
2020-08-23 17:25:47.576 WARN 1 --- [ restartedMain] o.h.e.j.e.i.JdbcEnvironmentInitiator : HHH000342: Could not obtain connection to query metadata : Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.springframework.cglib.core.ReflectUtils (file:/app/libs/spring-core-5.2.6.RELEASE.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of org.springframework.cglib.core.ReflectUtils
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
2020-08-23 17:25:50.432 DEBUG 1 --- [ restartedMain] i.g.j.c.apidoc.SwaggerAutoConfiguration : Starting Swagger
2020-08-23 17:25:50.438 DEBUG 1 --- [ restartedMain] i.g.j.c.apidoc.SwaggerAutoConfiguration : Started Swagger in 5 ms
2020-08-23 17:25:50.861 WARN 1 --- [ restartedMain] ockingLoadBalancerClientRibbonWarnLogger : You already have RibbonLoadBalancerClient on your classpath. It will be used by default. As Spring Cloud Ribbon is in maintenance mode. We recommend switching to BlockingLoadBalancerClient instead. In order to use it, set the value of `spring.cloud.loadbalancer.ribbon.enabled` to `false` or remove spring-cloud-starter-netflix-ribbon from your project.
2020-08-23 17:25:51.048 INFO 1 --- [ restartedMain] com.netflix.discovery.DiscoveryClient : Initializing Eureka in region us-east-1
2020-08-23 17:25:51.159 INFO 1 --- [ restartedMain] c.n.d.provider.DiscoveryJerseyProvider : Using JSON encoding codec LegacyJacksonJson
2020-08-23 17:25:51.159 INFO 1 --- [ restartedMain] c.n.d.provider.DiscoveryJerseyProvider : Using JSON decoding codec LegacyJacksonJson
2020-08-23 17:25:51.251 INFO 1 --- [ restartedMain] c.n.d.provider.DiscoveryJerseyProvider : Using XML encoding codec XStreamXml
2020-08-23 17:25:51.251 INFO 1 --- [ restartedMain] c.n.d.provider.DiscoveryJerseyProvider : Using XML decoding codec XStreamXml
2020-08-23 17:25:51.416 INFO 1 --- [ restartedMain] c.n.d.s.r.aws.ConfigClusterResolver : Resolving eureka endpoints via configuration
2020-08-23 17:25:51.430 INFO 1 --- [ restartedMain] com.netflix.discovery.DiscoveryClient : Disable delta property : false
2020-08-23 17:25:51.430 INFO 1 --- [ restartedMain] com.netflix.discovery.DiscoveryClient : Single vip registry refresh property : null
2020-08-23 17:25:51.430 INFO 1 --- [ restartedMain] com.netflix.discovery.DiscoveryClient : Force full registry fetch : false
2020-08-23 17:25:51.430 INFO 1 --- [ restartedMain] com.netflix.discovery.DiscoveryClient : Application is null : false
2020-08-23 17:25:51.430 INFO 1 --- [ restartedMain] com.netflix.discovery.DiscoveryClient : Registered Applications size is zero : true
2020-08-23 17:25:51.431 INFO 1 --- [ restartedMain] com.netflix.discovery.DiscoveryClient : Application version is -1: true
2020-08-23 17:25:51.431 INFO 1 --- [ restartedMain] com.netflix.discovery.DiscoveryClient : Getting all instance registry info from the eureka server
2020-08-23 17:25:51.571 INFO 1 --- [ restartedMain] com.netflix.discovery.DiscoveryClient : The response status is 200
2020-08-23 17:25:51.573 INFO 1 --- [ restartedMain] com.netflix.discovery.DiscoveryClient : Starting heartbeat executor: renew interval is: 5
2020-08-23 17:25:51.575 INFO 1 --- [ restartedMain] c.n.discovery.InstanceInfoReplicator : InstanceInfoReplicator onDemand update allowed rate per min is 12
2020-08-23 17:25:51.580 INFO 1 --- [ restartedMain] com.netflix.discovery.DiscoveryClient : Discovery Client initialized at timestamp 1598203551579 with initial instances count: 0
2020-08-23 17:25:51.585 INFO 1 --- [ restartedMain] com.netflix.discovery.DiscoveryClient : Saw local status change event StatusChangeEvent [timestamp=1598203551585, current=UP, previous=STARTING]
2020-08-23 17:25:51.586 WARN 1 --- [ restartedMain] c.n.discovery.InstanceInfoReplicator : Ignoring onDemand update due to rate limiter
2020-08-23 17:25:51.593 DEBUG 1 --- [nfoReplicator-0] s.n.www.protocol.http.HttpURLConnection : sun.net.www.MessageHeader#16d99e7a6 pairs: {GET /config/uaa/dev/master HTTP/1.1: null}{Accept: application/vnd.spring-cloud.config-server.v2+json}{Authorization: Basic YWRtaW46ZGlhdG96aXNiZXN0}{User-Agent: Java/11.0.8}{Host: jhipster-registry:8761}{Connection: keep-alive}
2020-08-23 17:25:51.791 DEBUG 1 --- [nfoReplicator-0] s.n.www.protocol.http.HttpURLConnection : sun.net.www.MessageHeader#4ece721d13 pairs: {null: HTTP/1.1 200 OK}{Expires: 0}{Cache-Control: no-cache, no-store, max-age=0, must-revalidate}{X-XSS-Protection: 1; mode=block}{Pragma: no-cache}{Date: Sun, 23 Aug 2020 17:25:51 GMT}{Connection: keep-alive}{Vary: Origin}{Vary: Access-Control-Request-Method}{Vary: Access-Control-Request-Headers}{X-Content-Type-Options: nosniff}{Transfer-Encoding: chunked}{Content-Type: application/vnd.spring-cloud.config-server.v2+json}
2020-08-23 17:25:52.076 INFO 1 --- [ restartedMain] com.diatoz.uaa.UaaApp : Started UaaApp in 15.529 seconds (JVM running for 16.562)
2020-08-23 17:25:52.084 INFO 1 --- [ restartedMain] com.diatoz.uaa.UaaApp :
----------------------------------------------------------
Application 'uaa' is running! Access URLs:
Local: http://localhost:9999/
External: http://192.168.112.5:9999/
Profile(s): [dev, swagger]
----------------------------------------------------------
2020-08-23 17:25:52.085 INFO 1 --- [ restartedMain] com.diatoz.uaa.UaaApp :
----------------------------------------------------------
Config Server: Connected to the JHipster Registry running in Docker
----------------------------------------------------------
2020-08-23 17:25:52.799 ERROR 1 --- [nfoReplicator-0] com.zaxxer.hikari.pool.HikariPool : Hikari - Exception during pool initialization.
2020-08-23 17:25:52.801 WARN 1 --- [nfoReplicator-0] o.s.b.a.jdbc.DataSourceHealthIndicator : DataSource health check failed
org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:82)
at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:324)
at org.springframework.boot.actuate.jdbc.DataSourceHealthIndicator.getProduct(DataSourceHealthIndicator.java:122)
at org.springframework.boot.actuate.jdbc.DataSourceHealthIndicator.doDataSourceHealthCheck(DataSourceHealthIndicator.java:107)
at org.springframework.boot.actuate.jdbc.DataSourceHealthIndicator.doHealthCheck(DataSourceHealthIndicator.java:102)
at org.springframework.boot.actuate.health.AbstractHealthIndicator.health(AbstractHealthIndicator.java:82)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)
at java.base/java.util.HashMap$ValueSpliterator.forEachRemaining(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.copyInto(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.evaluate(Unknown Source)
at java.base/java.util.stream.ReferencePipeline.collect(Unknown Source)
at org.springframework.cloud.netflix.eureka.EurekaHealthCheckHandler.getStatus(EurekaHealthCheckHandler.java:195)
at org.springframework.cloud.netflix.eureka.EurekaHealthCheckHandler.getHealthStatus(EurekaHealthCheckHandler.java:176)
at org.springframework.cloud.netflix.eureka.EurekaHealthCheckHandler.getStatus(EurekaHealthCheckHandler.java:170)
at com.netflix.discovery.DiscoveryClient.refreshInstanceInfo(DiscoveryClient.java:1419)
at com.netflix.discovery.InstanceInfoReplicator.run(InstanceInfoReplicator.java:117)
at com.netflix.discovery.InstanceInfoReplicator$1.run(InstanceInfoReplicator.java:101)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:285)
at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:49)
at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:211)
at org.postgresql.Driver.makeConnection(Driver.java:459)
at org.postgresql.Driver.connect(Driver.java:261)
at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138)
at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:358)
at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:206)
at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:477)
at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:560)
at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:115)
at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112)
at org.springframework.jdbc.datasource.DataSourceUtils.fetchConnection(DataSourceUtils.java:158)
at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:116)
at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:79)
... 24 common frames omitted
2020-08-23 17:25:52.806 WARN 1 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient : Saw local status change event StatusChangeEvent [timestamp=1598203552806, current=DOWN, previous=UP]
2020-08-23 17:25:52.806 WARN 1 --- [nfoReplicator-0] c.n.discovery.InstanceInfoReplicator : Ignoring onDemand update due to rate limiter
2020-08-23 17:25:52.806 INFO 1 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient : DiscoveryClient_UAA/uaa:b4a348dfc9391d946e3420a9189d1a2b: registering service...
2020-08-23 17:25:52.897 INFO 1 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient : DiscoveryClient_UAA/uaa:b4a348dfc9391d946e3420a9189d1a2b - registration status: 204
2020-08-23 17:25:53.899 ERROR 1 --- [nfoReplicator-0] com.zaxxer.hikari.pool.HikariPool : Hikari - Exception during pool initialization.
Eureka Spring Cloud Config (config/uaa/dev/master)
{
"name" : "uaa",
"profiles" : [ "dev" ],
"label" : "master",
"version" : null,
"state" : null,
"propertySources" : [ {
"name" : "file:central-config/uaa-dev.yml",
"source" : {
"logging.level.ROOT" : "DEBUG",
"logging.level.io.github.jhipster" : "DEBUG",
"logging.level.com.diatoz.uaa" : "DEBUG",
"spring.datasource.type" : "com.zaxxer.hikari.HikariDataSource",
"spring.datasource.url" : "jdbc:postgresql://localhost:5432/myuaa",
"spring.datasource.username" : "myuaa",
"spring.datasource.password" : "myuaa",
"spring.datasource.hikari.poolName" : "Hikari",
"spring.datasource.hikari.auto-commit" : false
}
}, {
"name" : "file:central-config/uaa.yml",
"source" : {
"logging.level.ROOT" : "DEBUG",
"logging.level.io.github.jhipster" : "DEBUG",
"logging.level.com.diatoz.uaa" : "DEBUG",
"spring.profiles.active" : "dev",
"spring.datasource.password" : "uaa"
}
}, {
"name" : "file:central-config/application.yml",
"source" : {
"configserver.name" : "Docker JHipster Registry",
"configserver.status" : "Connected to the JHipster Registry running in Docker",
"jhipster.security.authentication.jwt.base64-secret" : "ZjBmYTIzNzFmYzQ3OTA3YjY5ZGI5Yjk5NjQ0MmY4NzQ1MjE3YWQ3OWVhODBlZWU1NTMwYzBlNzFmZmFiOWM2ZDgxNTczZGY0NDM1MjQyYWExNTU5MmRjYTc0N2RmNzk0YmU3ZA==",
"eureka.client.service-url.defaultZone" : "http://admin:${jhipster.registry.password}#jhipster-registry:8761/eureka/"
}
} ]
}

Bundler:Gemfile not found preventing elastic beanstalk deployment

I am trying to deploy to elastic beanstalk and I am getting an error that doesn't make a lot of sense to me. Below is the error in my log files, which it is complaining about a missing gemfile; however, the gemfile is indeed there:
2014-08-27 13:45:33,639 [INFO] (708 MainThread) [directoryHooksExecutor.py-29] [root directoryHooksExecutor info] Script succeeded.
2014-08-27 13:45:33,639 [INFO] (708 MainThread) [directoryHooksExecutor.py-29] [root directoryHooksExecutor info] Executing script: /opt/elasticbeanstalk/hooks/appdeploy/pre/11_asset_compilation.sh
2014-08-27 13:45:33,675 [INFO] (708 MainThread) [directoryHooksExecutor.py-29] [root directoryHooksExecutor info] Output from script: Skipping asset compilation (RAILS_SKIP_ASSET_COMPILATION=true).
2014-08-27 13:45:33,676 [INFO] (708 MainThread) [directoryHooksExecutor.py-29] [root directoryHooksExecutor info] Script succeeded.
2014-08-27 13:45:33,676 [INFO] (708 MainThread) [directoryHooksExecutor.py-29] [root directoryHooksExecutor info] Executing script: /opt/elasticbeanstalk/hooks/appdeploy/pre/12_db_migration.sh
2014-08-27 13:45:33,711 [INFO] (708 MainThread) [directoryHooksExecutor.py-29] [root directoryHooksExecutor info] Output from script: Skipping database migrations (RAILS_SKIP_MIGRATIONS=true).
2014-08-27 13:45:33,712 [INFO] (708 MainThread) [directoryHooksExecutor.py-29] [root directoryHooksExecutor info] Script succeeded.
2014-08-27 13:45:33,712 [INFO] (708 MainThread) [directoryHooksExecutor.py-29] [root directoryHooksExecutor info] Executing script: /opt/elasticbeanstalk/hooks/appdeploy/pre/13_test_for_puma.rb
2014-08-27 13:45:33,766 [INFO] (708 MainThread) [directoryHooksExecutor.py-29] [root directoryHooksExecutor info] Output from script: /opt/rubies/ruby-2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.3.5/lib/bundler/shared_helpers.rb:22:in `default_gemfile': Could not locate Gemfile (Bundler::GemfileNotFound)
from /opt/rubies/ruby-2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.3.5/lib/bundler.rb:231:in `default_gemfile'
from /opt/rubies/ruby-2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.3.5/lib/bundler.rb:177:in `root'
from /opt/rubies/ruby-2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.3.5/lib/bundler.rb:99:in `bundle_path'
from /opt/rubies/ruby-2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.3.5/lib/bundler.rb:378:in `configure_gem_home'
from /opt/rubies/ruby-2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.3.5/lib/bundler.rb:367:in `configure_gem_home_and_path'
from /opt/rubies/ruby-2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.3.5/lib/bundler.rb:90:in `configure'
from /opt/rubies/ruby-2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.3.5/lib/bundler.rb:146:in `definition'
from /opt/elasticbeanstalk/hooks/appdeploy/pre/13_test_for_puma.rb:5:in `<main>'
2014-08-27 13:45:33,766 [ERROR] (708 MainThread) [directoryHooksExecutor.py-33] [root directoryHooksExecutor error] Script /opt/elasticbeanstalk/hooks/appdeploy/pre/13_test_for_puma.rb failed with returncode 1
It was a result of me being on Mac OSX Yosemite. When compressing with Yosemite it uses the Darwin binary zip file which elastic beanstalk doesn't support. Try downloading Keka and zipping it with that tool.

App deployment not working correctly for iOS6 on windows

When I deploy app for first time everything works correctly , but after changing code and trying to deploy same app again with "run again" button, app starts without loading forge object so i can not use forge API .
After little bit of testing I find out that forge will load only if I delete app from phone before deployment "run again" button. so basicly. I am using latest version v1.4.15 .
So if you can fix it will save some time during development .
One more , I can install and run app on iOS from windows , but I can not debug app from windows i am getting
Launching - /private/var/mobile/Applications/C894C75B-DC03-4863-8C3C-09CEF15CC8D9/device- ios.app
Could not start com.apple.debugserver!
For these iOS and Windows issues, it might be that the device has not been enabled for development - see http://docs.trigger.io/en/v1.4/tools/ios-windows.html
If you can borrow an OS X machine for that one-off task, you'll be up and running. If not, apps will install on the device, but you'll need the iPhone Configuration Utility to see log output.
not sure if it is related, but I am seeing this message, when running an iOS app from the ToolKit-based UI:
[INFO] Launching - /private/var/mobile/Applications/0F328847-939D-4557-B58A-33ACACB3B295/device-ios.app
[INFO] Couldn't register io.trigger.forge1078daf40ad711e2acce12313d1adcbe with the bootstrap server. Error: unknown error code.
the app does not launch fully; it looks like the forge back-end is not ready or something?
If I wait a few minutes, the app will work perfectly.
weird....
I get the same error message. The app installs on the phone, but doesn't launch. The final status on the toolkit UI after "run ios" is "failed". The error line is similar to the one reported here:
[ERROR] Failed when running C:\my\projects\forge-workspace\appname\.lib\win-ios-install.exe: Installing c:\users\username\appdata\local\temp\tmppqzab4 to: 8e8023ffaa5ad085966046ca3931c9a09b7661a0
...
Launching - /private/var/mobile/Applications/32F5A9EC-2453-4CD5-9D04-A13D0E14D9AA/device-ios.app
Could not start com.apple.debugserver!
Here is the full log with "Show debug output" turned on:
[INFO] Forge tools running at version 3.3.34
[DEBUG] Forge build tools version: 3.3.34
[DEBUG] main: {"server": "{link}https://trigger.io/api/{/link}"}
[DEBUG] port: 38394
[DEBUG] GET {link}https://trigger.io/api/app/93ec7c70811411e2b05e12313d00dc45/should_rebuild{/link}
[DEBUG] Checking API response for success or error
[DEBUG] configuration is identical to last run
[DEBUG] POST {link}https://trigger.io/api/reload/buildevents/93ec7c70811411e2b05e12313d00dc45{/link}
[DEBUG] Checking API response for success or error
[DEBUG] Enabled platforms: [u'ios']
[DEBUG] Forge build tools version: 3.3.34
[DEBUG] main: {"server": "{link}https://trigger.io/api/{/link}"}
[DEBUG] port: 38394
[DEBUG] POST {link}https://trigger.io/api/track/{/link}
[DEBUG] <ForgeTask (ios)> running...
[DEBUG] <ForgeTask (ios)> script:
[{'do': {'lint_javascript': ()}},
{'do': {'check_local_config_schema': ()}},
{'do': {'resolve_urls': ('modules.activations.[].scripts.[]',
'modules.activations.[].styles.[]',
'modules.icons.*',
'modules.launchimage.iphone',
'modules.launchimage.iphone-retina',
'modules.launchimage.iphone-retina4',
'modules.launchimage.ipad',
'modules.launchimage.ipad-landscape',
'modules.launchimage.ipad-retina',
'modules.launchimage.ipad-landscape-retina',
'modules.launchimage.android',
'modules.launchimage.android-landscape',
'modules.button.default_icon',
'modules.button.default_popup',
'modules.button.default_icons.*')}},
{'do': {'check_index_html': ('src',)}},
{'do': {'copy_files': {'from': 'src',
'ignore_patterns': [u'.svn/',
u'.cvs/',
u'.hg/',
u'./identity.json',
u'.git/',
u'.bzr/',
u'.forgeignore',
u'./config.json',
u'.darcs/'],
'to': 'development/ios/*/assets/src'}},
'when': {'platform_is': 'ios'}},
{'do': {'copy_files': {'from': 'src',
'ignore_patterns': [u'.svn/',
u'.cvs/',
u'.hg/',
u'./identity.json',
u'.git/',
u'.bzr/',
u'.forgeignore',
u'./config.json',
u'.darcs/'],
'to': 'development/reload/src'}}},
{'do': {'find_and_replace_in_dir': {'find': '<head>',
'replace': "<head><script src='%{back_to_parent}%forge/all.js'></script>",
'root_dir': 'development/ios/*/assets/src'}},
'when': {'platform_is': 'ios'}},
{'do': {'find_and_replace_in_dir': {'find': '<head>',
'replace': "<head><script src='%{back_to_parent}%forge/all.js'></script>",
'root_dir': 'development/reload/src'}}},
{'do': {'find_and_replace_in_dir': {'find': '<head>',
'replace': '<head>\n\t\t\t\t<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">\n\t\t\t\t<script>\n\t\t\t\tfunction window$forge$_receive(result) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\twindow.forge._receive(JSON.parse(result));\n\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\tforge.logging.error("window$forge$_receive -> " + e);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t</script>',
'root_dir': 'development/reload/src'}}},
{'do': {'populate_xml_safe_name': ()}},
{'do': {'populate_json_safe_name': ()}},
{'do': {'set_in_biplist': {'filename': 'development/ios/*/Info.plist',
'key': 'CFBundleName',
'value': '${name}'}},
'when': {'platform_is': 'ios'}},
{'do': {'set_in_biplist': {'filename': 'development/ios/*/Info.plist',
'key': 'CFBundleDisplayName',
'value': '${name}'}},
'when': {'platform_is': 'ios'}},
{'do': {'populate_package_names': ()}},
{'do': {'set_in_biplist': {'filename': 'development/ios/*/Info.plist',
'key': 'CFBundleIdentifier',
'value': '${modules.package_names.ios}'}},
'when': {'platform_is': 'ios'}},
{'do': {'find_and_replace': {'find': 'UUID_HERE',
'in': ('development/ios/device-ios.app/assets/app_config.json',),
'replace': '${uuid}'}},
'when': {'platform_is': 'ios'}},
{'do': {'find_and_replace': {'find': 'UUID_HERE',
'in': ('development/ios/simulator-ios.app/assets/app_config.json',),
'replace': '${uuid}'}},
'when': {'platform_is': 'ios'}},
{'do': {'set_in_biplist': {'filename': 'development/ios/*/Info.plist',
'key': 'CFBundleVersion',
'value': '1362063560'}},
'when': {'platform_is': 'ios'}},
{'do': {'set_in_biplist': {'filename': 'development/ios/*/Info.plist',
'key': 'CFBundleShortVersionString',
'value': '${version}'}},
'when': {'platform_is': 'ios'}},
{'do': {'populate_trigger_domain': ()}},
{'do': {'find_and_replace': {'find': 'CONFIG_HASH_HERE',
'in': ('development/ios/device-ios.app/assets/app_config.json',),
'replace': '${config_hash}'}},
'when': {'platform_is': 'ios'}},
{'do': {'find_and_replace': {'find': 'CONFIG_HASH_HERE',
'in': ('development/ios/simulator-ios.app/assets/app_config.json',),
'replace': '${config_hash}'}},
'when': {'platform_is': 'ios'}},
{'do': {'find_and_replace': {'find': 'TRIGGER_DOMAIN_HERE',
'in': ('development/ios/device-ios.app/assets/app_config.json',),
'replace': '${trigger_domain}'}},
'when': {'platform_is': 'ios'}},
{'do': {'find_and_replace': {'find': 'TRIGGER_DOMAIN_HERE',
'in': ('development/ios/simulator-ios.app/assets/app_config.json',),
'replace': '${trigger_domain}'}},
'when': {'platform_is': 'ios'}},
{'do': {'populate_icons': ('ios', [57, 72, 114, 144])},
'when': {'platform_is': 'ios'}},
{'do': {'generate_sha1_manifest': {'input_folder': 'development/ios/device-ios.app/assets/src',
'output_file': 'development/ios/device-ios.app/assets/hash_to_file.json'}},
'when': {'platform_is': 'ios'}},
{'do': {'generate_sha1_manifest': {'input_folder': 'development/ios/simulator-ios.app/assets/src',
'output_file': 'development/ios/simulator-ios.app/assets/hash_to_file.json'}},
'when': {'platform_is': 'ios'}}]
[INFO] Checking JavaScript files...
[DEBUG] Running: "C:\Users\username\AppData\Local\Trigger Toolkit\build-tools\bin\jsl.exe" -conf "C:\Users\username\AppData\Local\Trigger Toolkit\build-tools\jsl.conf" -process c:\projects\forge-workspace\appname\src\*.js -nologo -nofilelisting -nosummary
[WARNING] c:\projects\forge-workspace\appname\src\knockout.curly.js(29): SyntaxError: invalid quantifier {
[WARNING] var ReplacementInfo = ReplaceMatches(node, /{{(.*?)}}/, function (Matches) {
[WARNING] .......................................................^
[WARNING]
[WARNING] c:\projects\forge-workspace\appname\src\Scripts\jquery.validate.unobtrusive.js(27): SyntaxError: unterminated character class !
[WARNING] return value.replace(/([!"#$%&'()*+,./:;<=>?#\[\\\]^`{|}~])/g, "\\$1");
[WARNING] .............................^
[WARNING]
[WARNING] c:\projects\forge-workspace\appname\src\Scripts\jquery.validate.unobtrusive.min.js(5): SyntaxError: unterminated character class !
[WARNING] (function(a){var d=a.validator,b,e="unobtrusiveValidation";function c(a,b,c){a.rules[b]=c;if(a.message)a.messages[b]=a.message}function j(a){return a.replace(/^\s+|\s+$/g,"").split(/\s*,\s*/g)}function f(a){return a.replace(/([!"#$%&'()*+,./:;<=>?#\[\\\]^
[WARNING] ................................................................................................................................................................................................................................^
[WARNING]
[INFO] JavaScript check complete
[INFO] Verifying your configuration settings...
[INFO] Configuration settings check complete
[DEBUG] copying src to development/ios\device-ios.app\assets\src
[DEBUG] copying src to development/ios\simulator-ios.app\assets\src
[DEBUG] copying src to development/reload/src
[DEBUG] replacing <head> with <head><script src='%{back_to_parent}%forge/all.js'></script> in development/ios/*/assets/src/**/*.('html',)
[DEBUG] replacing <head> with <head><script src='../forge/all.js'></script> in development/ios\device-ios.app\assets\src\index - original.html
[DEBUG] replacing <head> with <head><script src='../forge/all.js'></script> in development/ios\device-ios.app\assets\src\index.html
[DEBUG] replacing <head> with <head><script src='../forge/all.js'></script> in development/ios\simulator-ios.app\assets\src\index - original.html
[DEBUG] replacing <head> with <head><script src='../forge/all.js'></script> in development/ios\simulator-ios.app\assets\src\index.html
[DEBUG] replacing <head> with <head><script src='%{back_to_parent}%forge/all.js'></script> in development/reload/src/**/*.('html',)
[DEBUG] replacing <head> with <head><script src='../forge/all.js'></script> in development/reload/src\index - original.html
[DEBUG] replacing <head> with <head><script src='../forge/all.js'></script> in development/reload/src\index.html
[DEBUG] replacing <head> with <head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<script>
function window$forge$_receive(result) {
try {
window.forge._receive(JSON.parse(result));
} catch (e) {
forge.logging.error("window$forge$_receive -> " + e);
}
}
</script> in development/reload/src/**/*.('html',)
[DEBUG] replacing <head> with <head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<script>
function window$forge$_receive(result) {
try {
window.forge._receive(JSON.parse(result));
} catch (e) {
forge.logging.error("window$forge$_receive -> " + e);
}
}
</script> in development/reload/src\index - original.html
[DEBUG] replacing <head> with <head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<script>
function window$forge$_receive(result) {
try {
window.forge._receive(JSON.parse(result));
} catch (e) {
forge.logging.error("window$forge$_receive -> " + e);
}
}
</script> in development/reload/src\index.html
[DEBUG] setting CFBundleName to appname in development/ios/*/Info.plist
[DEBUG] setting CFBundleDisplayName to appname in development/ios/*/Info.plist
[DEBUG] setting CFBundleIdentifier to U9XC4Z6EP5.* in development/ios/*/Info.plist
[DEBUG] replacing UUID_HERE with u'93ec7c70811411e2b05e12313d00dc45'
[DEBUG] replacing UUID_HERE with 93ec7c70811411e2b05e12313d00dc45 in development/ios/device-ios.app/assets/app_config.json
[DEBUG] replacing UUID_HERE with u'93ec7c70811411e2b05e12313d00dc45'
[DEBUG] replacing UUID_HERE with 93ec7c70811411e2b05e12313d00dc45 in development/ios/simulator-ios.app/assets/app_config.json
[DEBUG] setting CFBundleVersion to 1362063560 in development/ios/*/Info.plist
[DEBUG] setting CFBundleShortVersionString to 0.1 in development/ios/*/Info.plist
[DEBUG] Forge build tools version: 3.3.34
[DEBUG] main: {"server": "{link}https://trigger.io/api/{/link}"}
[DEBUG] port: 38394
[DEBUG] replacing CONFIG_HASH_HERE with u'436f5ffbc0886a450ff560d4a18acd10b24e78ca'
[DEBUG] replacing CONFIG_HASH_HERE with 436f5ffbc0886a450ff560d4a18acd10b24e78ca in development/ios/device-ios.app/assets/app_config.json
[DEBUG] replacing CONFIG_HASH_HERE with u'436f5ffbc0886a450ff560d4a18acd10b24e78ca'
[DEBUG] replacing CONFIG_HASH_HERE with 436f5ffbc0886a450ff560d4a18acd10b24e78ca in development/ios/simulator-ios.app/assets/app_config.json
[DEBUG] replacing TRIGGER_DOMAIN_HERE with u'{link}https://trigger.io'{/link}
[DEBUG] replacing TRIGGER_DOMAIN_HERE with {link}https://trigger.io{/link} in development/ios/device-ios.app/assets/app_config.json
[DEBUG] replacing TRIGGER_DOMAIN_HERE with u'{link}https://trigger.io'{/link}
[DEBUG] replacing TRIGGER_DOMAIN_HERE with {link}https://trigger.io{/link} in development/ios/simulator-ios.app/assets/app_config.json
[DEBUG] <ForgeTask (ios)> has finished
[INFO] Development build created. Use forge run to run your app.
[INFO] Forge tools running at version 3.3.34
[DEBUG] ignoring non-target directory reload
[DEBUG] Enabled platforms: [u'ios']
[DEBUG] Using configuration file value u'device' for ios.device
[DEBUG] Forge build tools version: 3.3.34
[DEBUG] main: {"server": "{link}https://trigger.io/api/{/link}"}
[DEBUG] port: 38394
[DEBUG] POST {link}https://trigger.io/api/track/{/link}
[DEBUG] <ForgeTask (ios)> running...
[DEBUG] <ForgeTask (ios)> script:
[{'do': {'run_ios': (u'device',)}, 'when': {'platform_is': 'ios'}}]
[INFO] Running on iOS device: device
[DEBUG] Using configuration file value u'C:\\iPhone Development Files\\Development_Provisioning_Profile.mobileprovision' for ios.profile.provisioning_profile
[DEBUG] Using configuration file value u'C:\\iPhone Development Files\\Developer Certificate.p12' for ios.profile.developer_certificate_path
[DEBUG] Using configuration file value u'appname2' for ios.profile.developer_certificate_password
[DEBUG] Looking for apps at c:\projects\forge-workspace\appname\development/ios/device-*/
[DEBUG] Signing c:\projects\forge-workspace\appname\development/ios\device-ios.app\
[DEBUG] Provisioning profile has valid wildcard application ID
[INFO] Plist OK
[INFO] 1 Provisioned Device(s):
[INFO] ['8e8023ffaa5ad085966046ca3931c9a09b7661a0']
[INFO] Starting package process for iOS
[INFO] Going to package: c:\projects\forge-workspace\appname\development\ios\device-ios.app
[DEBUG] Provisioning profile has valid wildcard application ID
[INFO] Plist OK
[INFO] 1 Provisioned Device(s):
[INFO] ['8e8023ffaa5ad085966046ca3931c9a09b7661a0']
[DEBUG] Extracted seed ID: U9XC4Z6EP5
[DEBUG] Making Payload directory
[DEBUG] Running: attrib +h c:\projects\forge-workspace\appname\.lib
[DEBUG] File: p12name.jar, already downloaded and correct.
[INFO] Sending app to remote server for codesigning. Uploading may take some time.
[INFO] 100 percent uploaded: c:\users\username\appdata\local\temp\tmp5e1zca
[INFO] 10 percent uploaded: c:\users\username\appdata\local\temp\tmp63qzfp
[INFO] 20 percent uploaded: c:\users\username\appdata\local\temp\tmp63qzfp
[INFO] 30 percent uploaded: c:\users\username\appdata\local\temp\tmp63qzfp
[INFO] 40 percent uploaded: c:\users\username\appdata\local\temp\tmp63qzfp
[INFO] 50 percent uploaded: c:\users\username\appdata\local\temp\tmp63qzfp
[INFO] 60 percent uploaded: c:\users\username\appdata\local\temp\tmp63qzfp
[INFO] 70 percent uploaded: c:\users\username\appdata\local\temp\tmp63qzfp
[INFO] 80 percent uploaded: c:\users\username\appdata\local\temp\tmp63qzfp
[INFO] 90 percent uploaded: c:\users\username\appdata\local\temp\tmp63qzfp
[INFO] 100 percent uploaded: c:\users\username\appdata\local\temp\tmp63qzfp
[INFO] 100 percent uploaded: C:\my\iPhone Development Files\Developer Certificate.p12
[INFO] Extracting app.zip
[INFO] Running: security create-keychain -p f1af2791b0756cb759e962ecebe61c271f8d2d39 9c863e0e28174ffba943a84ce722660088758729
[INFO] Returned success
[INFO] Running: security import certificate.p12 -k 9c863e0e28174ffba943a84ce722660088758729 -t agg -A -P appname2
[INFO] 1 identity imported.
[INFO]
[INFO] Returned success
[INFO] Running: security unlock-keychain -p f1af2791b0756cb759e962ecebe61c271f8d2d39 9c863e0e28174ffba943a84ce722660088758729
[INFO] Returned success
[INFO] Running: codesign --keychain 9c863e0e28174ffba943a84ce722660088758729 --force --preserve-metadata --entitlements entitlements.plist --sign iPhone --resource-rules=app/ResourceRules.plist app
[INFO] Returned success
[INFO] Running: /usr/bin/zip --symlinks --verbose --recurse-paths ../out.zip .
[INFO] adding: _CodeSignature/ (in=0) (out=0) (stored 0%)
[INFO] adding: _CodeSignature/CodeResources (in=513) (out=248) (deflated 52%)
[INFO] adding: embedded.mobileprovision (in=7428) (out=5034) (deflated 32%)
[INFO] adding: Forge (in=1608288) (out=564104) (deflated 65%)
[INFO] adding: Info.plist (in=1316) (out=857) (deflated 35%)
[INFO] adding: ResourceRules.plist (in=161) (out=120) (deflated 25%)
[INFO] total bytes=1617706, compressed=570363 -> 65% savings
[INFO]
[INFO] Returned success
[INFO] Running: security delete-keychain 9c863e0e28174ffba943a84ce722660088758729
[INFO] Returned success
[INFO] Signed app received, continuing with packaging.
[DEBUG] adding to IPA: c:\users\username\appdata\local\temp\tmpyirv0z\Payload\device-ios.app\ForgeCore.bundle\ForgeViewController.nib
[DEBUG] adding to IPA: c:\users\username\appdata\local\temp\tmpyirv0z\Payload\device-ios.app\_CodeSignature\CodeResources
[INFO] created IPA: c:\users\username\appdata\local\temp\tmppqzab4
[DEBUG] Running: attrib +h c:\projects\forge-workspace\appname\.lib
[DEBUG] File: win-ios-install.exe, already downloaded and correct.
[INFO] Installing app on device: is it connected?
[DEBUG] Running: c:\projects\forge-workspace\appname\.lib\win-ios-install.exe c:\users\username\appdata\local\temp\tmppqzab4 U9XC4Z6EP5.*
[INFO] Installing c:\users\username\appdata\local\temp\tmppqzab4 to: 8e8023ffaa5ad085966046ca3931c9a09b7661a0
[INFO] Install - CreatingStagingDirectory (5%)
[INFO] Install - ExtractingPackage (15%)
[INFO] Install - InspectingPackage (20%)
[INFO] Install - TakingInstallLock (20%)
[INFO] Install - PreflightingApplication (30%)
[INFO] Install - InstallingEmbeddedProfile (30%)
[INFO] Install - VerifyingApplication (40%)
[INFO] Install - CreatingContainer (50%)
[INFO] Install - InstallingApplication (60%)
[INFO] Install - PostflightingApplication (70%)
[INFO] Install - SandboxingApplication (80%)
[INFO] Install - GeneratingApplicationMap (90%)
[INFO] Install - Complete
[INFO] Launching - /private/var/mobile/Applications/32F5A9EC-2453-4CD5-9D04-A13D0E14D9AA/device-ios.app
[INFO] Could not start com.apple.debugserver!
[ERROR] Failed when running c:\projects\forge-workspace\appname\.lib\win-ios-install.exe: Installing c:\users\username\appdata\local\temp\tmppqzab4 to: 8e8023ffaa5ad085966046ca3931c9a09b7661a0
Install - CreatingStagingDirectory (5%)
Install - ExtractingPackage (15%)
Install - InspectingPackage (20%)
Install - TakingInstallLock (20%)
Install - PreflightingApplication (30%)
Install - InstallingEmbeddedProfile (30%)
Install - VerifyingApplication (40%)
Install - CreatingContainer (50%)
Install - InstallingApplication (60%)
Install - PostflightingApplication (70%)
Install - SandboxingApplication (80%)
Install - GeneratingApplicationMap (90%)
Install - Complete
Launching - /private/var/mobile/Applications/32F5A9EC-2453-4CD5-9D04-A13D0E14D9AA/device-ios.app
Could not start com.apple.debugserver!
[DEBUG] Traceback (most recent call last):
File "C:\Users\username\AppData\Local\Trigger Toolkit\build-tools\forge\async.py", line 96, in run
result = self._target(*self._args, **self._kwargs)
File "C:\Users\username\AppData\Local\Trigger Toolkit\trigger\api\app.py", line 459, in run
forge_main.run(['--general.interactive', 'no'])
File "C:\Users\username\AppData\Local\Trigger Toolkit\build-tools\forge\main.py", line 414, in run
build_to_run=build_to_run,
File "c:\projects\forge-workspace\appname\.template\generate_dynamic\customer_goals.py", line 125, in run_app
build_to_run.run()
File "c:\projects\forge-workspace\appname\.template\generate_dynamic\build.py", line 337, in run
self._call_with_params(task_method, task_args)
File "c:\projects\forge-workspace\appname\.template\generate_dynamic\build.py", line 296, in _call_with_params
return method(self, *params)
File "c:\projects\forge-workspace\appname\.template\generate_dynamic\ios_tasks.py", line 695, in run_ios
certificate_password=certificate_password,
File "c:\projects\forge-workspace\appname\.template\generate_dynamic\ios_tasks.py", line 628, in run_idevice
run_shell(*win_ios_install, fail_silently=False, command_log_level=logging.INFO, check_for_interrupt=True)
File "c:\projects\forge-workspace\appname\.template\generate_dynamic\utils.py", line 346, in run_shell
output=state.output.getvalue()
ShellError: Failed when running c:\projects\forge-workspace\appname\.lib\win-ios-install.exe: Installing c:\users\username\appdata\local\temp\tmppqzab4 to: 8e8023ffaa5ad085966046ca3931c9a09b7661a0
Install - CreatingStagingDirectory (5%)
Install - ExtractingPackage (15%)
Install - InspectingPackage (20%)
Install - TakingInstallLock (20%)
Install - PreflightingApplication (30%)
Install - InstallingEmbeddedProfile (30%)
Install - VerifyingApplication (40%)
Install - CreatingContainer (50%)
Install - InstallingApplication (60%)
Install - PostflightingApplication (70%)
Install - SandboxingApplication (80%)
Install - GeneratingApplicationMap (90%)
Install - Complete
Launching - /private/var/mobile/Applications/32F5A9EC-2453-4CD5-9D04-A13D0E14D9AA/device-ios.app
Could not start com.apple.debugserver!

Source folder "src" does not exist - have you run forge create yet?

Just downloaded version 3.3.0 for windows today. I installed python and trying to get started with my first app with forge create but I am getting the following in the error log:
2012-04-28 18:03:28,285 [ INFO] Forge tools running at version 3.3.0
2012-04-28 18:03:28,288 [ DEBUG] Forge build tools version: 3.3.0
2012-04-28 18:03:28,288 [ DEBUG] main: {"server": "https://trigger.io/api/"}
2012-04-28 18:03:28,299 [ DEBUG] GET https://trigger.io/api/version_check/3/3/0/
2012-04-28 18:03:29,661 [ DEBUG] checking API response for success or error
2012-04-28 18:03:29,661 [ INFO] Update result: you already have the latest tools
2012-04-28 18:03:44,101 [ DEBUG] GET https://trigger.io/api/auth/loggedin
2012-04-28 18:03:44,279 [ DEBUG] checking API response for success or error
2012-04-28 18:03:44,279 [ DEBUG] already authenticated via cookie - continuing
2012-04-28 18:03:44,279 [ INFO] Registering new app "helloworld" with trigger.io...
2012-04-28 18:03:44,279 [ DEBUG] POST https://trigger.io/api/app/
2012-04-28 18:03:56,368 [ DEBUG] checking API response for success or error
2012-04-28 18:03:56,368 [ INFO] Fetching initial project template
2012-04-28 18:03:56,368 [ DEBUG] already authenticated - continuing
2012-04-28 18:03:56,368 [ DEBUG] GET https://trigger.io/api/app/xxx/initial_files/
2012-04-28 18:03:56,579 [ DEBUG] unzip is available, using it
2012-04-28 18:03:56,782 [ DEBUG] unzip output
2012-04-28 18:03:56,782 [ DEBUG] Can't execute /c/Program Files/Common Files/Symbian/tools/unzip.pl.
2012-04-28 18:03:56,782 [ DEBUG] Extracted initial project template
2012-04-28 18:03:56,782 [ DEBUG] Removed downloaded file ".\initial.zip"
2012-04-28 18:03:56,782 [ INFO] Building app for the first time...
2012-04-28 18:03:56,782 [ ERROR] Source folder "src" does not exist - have you run forge create yet?
Is it suppose to look for unzip within Symbian folder?
Not sure how to fix this, any help would be appreciated ...
Thanks,
EE
From these lines in the output, it looks like a different version of 'unzip' is being used from what our tools expect:
2012-04-28 18:03:56,579 [ DEBUG] unzip is available, using it
2012-04-28 18:03:56,782 [ DEBUG] unzip output
2012-04-28 18:03:56,782 [ DEBUG] Can't execute /c/Program Files/Common Files/Symbian/tools/unzip.pl.
This is causing the basic template app not be unzipped (creating the src directory) hence the error.
Could you try removing '/c/Program Files/Common Files/Symbian/tools/unzip.pl' from the PATH and retrying 'forge create'

Solr (Sunspot) runs, but won't start

When I run RAILS_ENV=production rake sunspot:solr:run, Solr starts as expected and the log looks something like this:
0 INFO (main) [ ] o.e.j.u.log Logging initialized #613ms
355 INFO (main) [ ] o.e.j.s.Server jetty-9.2.11.v20150529
380 WARN (main) [ ] o.e.j.s.h.RequestLogHandler !RequestLog
383 INFO (main) [ ] o.e.j.d.p.ScanningAppProvider Deployment monitor [file:/usr/local/rvm/gems/ruby-2.2.1/gems/sunspot_solr- 2.2.3/solr/server/contexts/] at interval 0
1392 INFO (main) [ ] o.e.j.w.StandardDescriptorProcessor NO JSP Support for /solr, did not find org.apache.jasper.servlet.JspServlet
1437 WARN (main) [ ] o.e.j.s.SecurityHandler ServletContext#o.e.j.w.WebAppContext#1f3ff9d4{/solr,file:/usr/local/rvm/gems/ruby-2.2.1/gems/sunspot_solr-2.2.3/solr/server/solr-webapp/webapp/,STARTING}{/usr/local/rvm/gems/ruby-2.2.1/gems/sunspot_solr-2.2.3/solr/server/solr-webapp/webapp} has uncovered http methods for path: /
1456 INFO (main) [ ] o.a.s.s.SolrDispatchFilter SolrDispatchFilter.init(): WebAppClassLoader=879601585#346da7b1
1487 INFO (main) [ ] o.a.s.c.SolrResourceLoader JNDI not configured for solr (NoInitialContextEx)
1488 INFO (main) [ ] o.a.s.c.SolrResourceLoader using system property solr.solr.home: /usr/local/rvm/gems/ruby-2.2.1/gems/sunspot_solr-2.2.3/solr/server/solr
1491 INFO (main) [ ] o.a.s.c.SolrResourceLoader new SolrResourceLoader for directory: '/usr/local/rvm/gems/ruby-2.2.1/gems/sunspot_solr-2.2.3/solr/server/solr/'
1738 INFO (main) [ ] o.a.s.c.SolrXmlConfig Loading container configuration from /usr/local/rvm/gems/ruby-2.2.1/gems/sunspot_solr-2.2.3/solr/server/solr/solr.xml
1848 INFO (main) [ ] o.a.s.c.CoresLocator Config-defined core root directory: /usr/local/rvm/gems/ruby-2.2.1/gems/sunspot_solr-2.2.3/solr/server/solr
1882 INFO (main) [ ] o.a.s.c.CoreContainer New CoreContainer 394200281
1882 INFO (main) [ ] o.a.s.c.CoreContainer Loading cores into CoreContainer [instanceDir=/usr/local/rvm/gems/ruby-2.2.1/gems/sunspot_solr-2.2.3/solr/server/solr/]
1883 INFO (main) [ ] o.a.s.c.CoreContainer loading shared library: /usr/local/rvm/gems/ruby-2.2.1/gems/sunspot_solr-2.2.3/solr/server/solr/lib
1883 WARN (main) [ ] o.a.s.c.SolrResourceLoader Can't find (or read) directory to add to classloader: lib (resolved as: /usr/local/rvm/gems/ruby-2.2.1/gems/sunspot_solr-2.2.3/solr/server/solr/lib).
1905 INFO (main) [ ] o.a.s.h.c.HttpShardHandlerFactory created with socketTimeout : 600000,connTimeout : 60000,maxConnectionsPerHost : 20,maxConnections : 10000,corePoolSize : 0,maximumPoolSize : 2147483647,maxThreadIdleTime : 5,sizeOfQueue : -1,fairnessPolicy : false,useRetries : false,
2333 INFO (main) [ ] o.a.s.u.UpdateShardHandler Creating UpdateShardHandler HTTP client with params: socketTimeout=600000&connTimeout=60000&retry=true
2338 INFO (main) [ ] o.a.s.l.LogWatcher SLF4J impl is org.slf4j.impl.Log4jLoggerFactory
2339 INFO (main) [ ] o.a.s.l.LogWatcher Registering Log Listener [Log4j (org.slf4j.impl.Log4jLoggerFactory)]
2341 INFO (main) [ ] o.a.s.c.CoreContainer Security conf doesn't exist. Skipping setup for authorization module.
2341 INFO (main) [ ] o.a.s.c.CoreContainer No authentication plugin used.
2379 INFO (main) [ ] o.a.s.c.CoresLocator Looking for core definitions underneath /usr/local/rvm/gems/ruby-2.2.1/gems/sunspot_solr-2.2.3/solr/server/solr
2385 INFO (main) [ ] o.a.s.c.CoresLocator Found 0 core definitions
2389 INFO (main) [ ] o.a.s.s.SolrDispatchFilter user.dir=/usr/local/rvm/gems/ruby-2.2.1/gems/sunspot_solr-2.2.3/solr/server
2390 INFO (main) [ ] o.a.s.s.SolrDispatchFilter SolrDispatchFilter.init() done
2435 INFO (main) [ ] o.e.j.s.h.ContextHandler Started o.e.j.w.WebAppContext#1f3ff9d4{/solr,file:/usr/local/rvm/gems/ruby-2.2.1/gems/sunspot_solr-2.2.3/solr/server/solr-webapp/webapp/,AVAILABLE}{/usr/local/rvm/gems/ruby-2.2.1/gems/sunspot_solr-2.2.3/solr/server/solr-webapp/webapp}
2458 INFO (main) [ ] o.e.j.s.ServerConnector Started ServerConnector#649ad901{HTTP/1.1}{0.0.0.0:8080}
2458 INFO (main) [ ] o.e.j.s.Server Started #3074ms
6677 INFO (qtp207710485-20) [ ] o.a.s.s.SolrDispatchFilter [admin] webapp=null path=/admin/cores params={indexInfo=false&_=1453515549920&wt=json} status=0 QTime=58
6796 INFO (qtp207710485-19) [ ] o.a.s.s.SolrDispatchFilter [admin] webapp=null path=/admin/info/system params={_=1453515550069&wt=json} status=0 QTime=23
I can also access localhost:8080/solr.
However, when I run RAILS_ENV=production rake sunspot:solr:start --trace, I get a normal trace:
** Invoke sunspot:solr:start (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute sunspot:solr:start
Removing stale PID file at /home/rails/webapp/solr/pids/production/sunspot-solr-production.pid
Successfully started Solr ...
Yet I can't access localhost:8080 (it gives me an ERR_CONNECTION_REFUSED), and when I try to do anything else involving Solr, I get an Errno::ECONNREFUSED: Connection refused error.
For example, when I run RAILS_ENV=production rake sunspot:solr:reindex after starting Solr, I get:
Errno::ECONNREFUSED: Connection refused - {:data=>"<?xml version=\"1.0\" encoding=\"UTF-8\"?><delete><query>type:Piece</query></delete>", :headers=>{"Content-Type"=>"text/xml"}, :method=>:post, :params=>{:wt=>:ruby}, :query=>"wt=ruby", :path=>"update", :uri=>#<URI::HTTP http://localhost:8080/solr/update?wt=ruby>, :open_timeout=>nil, :read_timeout=>nil, :retry_503=>nil, :retry_after_limit=>nil}
....
Errno::ECONNREFUSED: Connection refused - connect(2) for "localhost" port 8080
My sunspot.yml file looks like this, after this:
production:
solr:
hostname: localhost
port: 8080 #tomcat defaults to port 8080
path: /solr
log_level: WARNING
solr_home: solr
The Solr server was working fine before. The connection errors started when I tried to seed the production db and received an EOFError: end of file reached. I can post the full trace for that error if needed.
Please help!
I had a similar situation happen. Sunspot would say that Solr had started successfully, but it never actually did start. Turns out I was using Java 1.6 and installing JDK 8 fixed it for me.

Resources