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

Upload Problem: "Permission denied to receive a file" #9132

Open
shadow4040 opened this issue Jun 14, 2024 · 5 comments
Open

Upload Problem: "Permission denied to receive a file" #9132

shadow4040 opened this issue Jun 14, 2024 · 5 comments
Labels

Comments

@shadow4040
Copy link

Describe the bug
Uploading a video over the encoder results on queue with error:
"Status: Error", hovering the info button shows no more content.

Error Logs

AVideoLog::DEBUG: Permission denied to receive a file:
AVideoLog::DEBUG: aVideoEncoder.json: Permission denied to receive a file: {"format":"mp4","title":"test","videoDownloadedLink":"","encoderURL":"https:\\/\\/encoder.****\\/","streamers_id":3,"user":"user","pass":"XXXXXXX","return_vars":"{\\"videos_id\\":0,\\"video_id_hash\\":\\"\\",\\"releaseDate\\":\\"2024-06-14 15:37:00\\"}","releaseDate":"2024-06-14 15:37:00","releaseTime":"1718379420","timezone":"UTC","do_not_login":1,"encodedPass":1} SCRIPT_NAME: /objects/aVideoEncoder.json.php

Tested with admin user who have upload permissions also with the settings:
"authenticated users can upload videos = yes"

@shadow4040 shadow4040 added the bug label Jun 14, 2024
@shadow4040 shadow4040 changed the title Upload Problem: P"ermission denied to receive a file" Upload Problem: "Permission denied to receive a file" Jun 14, 2024
@DanielnetoDotCom
Copy link
Member

check if the user can upload videos

https://github.com/WWBN/AVideo/wiki/About-Video-Upload#who-can-upload

@shadow4040
Copy link
Author

yes, the user and admin have the permissions to Upload.

@DanielnetoDotCom
Copy link
Member

please provide more from your log when you try to upload.

@shadow4040
Copy link
Author

shadow4040 commented Jun 18, 2024

from browser developer console:

{videos_id: 0, video_id_hash: '', releaseDate: '2024-06-18 15:11:00', error: false, msg: 'Your file (test_YPTuniqid_6671879c4e0532.32612337) is queue'}
?justLogin=1&playlists_id=0&PHPSESSID=4d20c9df70c23202bb92d1cb833539fe:1219 {id: '3', name: 'MP4 Low SD HD', created: '2024-06-14 13:37:32', modified: '2024-06-14 13:37:32', extension: 'mp4', …}

====================

from avideo-streamer:

[Tue Jun 18 13:11:56.578821 2024] [php:notice] [pid 2096] [client **IP**:52594] AVideoLog::DEBUG: Password check Old not encoded pass SCRIPT_NAME: /objects/aVideoEncoder.json.php
[Tue Jun 18 13:11:56.582450 2024] [php:notice] [pid 2096] [client **IP**:52594] AVideoLog::DEBUG: Password check Old not found SCRIPT_NAME: /objects/aVideoEncoder.json.php
[Tue Jun 18 13:11:56.585660 2024] [php:notice] [pid 2096] [client **IP**:52594] AVideoLog::DEBUG: Password check Old encoded pass SCRIPT_NAME: /objects/aVideoEncoder.json.php
[Tue Jun 18 13:11:56.589211 2024] [php:notice] [pid 2096] [client **IP**:52594] AVideoLog::DEBUG: Password check Old not found SCRIPT_NAME: /objects/aVideoEncoder.json.php
[Tue Jun 18 13:11:56.589265 2024] [php:notice] [pid 2096] [client **IP**:52594] AVideoLog::DEBUG: loginFromRequest NOT FOUND **LOGIN-MAIL** SCRIPT_NAME: /objects/aVideoEncoder.json.php
[Tue Jun 18 13:11:56.596786 2024] [php:notice] [pid 2096] [client **IP**:52594] AVideoLog::DEBUG: aVideoEncoder.json: start SCRIPT_NAME: /objects/aVideoEncoder.json.php
[Tue Jun 18 13:11:56.596885 2024] [php:notice] [pid 2096] [client **IP**:52594] AVideoLog::DEBUG: aVideoEncoder.json: Permission denied to receive a file: {"duration":"EE:EE:EE","title":"test","first_request":"1","categories_id":0,"format":"mp4","resolution":"","videoDownloadedLink":"","description":"","downloadURL":"","chunkFile":"","encoderURL":"https:\\/\\/myencoder-URL.com\\/","keepEncoding":"0","streamers_id":3,"user":"**LOGIN-MAIL**","pass":"myPASS","return_vars":"{\\"videos_id\\":0,\\"video_id_hash\\":\\"\\",\\"releaseDate\\":\\"2024-06-18 15:11:00\\"}","releaseDate":"2024-06-18 15:11:00","releaseTime":"1718716260","timezone":"Europe\\/Berlin","do_not_login":1,"encodedPass":1} SCRIPT_NAME: /objects/aVideoEncoder.json.php
[Tue Jun 18 13:11:56.596922 2024] [php:notice] [pid 2096] [client **IP**:52594] AVideoLog::DEBUG: Permission denied to receive a file: {"duration":"EE:EE:EE","title":"test","first_request":"1","categories_id":0,"format":"mp4","resolution":"","videoDownloadedLink":"","description":"","downloadURL":"","chunkFile":"","encoderURL":"https:\\/\\/myencoder-URL.com\\/","keepEncoding":"0","streamers_id":3,"user":"**LOGIN-MAIL**","pass":"myPASS","return_vars":"{\\"videos_id\\":0,\\"video_id_hash\\":\\"\\",\\"releaseDate\\":\\"2024-06-18 15:11:00\\"}","releaseDate":"2024-06-18 15:11:00","releaseTime":"1718716260","timezone":"Europe\\/Berlin","do_not_login":1,"encodedPass":1} SCRIPT_NAME: /objects/aVideoEncoder.json.php
**IP** - - [18/Jun/2024:13:11:56 +0000] "POST /aVideoEncoder.json HTTP/1.1" 200 1536 "-" "-"

Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, false given in /var/www/html/plugin/Scheduler/run.php:19
Stack trace:
#0 {main}
  thrown in /var/www/html/plugin/Scheduler/run.php on line 19
