问题标签 [openshift-enterprise]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
5 回答
6896 浏览

git - rhc ssh [没有可用的系统 SSH] 错误

我想在我的 cmd 中查看我的 openshift 应用程序日志。我确实尝试过:
rhc ssh appname

那个时候我得到:

我的系统已经有了 ssh 密钥。那么我该如何解决这个问题呢?

0 投票
2 回答
527 浏览

ubuntu - 在 Openshift 服务器中重新部署时上传的文件被删除

推送整个应用程序后,整个应用程序工作正常。然后我通过我的网络界面将一些文件上传到我的上传文件夹。

如果我通过 git 推送代码,上传文件夹中的所有文件都会自动删除。有没有办法在我的 openshift 服务器中阻止这种情况?

0 投票
1 回答
438 浏览

drupal - drush 用于安装新的 drupal 项目 openshift rhc

我需要在 openshift rhc 公司安装新的 drupal 项目,所以我从它的应用程序页面安装了 drupal 包,它会自动安装 drush 。所以我可以通过 ssh 连接使用 drush 安装新的 drupal 项目吗,我尝试获取 drupal 站点的源代码:从页面: https ://www.drupal.org/project/openpublic 我使用了这个基于代码drush help si从本网站使用 ( www.drupal.org/documentation/install/developers):

我得到这个错误:

所以我以这种方式使用此代码(drush make --prepare-install build-openpublic.make openpublicdrush site-install ...

之后它告诉我

但最后我在我的网站地址中看不到已安装的项目,我还必须做些什么才能让它工作!你可以通过这个地址看到这个网站: 我的网站

0 投票
1 回答
183 浏览

python - Openshift 2.1 cannot set OPENSHIFT_PYTHON_WSGI_APPLICATION using action hooks

I am trying to deploy a Django app on openshift (python3.3, django1.7, Openshift 2.1).

I need to set the OPENSHIFT_PYTHON_WSGI_APPLICATION to point to an alternative wsgi.py location.

I have tried using the pre_build script to set the variable, using the following commands:

I can see during the git push that the pre_build script sets the variable correctly. The echo shows the correct path as expected. However wsgi.py does not launch and I get:

CLIENT_ERROR: WSGI application was not found

When I immediately ssh into the gear and check the environment variable I see that OPENSHIFT_PYTHON_WSGI_APPLICATION="" is not set.

If I set the variable manually from my workstation using rhc set-env OPENSHIFT_PYTHON_WSGI_APPLICATION=/var/lib/openshift/gear_name/bla/bla then the variable sticks, the wsgi server launches, and the app works fine.

The problem is that I don't want to use rhc set-env because that means I have to hardwire the gear name in the path. This becomes a problem when I want to do scaling with multiple gears.

Anyone have any ideas on how to set the variable and make stick?

0 投票
1 回答
32 浏览

tomcat7 - Openshift Scaling Tomcat7 与存储的文件和图像

如果我有一个包含用户上传的文件和图像的 Gear,该目录会在所有 Gears 之间共享吗?还是会在每次用户上传后同步?

如果没有,是否有任何解决方法?我可以在每个用户上传/删除/更改上传目录后手动同步所有 Gears 吗?

0 投票
1 回答
165 浏览

nexus - 如何确保在 OpenShift Enterprise 上运行 Sonatype Nexus 并在失败时显示原因?

情况:我成功登录到我的云域和应用程序,cd 进入可执行文件所在的 nexus(version)/bin 目录,然后键入“./nexus start”。这大约有 80% 的时间有效,但我需要 99.9% 的时间。当它失败时,我收到此消息,仅:

./nexus start 启动 Nexus OSS... 启动 Nexus OSS 失败。

附加信息 - 我在一个 DIY 墨盒上运行它,它就像一个魅力一样工作了大约一周。

任何想法表示赞赏。谢谢!

0 投票
1 回答
19 浏览

openshift-enterprise - openshift 在代理和节点之间同步盒式磁带

我们移除了一个墨盒,这破坏了我们的 OpenShift 安装。

我可以用几个推车创建应用程序,但我们所有的 tomcat 推车基本上都死了。当我运行以下命令时,我得到 422:

我已经清除了缓存,重新启动了一切(tc、watchman、openshift*、一切)。我还能尝试什么?

0 投票
1 回答
41 浏览

openshift - Openshift v2 是否支持扩展应用程序的滚动更新

如何在 Openshift v2 的扩展应用程序中进行滚动更新/部署?

我知道我可以访问容器(通过 ssh)并启动“齿轮旋转输出”。但是如何将我的新版本(部署)推送到特定容器(Gear)?Openshift 可以自动执行此操作吗?

当我将更新推送到扩展的应用程序时,所有 Gears 都会同时更新?更新对最终用户透明吗?

0 投票
1 回答
97 浏览

ruby-on-rails - 数据库在运行 Postgres 和 Rails 4 / Ruby 2 的 OpenShift (OSE) 上消失

我在运行 Postgres 数据库的 OpenShift Enterprise 上部署了 Ruby (2) on Rails (4) 应用程序。初始部署后,应用程序运行良好,信息保存在数据库中,路由正常工作,所有测试都通过 - 一切都很好。

然后我用git push openshift master. 当我回到应用程序时,它仍在运行,但所有数据库内容(包括表结构)都消失了。

的输出push很干净。我没有写任何钩子,也没有运行任何时髦的 cron 作业。我可以重复这个过程,重建数据库,然后看着它在每次部署时都被吹走。这个问题在我的本地实例中没有发生。

0 投票
1 回答
1432 浏览

openshift-enterprise - Docker Registry 在部署后保持等待状态

我已经按照在线指南(快速安装)安装了 OpenShift Enterprise,但我一直在部署注册表。

[ https://docs.openshift.com/enterprise/3.0/admin_guide/install/docker_registry.html#deploy-registry][1]

我创建注册表

我检查它是否已配置

但它永远不会运行它一直处于等待状态

我尝试获取更多信息

但是日志命令什么也不返回