swisscomdev

Alternative to Swisscom CF plugin named Service Connector

旧城冷巷雨未停 提交于 2019-12-12 18:14:35
问题 Lots of people use Swisscom developed CF Plugin After creating a service instance, you’ll eventually need to administrate the service. For example you might need to create data tables in a database or backup/restore your data. For these use cases, we created the Cloud Foundry CLI Plugin Service Connector which is a local proxy app through which you can connect to your service instances using your preferred locally installed tools. There is an alternative without installing and updating a CF

Deploy a Laravel App on Cloudfoundry

人盡茶涼 提交于 2019-12-12 00:42:50
问题 I am trying to deploy a Laravel based web application to the Swisscom Application Cloud. Therefor I use the provided PHP Buildpack. The Docs shows an example with Lumen, so I am assuming that it should work with Laravel as well. Used command: cf push app-name -m 512M -n app-name While deploying I get these two errors: a) The extension 'fpm' is not provided by this buildpack. The extension 'tokenizer' is not provided by this buildpack. The extension 'dom' is not provided by this buildpack. The

Jenkins pushes app to wrong target

≯℡__Kan透↙ 提交于 2019-12-11 23:26:36
问题 we continuously build our apps with Jenkins and deploy them to our different spaces: ... cf login -a https://api.lyra-836.appcloud.swisscom.com -u ... cf target -s development cf push scs-flux-monitoring-development ... Now we recognized that the push is sometimes taking a wrong space to install the app. We think this is because of another Jenkins Job doing a parallel push. As far we can see the .cf/config.json stores the name of the Space and when another cf target is called all pushes are

How to pull files from Cloud Foundry on Diego

我只是一个虾纸丫 提交于 2019-12-11 08:54:23
问题 I would like to retrieve some application's logs. I found that the command cf file was not available anymore and the plugin cf-download doesn't work on Diego Architecture. Is there a way to retrieve files from the cloud foundry by CLI other another method? 回答1: The solution is to use SSH without cf CLI When you are at the step 4) you can use WinSCP (for Windows) to have a graphical interface to navigate in the folders. 来源: https://stackoverflow.com/questions/48499625/how-to-pull-files-from

Unexpected app crashes: “hijack: Backend error: Exit status: 500 and could not find the exitcode file for the process”

一笑奈何 提交于 2019-12-11 07:29:02
问题 app.crash index: 0, reason: CRASHED, exit_description: Instance became unhealthy: hijack: Backend error: Exit status: 500, message: {"Type":"","Message":"no space left on device","Handle":"","ProcessID":""} ; connection: process error: could not find the exitcode file for the process: stat /var/vcap/data/garden/depot/XXX/processes/XXX/exitcode: no such file or directory; connection: Lately, the above error has been persistently occurring on several apps running in the AppCloud. There is no

Where did the service-connector plugin go?

我的梦境 提交于 2019-12-11 05:33:24
问题 Latest since this checkin the service-connector cf plugin seems to be gone for SwisscomDev. Official Link to the plugin simply returns a 404. Isn't it supported anymore? What's the alternative? And did I miss communication about it? 回答1: Isn't it supported anymore? What's the alternative? Yes. Our proprietary CF CLI client plugin is phased out. The alternative is cf ssh (from upstream). See Accessing Services with SSH on docs.developer.swisscom.com. On Migrate from legacy MariaDB to MariaDB

Mongodb cannot run map reduce without the js engine

五迷三道 提交于 2019-12-11 04:17:26
问题 I deployed a nodejs app on appcloud with mongodb as service, I would like to use mapReduce for some queries but I got this error: 2016-10-21 15:45:52 [APP/0] ERR ERR! { [MongoError: cannot run map reduce without the js engine] Is it supported on swisscom appcloud or what? This is my controller (an extract): 'use strict'; const mongo = require('../mongoclient'); const paramsParser = require('../paramsParser'); const log = require('npmlog'); const faker = require('faker'); const _ = require(

why does the 'cf run-task' command not work on swisscom cloudfoundry

那年仲夏 提交于 2019-12-10 11:19:01
问题 I'm trying to get 'cf run-task' to work on the swisscom cloudfoundry instance. But it fails with even the simplest command: $ cf run-task hostapp "echo SUCCESS" --name task1 Creating task for app hostapp in org xxx / space yyy as xxx@yyy.com... Unexpected Response Response Code: 404 FAILED Is run-task not yet supported in cf api version 2.96.0? (which seems to be the current installed version on the swisscom env) 回答1: The Swisscom Application Cloud has not activated the cf run-task feature

Spring Boot HTTPS redirect loop after Swisscom Application Cloud update

不羁的心 提交于 2019-12-07 16:37:41
问题 We are using the Swisscom Application Cloud to run our Spring Boot application. After their "Migration to multi-cloud environment" on 2018-02-22 (Swisscom Status Page), our application completely failed to serve any request. The problem was found to be the automated redirection of HTTP to HTTPS. We were doing this in the SecurityConfiguration of our application like this: @Configuration public class SecurityConfiguration extends WebSecurityConfigurerAdapter { // [...] @Override protected void

Are mongodb backups made automatically?

时光怂恿深爱的人放手 提交于 2019-12-06 07:09:16
问题 We use two mongodb services and there is now a backup button in the swisscom developer console. Do we have to do the backups manually with this button or are further backups made automatically? if yes, when and how often? 回答1: We make automatically backups, but only for desaster recovery. We don't provide this backups to customer. So please trigger in Developer Portal backup for you. Other option is to automate backup with mongodump or the Filter API. There is an API endpoint for triggering