PHP Fatal error:  Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, false given in /var/www/html/plugin/Scheduler/run.php:19
Stack trace:
#0 {main}
  thrown in /var/www/html/plugin/Scheduler/run.php on line 19
[Tue Jun 18 13:12:01.982472 2024] [php:notice] [pid 1047] [client **IP**:40504] AVideoLog::DEBUG: Password check Old not encoded pass SCRIPT_NAME: /objects/aVideoEncoder.json.php
[Tue Jun 18 13:12:01.986229 2024] [php:notice] [pid 1047] [client **IP**:40504] AVideoLog::DEBUG: Password check Old not found SCRIPT_NAME: /objects/aVideoEncoder.json.php
[Tue Jun 18 13:12:01.989983 2024] [php:notice] [pid 1047] [client **IP**:40504] AVideoLog::DEBUG: Password check Old encoded pass SCRIPT_NAME: /objects/aVideoEncoder.json.php
[Tue Jun 18 13:12:01.993400 2024] [php:notice] [pid 1047] [client **IP**:40504] AVideoLog::DEBUG: Password check Old not found SCRIPT_NAME: /objects/aVideoEncoder.json.php
[Tue Jun 18 13:12:01.993445 2024] [php:notice] [pid 1047] [client **IP**:40504] AVideoLog::DEBUG: loginFromRequest NOT FOUND **LOGIN-MAIL** SCRIPT_NAME: /objects/aVideoEncoder.json.php
[Tue Jun 18 13:12:01.999814 2024] [php:notice] [pid 1047] [client **IP**:40504] AVideoLog::DEBUG: aVideoEncoder.json: start SCRIPT_NAME: /objects/aVideoEncoder.json.php
[Tue Jun 18 13:12:01.999880 2024] [php:notice] [pid 1047] [client **IP**:40504] AVideoLog::DEBUG: aVideoEncoder.json: Permission denied to receive a file: {"format":"mp4","title":"test","videoDownloadedLink":"","encoderURL":"https:\\/\\/myencoder-URL.com\\/","streamers_id":3,"user":"**LOGIN-MAIL**","pass":"myPASS","return_vars":"{\\"videos_id\\":0,\\"video_id_hash\\":\\"\\",\\"releaseDate\\":\\"2024-06-18 15:11:00\\"}","releaseDate":"2024-06-18 15:11:00","releaseTime":"1718723460","timezone":"UTC","do_not_login":1,"encodedPass":1} SCRIPT_NAME: /objects/aVideoEncoder.json.php
[Tue Jun 18 13:12:02.000233 2024] [php:notice] [pid 1047] [client **IP**:40504] AVideoLog::DEBUG: Permission denied to receive a file: {"format":"mp4","title":"test","videoDownloadedLink":"","encoderURL":"https:\\/\\/myencoder-URL.com\\/","streamers_id":3,"user":"**LOGIN-MAIL**","pass":"myPASS","return_vars":"{\\"videos_id\\":0,\\"video_id_hash\\":\\"\\",\\"releaseDate\\":\\"2024-06-18 15:11:00\\"}","releaseDate":"2024-06-18 15:11:00","releaseTime":"1718723460","timezone":"UTC","do_not_login":1,"encodedPass":1} SCRIPT_NAME: /objects/aVideoEncoder.json.php
**IP** - - [18/Jun/2024:13:12:01 +0000] "POST /aVideoEncoder.json HTTP/1.1" 200 1349 "-" "-"

@DanielnetoDotCom
Copy link
Member

First lets focus on resolve the "Fatal error"

from your logs I can see you have an outdated version.

first update your AVideo https://github.com/WWBN/AVideo/wiki/How-to-Update-your-AVideo-Platform

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

No branches or pull requests

2 participants