# Rake test:jobs failed

**URL:** <https://discourse.openondemand.org/t/rake-test-jobs-failed/2917>\
**Category:** Get Help\
**Tags:** question, doc-request\
**Created:** [August 23, 2023, 11:14am UTC](https://discourse.openondemand.org/t/rake-test-jobs-failed/2917 "2023-08-23T11:14:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![arushai](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/arushai/32/1697_2.png) [@arushai](https://discourse.openondemand.org/u/arushai)\
**Post date:** [August 23, 2023, 11:14am UTC](https://discourse.openondemand.org/t/rake-test-jobs-failed/2917/1 "2023-08-23T11:14:42Z")

</div>

I have setup the new installation with latest OOD. I have setup the cluster and try to follow the steps to test configuration and getting below error

```auto
[root@rc-ood-03 dashboard]# su itamboli -c 'source /opt/ood/ondemand/enable; bin/rake test:jobs RAILS_ENV=production'
Testing cluster 'hpc'...
Submitting job...
Got job id '42'
Job has status of queued
Job has status of completed
Output file from job does not exist: /nfs/itamboli/test_jobs/output_hpc_2023_08_23t14_05_49_03_00_log
Test for 'hpc' FAILED!
Finished testing cluster 'hpc'
Abort testing: Your Rails environment is running in production mode!
[root@rc-ood-03 dashboard]#

```

My cluster yaml is below

```auto
---
v2:
  metadata:
    title: "HPC Cluster"
  login:
    host: "rc-ood-01.ood.poc"
  job:
    adapter: "slurm"
    cluster: "hpc"
    bin: "/usr/bin"
    conf: "/etc/slurm/slurm.conf"
  batch_connect:
    basic:
      header: "#!/bin/bash"
      script_wrapper: |
        module purge
        %s
    vnc:
      header: "#!/bin/bash"
      script_wrapper: |
        module purge
        export PATH="/opt/TurboVNC/bin:$PATH"
        export WEBSOCKIFY_CMD="/usr/local/bin/websockify"
        %s

```

---

<div class="post-metadata">

**Author:** ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)\
**Post date:** [October 24, 2023, 1:23pm UTC](https://discourse.openondemand.org/t/rake-test-jobs-failed/2917/2 "2023-10-24T13:23:12Z")

</div>

> [@arushai](#):
>
> `Abort testing: Your Rails environment is running in production mode!`

I don’t think you want to issue this with the `RAILS_ENV=production` environment variable. Does the documentation tell you to set the RAILS\_ENV?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/osc/original/2X/b/bae70bd0ed39a3ae769c2108155f4cb3e9da8385.png) [@system](https://discourse.openondemand.org/u/system)\
**Post date:** [April 21, 2024, 1:24pm UTC](https://discourse.openondemand.org/t/rake-test-jobs-failed/2917/3 "2024-04-21T13:24:09Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
