Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unacceptable file type, only regular file is allowed #10

Closed
Treverr opened this issue May 21, 2020 · 20 comments
Closed

Unacceptable file type, only regular file is allowed #10

Treverr opened this issue May 21, 2020 · 20 comments
Labels
Installing Issues with installing this webui

Comments

@Treverr
Copy link

Treverr commented May 21, 2020

Hello,

I followed the instructions for this which are pretty straightforward, but once I pointed QB to it, I get the error of

Unacceptable file type, only regular file is allowed

I am on v4.2.1, which had some fixes in it regarding the public/index.html but I still get the same error

I saw previously in issue #5 that it was a separate app, is this still the case? The instructions just have you point the alt webui in qb, but that didn't work here.

Thanks!

@WDaan
Copy link
Collaborator

WDaan commented May 21, 2020

Hi! Thank you for taking an interest!

Issue #5 is no longer the case, it IS an alternative webui now.

I've started rewriting it literally yesterday, so it's still in it's very early stages.

When you unzip it you'll get a vuetorrent folder, you should point it to this folder.

If that still doesn't work, I'll look into it in the morning.

@Treverr
Copy link
Author

Treverr commented May 21, 2020

Hi @WDaan! Thanks for the reply, yeah pointing to the vuetorrent/ doesn't seem to work with v4.2.5 I've posted on their site too to see if maybe this is an issue with them

@WDaan
Copy link
Collaborator

WDaan commented May 22, 2020

I just tested it with v4.2.5 and it works fine

@Treverr
Copy link
Author

Treverr commented May 22, 2020

Hmm interesting.

So I have it set up like this:

drwxrwxrwx  5 nobody nogroup       4096 May 21 13:15 VueTorrent

And the files in the directory:

trever@server:/Volumes/Storage/Web/VueTorrent$ ls -l
total 508
-rwxrwxrwx  1 nobody nogroup  35149 May 20 11:22 LICENSE
-rwxrwxrwx  1 nobody nogroup   1256 May 20 11:22 package.json
-rwxrwxrwx  1 nobody nogroup 458756 May 20 11:22 package-lock.json
drwxrwxrwx  2 nobody nogroup   4096 May 21 13:40 public
-rwxrwxrwx  1 nobody nogroup   1772 May 20 11:22 README.md
drwxrwxrwx 10 nobody nogroup   4096 May 20 11:22 src
-rwxrwxrwx  1 nobody nogroup    235 May 21 13:15 vue.config.js

And then my qb config:

WebUI\AlternativeUIEnabled=true
WebUI\RootFolder=/Volumes/Storage/Web/VueTorrent/

I also tried

WebUI\AlternativeUIEnabled=true
WebUI\RootFolder=/Volumes/Storage/Web/VueTorrent/public

Is there something I'm missing or misunderstanding?

@WDaan
Copy link
Collaborator

WDaan commented May 22, 2020

I don' t know if your using docker or not but I just tested it in a docker container.

  • placed vuetorrent folder in mounted /config directory.
  • set alternate webui location to /config/vuetorrent (by using the settings menu)

In the qBittorrent.conf I get:

WebUI\AlternativeUIEnabled=true
WebUI\RootFolder=/config/vuetorrent

I don't know what you're doing wrong 😅

@Treverr
Copy link
Author

Treverr commented May 22, 2020

I think that was the main issue here. I just realized as you posted that about the docker, dumb oversight.

What is the devServer on port 8000? Is that something I can change? I have Splunk running on port 8000.

@WDaan
Copy link
Collaborator

WDaan commented May 22, 2020

Something you shouldn't need to worry about at all!

During development I access the webui on port 8000, but is proxy's the requests to port 8080 (which my qbitorrent uses).

You shouldn't be changing any port settings!
When I tested it in a docker-container, I randomly set it's webui to port 8083 and it worked fine.

@Treverr
Copy link
Author

Treverr commented May 22, 2020

Gotcha- hmm okay. I got a little further but I'm just getting a blank page after moving it to the config folder. Looks like the JS isn't building the page for some reason.

@Treverr
Copy link
Author

Treverr commented May 22, 2020

Its breaking here

[Error] Failed to load resource: the server responded with a status of 500 (Internal Server Error) (%3C%=%20BASE_URL%20%%3Efavicon.ico, line 0)

Shouldn't BASE_URL be declared somewhere?

@WDaan
Copy link
Collaborator

WDaan commented May 22, 2020

If it's a service-worker error, I got that one too... shouldn't affect it.
Otherwise I have no clue!

The BASE_URL shouldn't need to be set, unless you're using a reverse-proxy MAYBE but even then.

Mind you, this is very very much in it's early stages.
I haven't even made a stable release yet.
I'm working on everything, right now! :)

@FranciscoPombal
Copy link

FranciscoPombal commented May 22, 2020

@Treverr

Hmm interesting.

So I have it set up like this:

drwxrwxrwx  5 nobody nogroup       4096 May 21 13:15 VueTorrent

And the files in the directory:

trever@server:/Volumes/Storage/Web/VueTorrent$ ls -l
total 508
-rwxrwxrwx  1 nobody nogroup  35149 May 20 11:22 LICENSE
-rwxrwxrwx  1 nobody nogroup   1256 May 20 11:22 package.json
-rwxrwxrwx  1 nobody nogroup 458756 May 20 11:22 package-lock.json
drwxrwxrwx  2 nobody nogroup   4096 May 21 13:40 public
-rwxrwxrwx  1 nobody nogroup   1772 May 20 11:22 README.md
drwxrwxrwx 10 nobody nogroup   4096 May 20 11:22 src
-rwxrwxrwx  1 nobody nogroup    235 May 21 13:15 vue.config.js

