# Zammad wants to use nonexistent /cable folder in mobile view

**URL:** https://community.zammad.org/t/zammad-wants-to-use-nonexistent-cable-folder-in-mobile-view/11696
**Category:** Technical assistance
**Created:** [July 4, 2023, 8:25am UTC](https://community.zammad.org/t/zammad-wants-to-use-nonexistent-cable-folder-in-mobile-view/11696 "2023-07-04T08:25:40Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![BratonPrime](https://community.zammad.org/user_avatar/community.zammad.org/bratonprime/32/7351_2.png) [@BratonPrime](https://community.zammad.org/u/BratonPrime)
#### Post date: [July 4, 2023, 8:25am UTC](https://community.zammad.org/t/zammad-wants-to-use-nonexistent-cable-folder-in-mobile-view/11696/1 "2023-07-04T08:25:40Z")

</div>

Hello!

- Used Zammad version: 6.0.0-1686215060.f57bd7c6.bionic
- Used Zammad installation type: (source, package, docker-compose, …) : Package
- Operating system: Ubuntu 18.04
- Browser + version: Chrome Version 114.0.5735.199

From inside the nginx.zammad.error.log:  
‘’‘open() “/opt/zammad/public/cable” failed (2: No such file or directory) , server: \_, request: “GET /cable HTTP/1.1”,’‘’

So it seems to want to acess a cable folder . There is no Folder.

"

# action cable

```
location /cable {
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "Upgrade";
    proxy_set_header CLIENT_IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_read_timeout 86400;
proxy_pass http://zammad-railsserver;
 
}

```

"

This part is in the zammad.conf file.  
Which is located in /etc/nginx/sites-available

### Expected behavior:

It opens the mobile site and isn’t losing the connection.

### Actual behavior:

It opens the mobile site and is losing the connection.

The normal Zammad Website is working.

Thhak you for your Help!

---

<div class="post-metadata">

### Author: ![fliebe92](https://community.zammad.org/user_avatar/community.zammad.org/fliebe92/32/12102_2.png) [@fliebe92](https://community.zammad.org/u/fliebe92)
#### Post date: [July 4, 2023, 9:51am UTC](https://community.zammad.org/t/zammad-wants-to-use-nonexistent-cable-folder-in-mobile-view/11696/2 "2023-07-04T09:51:35Z")

</div>

Hi @BratonPrime.

Please make sure that `http_type` and `fqdn` are set correctly and that you’re using the FQDN to access the mobile view. Otherwise the data out of your `production.log` might be interesting as well (all entries that are related to `/cable`).

---

<div class="post-metadata">

### Author: ![BratonPrime](https://community.zammad.org/user_avatar/community.zammad.org/bratonprime/32/7351_2.png) [@BratonPrime](https://community.zammad.org/u/BratonPrime)
#### Post date: [July 4, 2023, 11:43am UTC](https://community.zammad.org/t/zammad-wants-to-use-nonexistent-cable-folder-in-mobile-view/11696/3 "2023-07-04T11:43:05Z")

</div>

Hello @fliebe92.

Thank you very much for your help!

The fqdn is set correctly in the Rails console.

I tried changing the http\_type there from https to http. After restarting Zammad it gave the same errors, so I changed it back to https.

This is how it looks in the production.log file:

> I, [2023-07-04T11:32:33.299514#208428-115000] INFO – : Started GET “/cable” for 192.168.106.254 at 2023-07-04 11:32:33 +0000  
> I, [2023-07-04T11:32:33.305997#208428-115000] INFO – : Started GET “/cable/” [WebSocket] for 192.168.106.170 at 2023-07-04 11:32:33 +0000  
> E, [2023-07-04T11:32:33.306115#208428-115000] ERROR – : Request origin not allowed: [https://MyFQDN](https://MyFQDN)  
> E, [2023-07-04T11:32:33.306155#208428-115000] ERROR – : Failed to upgrade to WebSocket (REQUEST\_METHOD: GET, HTTP\_CONNECTION: Upgrade, HTTP\_UPGRADE: WebSocket)  
> I, [2023-07-04T11:32:33.306195#208428-115000] INFO – : Finished “/cable/” [WebSocket] for 192.168.106.170 at 2023-07-04 11:32:33 +0000  
> I, [2023-07-04T11:32:40.383206#208428-111940] INFO – : Started GET “/cable” for 192.168.106.254 at 2023-07-04 11:32:40 +0000  
> I, [2023-07-04T11:32:40.390057#208428-111940] INFO – : Started GET “/cable/” [WebSocket] for 192.168.106.170 at 2023-07-04 11:32:40 +0000  
> E, [2023-07-04T11:32:40.390144#208428-111940] ERROR – : Request origin not allowed: [https://MyFQDN](https://MyFQDN)  
> E, [2023-07-04T11:32:40.390183#208428-111940] ERROR – : Failed to upgrade to WebSocket (REQUEST\_METHOD: GET, HTTP\_CONNECTION: Upgrade, HTTP\_UPGRADE: WebSocket)  
> I, [2023-07-04T11:32:40.390223#208428-111940] INFO – : Finished “/cable/” [WebSocket] for 192.168.106.170 at 2023-07-04 11:32:40 +0000  
> I, [2023-07-04T11:32:41.656425#208433-111980] INFO – : ProcessScheduledJobs running…  
> I, [2023-07-04T11:32:41.659018#208433-111980] INFO – : Running job thread for ‘Generate ‘Session’ data.’ (Sessions.jobs) status is: sleep  
> I, [2023-07-04T11:32:41.659091#208433-111980] INFO – : Running job thread for ‘Check channels.’ (Channel.fetch) status is: sleep  
> I, [2023-07-04T11:32:41.659139#208433-111980] INFO – : Running job thread for ‘Check ‘Channel’ streams.’ (Channel.stream) status is: sleep  
> I, [2023-07-04T11:32:41.660127#208433-111980] INFO – : Running job thread for ‘Execute planned jobs.’ (Job.run) status is: sleep  
> I, [2023-07-04T11:32:48.290276#208428-112420] INFO – : Started GET “/cable” for 192.168.106.254 at 2023-07-04 11:32:48 +0000  
> I, [2023-07-04T11:32:48.296570#208428-112420] INFO – : Started GET “/cable/” [WebSocket] for 192.168.106.170 at 2023-07-04 11:32:48 +0000  
> E, [2023-07-04T11:32:48.296649#208428-112420] ERROR – : Request origin not allowed: [https://MyFQDN](https://MyFQDN)  
> E, [2023-07-04T11:32:48.296687#208428-112420] ERROR – : Failed to upgrade to WebSocket (REQUEST\_METHOD: GET, HTTP\_CONNECTION: Upgrade, HTTP\_UPGRADE: WebSocket)  
> I, [2023-07-04T11:32:48.296726#208428-112420] INFO – : Finished “/cable/” [WebSocket] for 192.168.106.170 at 2023-07-04 11:32:48 +0000

I hope that these logs are usefull. Thanks for the help so far.

---

<div class="post-metadata">

### Author: ![fliebe92](https://community.zammad.org/user_avatar/community.zammad.org/fliebe92/32/12102_2.png) [@fliebe92](https://community.zammad.org/u/fliebe92)
#### Post date: [July 4, 2023, 11:56am UTC](https://community.zammad.org/t/zammad-wants-to-use-nonexistent-cable-folder-in-mobile-view/11696/4 "2023-07-04T11:56:59Z")

</div>

Just to confirm: Even after restarting your Zammad instance, you’re faced with the same error, right?

---

<div class="post-metadata">

### Author: ![BratonPrime](https://community.zammad.org/user_avatar/community.zammad.org/bratonprime/32/7351_2.png) [@BratonPrime](https://community.zammad.org/u/BratonPrime)
#### Post date: [July 4, 2023, 12:02pm UTC](https://community.zammad.org/t/zammad-wants-to-use-nonexistent-cable-folder-in-mobile-view/11696/5 "2023-07-04T12:02:07Z")

</div>

Yes, I have restarted it completely.

---

<div class="post-metadata">

### Author: ![fliebe92](https://community.zammad.org/user_avatar/community.zammad.org/fliebe92/32/12102_2.png) [@fliebe92](https://community.zammad.org/u/fliebe92)
#### Post date: [July 4, 2023, 12:15pm UTC](https://community.zammad.org/t/zammad-wants-to-use-nonexistent-cable-folder-in-mobile-view/11696/6 "2023-07-04T12:15:59Z")

</div>

Can you please execute `rails r "pp Rails.application.config.action_cable.allowed_request_origins"` (in a package install, please prefix it with `zammad run`) and check if your FQDN is included there?

---

<div class="post-metadata">

### Author: ![BratonPrime](https://community.zammad.org/user_avatar/community.zammad.org/bratonprime/32/7351_2.png) [@BratonPrime](https://community.zammad.org/u/BratonPrime)
#### Post date: [July 4, 2023, 1:04pm UTC](https://community.zammad.org/t/zammad-wants-to-use-nonexistent-cable-folder-in-mobile-view/11696/7 "2023-07-04T13:04:34Z")

</div>

Hi,

I get [“[http://localhost:3000](http://localhost:3000)”, “[https://MyFQDN](https://MyFQDN)”] as the response. It is correct if it is case-insensitive.

How can i change the http FQDN ?

---

<div class="post-metadata">

### Author: ![fliebe92](https://community.zammad.org/user_avatar/community.zammad.org/fliebe92/32/12102_2.png) [@fliebe92](https://community.zammad.org/u/fliebe92)
#### Post date: [July 4, 2023, 1:15pm UTC](https://community.zammad.org/t/zammad-wants-to-use-nonexistent-cable-folder-in-mobile-view/11696/8 "2023-07-04T13:15:37Z")

</div>

It’s case-sensitive. Make sure to set the correct fqdn in your system.

There is no `http FQDN`, this part of the output from the command I gave to you is hardcoded.

---

<div class="post-metadata">

### Author: ![system](https://community.zammad.org/uploads/default/original/1X/5c5afaea2d23f811dbec33cd4edb02fa29d3262f.png) [@system](https://community.zammad.org/u/system)
#### Post date: [June 28, 2024, 1:16pm UTC](https://community.zammad.org/t/zammad-wants-to-use-nonexistent-cable-folder-in-mobile-view/11696/9 "2024-06-28T13:16:25Z")

</div>

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