Bravo List
Register
Go Back   > Bravo List > Source Code > Active Trackers > Torrent Trader
Reply
  #1  
Old 30th May 2021, 09:29
Extremlym's Avatar
Extremlym Extremlym is offline
Senior Member
 
Join Date: Oct 2012
P2P
Posts: 102
Smile No ID. Server error, please report.
Upload Failed No ID. Server error, please report.

i have recently change the server VPS so i,m getting this error

i think is something from
BDecode.php / BEncode.php

HTML Code:
    if ($id == 0) {        unlink("$torrent_dir/$fname");        $message = T_("UPLOAD_NO_ID");        show_error_msg(T_("UPLOAD_FAILED"), $message, 1);    }    rename("$torrent_dir/$fname", "$torrent_dir/$id.torrent");// Edit Torrent Comment 2016 Extremlym    require_once("backend/BDecode.php");    require_once("backend/BEncode.php");
</div>
Reply With Quote
  #2  
Old 30th May 2021, 10:50
DND DND is offline
VIP
 
Join Date: Dec 2008
Posts: 1,241
Default
have you added auto_increment to the id field for torrents in phpmyadmin ..because id=0 shouldnt exist at all
__________________
Need HELP!? I can install:

  1. Server/VPS (Debian,CentOS,Ubuntu,Fedora, FreeBSD) Optimization and ... + Modules
  2. Webserver Windows/Linux (Apache/Lighttpd/Nginx/Mysql/PhpMyAdmin/SSL) Optimization and ... + Modules
  3. Seedbox Windows/Linux (uTorrent,rTorrent,libTorrent,ruTorrent) + Modules
  4. Multiple source code engines
  5. Linux Server Administration (security, cryptography/encryption, proxy, load balancer, custom ddos firewall)
Reply With Quote
  #3  
Old 30th May 2021, 10:54
Extremlym's Avatar
Extremlym Extremlym is offline
Senior Member
 
Join Date: Oct 2012
P2P
Posts: 102
Default
yes



Mysql Version: 5.7.34
PHP Version: 5.6.40-50+ubuntu18.04.1+deb.sury.org+1
Reply With Quote
  #4  
Old 30th May 2021, 17:49
MicroMonkey's Avatar
MicroMonkey MicroMonkey is offline
Senior Member
 
Join Date: Jun 2016
P2P
Posts: 52
Default
I have only seen something similar due to permissions. Maybe not your exact error, but similar. Check and make sure www-data can read and write to the directory which would be sudo chown -R www-data:www-data /var/www/ This assumes you are using apache. I actually made alot of assumptions, but hopefully it helps
__________________
More torrenttrader stuff at https://torrenttrader.uk
Reply With Quote
  #5  
Old 30th May 2021, 18:14
Extremlym's Avatar
Extremlym Extremlym is offline
Senior Member
 
Join Date: Oct 2012
P2P
Posts: 102
Default
Quote:
Originally Posted by DND View Post
have you added auto_increment to the id field for torrents in phpmyadmin ..because id=0 shouldnt exist at all



i think is something from phpmyadmin


is not writeing from website just read the database :\

Bump:
Quote:
Originally Posted by MicroMonkey View Post
I have only seen something similar due to permissions. Maybe not your exact error, but similar. Check and make sure www-data can read and write to the directory which would be sudo chown -R www-data:www-data /var/www/ This assumes you are using apache. I actually made alot of assumptions, but hopefully it helps

chown: changing ownership of '/var/www/html': Operation not permitted

Bump:
Quote:
Originally Posted by MicroMonkey View Post
I have only seen something similar due to permissions. Maybe not your exact error, but similar. Check and make sure www-data can read and write to the directory which would be sudo chown -R www-data:www-data /var/www/ This assumes you are using apache. I actually made alot of assumptions, but hopefully it helps

chown: changing ownership of '/var/www/html': Operation not permitted

Last edited by Extremlym; 30th May 2021 at 18:37.
Reply With Quote
  #6  
Old 31st May 2021, 00:05
rio rio is offline
Senior Member
 
Join Date: May 2019
P2P
Posts: 55
Default
Quote:
Originally Posted by Extremlym View Post
i think is something from phpmyadmin


is not writeing from website just read the database :\

Bump:


chown: changing ownership of '/var/www/html': Operation not permitted

Bump:


chown: changing ownership of '/var/www/html': Operation not permitted

Use sudo ;)
__________________
Live Free... Share Free...
Reply With Quote
  #7  
Old 31st May 2021, 02:48
MicroMonkey's Avatar
MicroMonkey MicroMonkey is offline
Senior Member
 
Join Date: Jun 2016
P2P
Posts: 52
Default
You have to execute that command as admin, hence the SUDO. I hope this helps :)

sudo chown -R www-data:www-data /var/www/html

This changes the ownership of the whole html folder to the apache group. You would have to switch ownership again if you wanted to overwrite files through FTP since you would no longer be the owner, but you can google how to add a user if it matters to you. I like it because it keep me from accidentally overwriting any files when I get drunk lol

You can do this to change back
sudo chown -R $USER:www-data /var/www/html
__________________
More torrenttrader stuff at https://torrenttrader.uk
Reply With Quote
  #8  
Old 31st May 2021, 09:21
Extremlym's Avatar
Extremlym Extremlym is offline
Senior Member
 
Join Date: Oct 2012
P2P
Posts: 102
Default
Quote:
Originally Posted by MicroMonkey View Post
You have to execute that command as admin, hence the SUDO. I hope this helps :)

sudo chown -R www-data:www-data /var/www/html

This changes the ownership of the whole html folder to the apache group. You would have to switch ownership again if you wanted to overwrite files through FTP since you would no longer be the owner, but you can google how to add a user if it matters to you. I like it because it keep me from accidentally overwriting any files when I get drunk lol

You can do this to change back
sudo chown -R $USER:www-data /var/www/html



YES using sudo ! still nothing


new account members the same

torrent-edit / torrent-upload / forum the same ... not writing in phpmyadmin

ALL PRIVILEGES given to mysql USER ACCOUNT ! var/www/html 777 Uploads 777 backend 777 . can be something from php.ini apache .. out of solutions !!
Reply With Quote
  #9  
Old 31st May 2021, 10:42
M-jay M-jay is offline
VIP
 
Join Date: May 2018
Posts: 19
Default
Quote:
torrent-edit / torrent-upload / forum the same ... not writing in phpmyadmin
Have you tried making new database and user after moving vps, might be worth exporting your database. See if importing to fresh db and user makes any difference.
Reply With Quote
  #10  
Old 31st May 2021, 15:55
Extremlym's Avatar
Extremlym Extremlym is offline
Senior Member
 
Join Date: Oct 2012
P2P
Posts: 102
Default
FINALY



SQL ADD INDEX ID

Bump: "ALTER TABLE `torrents` ADD INDEX(`id`);"
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 11:16. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.