And then my qb config:

WebUI\AlternativeUIEnabled=true
WebUI\RootFolder=/Volumes/Storage/Web/VueTorrent/

I also tried

WebUI\AlternativeUIEnabled=true
WebUI\RootFolder=/Volumes/Storage/Web/VueTorrent/public

Is there something I'm missing or misunderstanding?

You need to actually "build" it first, or download a pre-packaged release from the releases page. What you are doing right now is akin to cloning the qBittorrent repo and trying to run the .cpp files, instead of compiling them into an executable. That's why it's not working.

@WDaan you could probably make this clear in the readme. Right now, for someone unfamiliar with the VueJS/JavaScript world it kind of makes it seem that one can just git clone the repo and point qBittorrent at that.

@WDaan
Copy link
Collaborator

WDaan commented May 22, 2020

@FranciscoPombal

I'm sorry, I thought it was pretty clear 😅
I hope it's less confusing now.

@WDaan WDaan added the Installing Issues with installing this webui label May 22, 2020
@WDaan WDaan closed this as completed May 22, 2020
@Treverr
Copy link
Author

Treverr commented May 22, 2020

Ah yeah that was it!

@Urvdmih
Copy link

Urvdmih commented Mar 13, 2021

I have this problem too.
I downloaded latest realese and unzip this in \etc\qBittorrent_entware\config
image
My config
WebUI\AlternativeUIEnabled=true
WebUI\AuthSubnetWhitelist=@invalid()
WebUI\AuthSubnetWhitelistEnabled=false
WebUI\CSRFProtection=true
WebUI\ClickjackingProtection=true
WebUI\HTTPS\Enabled=false
WebUI\HostHeaderValidation=true
WebUI\LocalHostAuth=true
WebUI\Password_ha1=
WebUI\Port=9080
WebUI\RootFolder=/etc/qBittorrent_entware/config/vuetorrent

That's wrong?
Update 1. I updated the version of qbittorrent from 4.1.9 to 4.3.1. It didn't help.

@UmbraAtrox
Copy link

I have qbittorrent-nox 4.1.7 running on a ubuntu 20.04.2 vm

i extracted the zipfile to /home/qbittorrent-nox/vuetorrent and set that path in webui.

As long as i do not log out it works beautifully, but every browser which isn't logged in gets "Unacceptable file type, only regular file is allowed."

@Rerbun
Copy link

Rerbun commented Dec 25, 2021

I have qbittorrent-nox 4.1.7 running on a ubuntu 20.04.2 vm

i extracted the zipfile to /home/qbittorrent-nox/vuetorrent and set that path in webui.

As long as i do not log out it works beautifully, but every browser which isn't logged in gets "Unacceptable file type, only regular file is allowed."

Same here with Qbittorrent-nox 4.1.5

Edit: just realized that Qbittorrent-nox is only supported on version 4.2+
Edit 2: if anyone wishes to update and the version is not available, check out qbittorrent-nox-static: https://userdocs.github.io/qbittorrent-nox-static/#/install-qbittorrent
To get it working properly you might need to pretty much completely remove/rename your old ~/.local/share/data/qBittorrent/ directory so that you can start fresh

@lakimakromedia
Copy link

lakimakromedia commented Jun 25, 2022

Same for me 4.4.3.1 on unraid :/
And I fallowed ibracorp tut on YT
ed
When stopped usuing "/data/" and put full path - start working

@leni8ec
Copy link

leni8ec commented Oct 3, 2022

In my case, the solution was to change the path from:

/etc/qBittorrent_entware/themes/vuetorrent

To:

/opt/etc/qBittorrent_entware/themes/vuetorrent

@stephenshutters
Copy link

@Treverr

Hmm interesting.
So I have it set up like this:

drwxrwxrwx  5 nobody nogroup       4096 May 21 13:15 VueTorrent

And the files in the directory:

trever@server:/Volumes/Storage/Web/VueTorrent$ ls -l
total 508
-rwxrwxrwx  1 nobody nogroup  35149 May 20 11:22 LICENSE
-rwxrwxrwx  1 nobody nogroup   1256 May 20 11:22 package.json
-rwxrwxrwx  1 nobody nogroup 458756 May 20 11:22 package-lock.json
drwxrwxrwx  2 nobody nogroup   4096 May 21 13:40 public
-rwxrwxrwx  1 nobody nogroup   1772 May 20 11:22 README.md
drwxrwxrwx 10 nobody nogroup   4096 May 20 11:22 src
-rwxrwxrwx  1 nobody nogroup    235 May 21 13:15 vue.config.js

And then my qb config:

WebUI\AlternativeUIEnabled=true
WebUI\RootFolder=/Volumes/Storage/Web/VueTorrent/

I also tried

WebUI\AlternativeUIEnabled=true
WebUI\RootFolder=/Volumes/Storage/Web/VueTorrent/public

Is there something I'm missing or misunderstanding?

You need to actually "build" it first, or download a pre-packaged release from the releases page. What you are doing right now is akin to cloning the qBittorrent repo and trying to run the .cpp files, instead of compiling them into an executable. That's why it's not working.

@WDaan you could probably make this clear in the readme. Right now, for someone unfamiliar with the VueJS/JavaScript world it kind of makes it seem that one can just git clone the repo and point qBittorrent at that.

I'm having this exact same issue. How does one go about "building" it?

@Larsluph
Copy link
Collaborator

Larsluph commented Oct 27, 2023

Follow the installation section of the readme. You don't need to build it, just clone the release branch and you'll be good to go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Installing Issues with installing this webui
Projects
None yet
Development

No branches or pull requests

10 participants