isohuntto / openbay Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
Seems these were missed so SEO URLs were not working. Add this to your location / { }:
#rewrite rules
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php;
}
Getting the following CException when navigating to the domain:
CAssetManager.basePath "/app/src/www/assets" is invalid. Please make sure the directory exists and is writable by the Web server process.
I cannot actually find a directory named assets
under www.
Resolved: See this
I run my own hosting with apache/mysql/php, all latest, and am having issues setting openbay up, the wiki included is far from helpful, is there anyone out there that has a better wiki, to setting up openbay?
Thanks. P.S is it that i am trying to set it up as a v-host?
Does anyone know if Isohunt's remote Sphinx search is working as of current? I've got everything but the search working.
I get this warning when trying to install
PHP warning
file_get_contents(http://openbay.isohunt.to/config.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
/home/raider/protected/installer/controllers/DefaultController.php(51)
39 if (!isset($settings['sphinxOurConfig']))
40 {
41 $dbParameters = array('sphinxHost', 'sphinxPort');
42 foreach($dbParameters as $dbParameter)
43 {
44 if (!isset($settings[$dbParameter]) || !$settings[$dbParameter])
45 $errors[$dbParameter] = true;
46 }
47 }
48
49 if (count($errors) === 0) {
50 // Receive default remote settings
51 $defaultComponents = json_decode(file_get_contents("http://openbay.isohunt.to/config.json"), true);
52 $defaultComponents = $defaultComponents['components'];
53
54 // Build params
55 $params = array(
56 'applicationName' => CHtml::encode($settings['name']),
57 'db' => array(
58 'connectionString' =>
59 'mysql:host=' . (isset($settings['dbOurConfig']) ? $defaultComponents['db']['host'] : $settings['dbHost']) .
60 ';port=' . (isset($settings['dbOurConfig']) ? $defaultComponents['db']['port'] : $settings['dbPort']) .
61 ';dbname=' . (isset($settings['dbOurConfig']) ? $defaultComponents['db']['name'] : $settings['dbName']),
62 'username' => isset($settings['dbOurConfig']) ? $defaultComponents['db']['user'] : $settings['dbUser'],
63 'password' => isset($settings['dbOurConfig']) ? $defaultComponents['db']['password'] : $settings['dbPassword']
Stack Trace
#0
– /home/raider/protected/installer/controllers/DefaultController.php(51): file_get_contents("http://openbay.isohunt.to/config.json")
46 }
47 }
48
49 if (count($errors) === 0) {
50 // Receive default remote settings
51 $defaultComponents = json_decode(file_get_contents("http://openbay.isohunt.to/config.json"), true);
52 $defaultComponents = $defaultComponents['components'];
53
54 // Build params
55 $params = array(
56 'applicationName' => CHtml::encode($settings['name']),
#1
Don't get me wrong. I love and support The Pirate Bay... but... would it be possible to rename this project to something other than "openbay"?
I've poured the last two years of my life into my startup https://www.openbay.com which now has grown to 15 full time employees to whom I'm responsible.
I agree it's a great name, which is why we chose it over two years ago for our business. It's how our auto mechanics and customers have identified us for years.
SEO and brand recognition is an important part of our business and, as you could imagine, my inbox was flooded this morning with mentions of "openbay" that were not related to the business we've been growing. Quite disheartening, it was a rough morning :'(
I know this is a long shot... but please give it some consideration.
Thanks,
Adam Bair
CTO of Openbay
for some reason i need to use cdnjs so i dig the script code in configuration.php and change it(google's api cdn) to
//cdnjs.cloudflare.com/ajax/libs/jquery/1.8.3/jquery.min.js
but it won't work after i restart the server.
why and how to fix?(should i reinstall it i guess? Any other way?)
No matter what I do, I always get a blank page while trying to run the PHP scripts from Openbay.
I tried running installer.php, but still, nothing.
I've uploaded all the files.
What's wrong?
I want to put openbay at "mydomain.com/openbay"...
So I've to put all the contents from the "www" folder to "mydomain.com/openbay"...
So that my site will load from index.php ("mydomain.com/openbay/index.php")...
In which directory I've to put the contents of the folders "conf" and "protected"?
And do I have to edit "index.php" and "installer.php"?
As I never uploaded a php site before, please advice...
After enabling the debug flag and navigating to the browse page this error is reported.
Array to string conversion
/protected/models/LTorrent.php(423)
411 ->option('ranker', 'SPH04')
412 ->search('@tags "' . $obj->halfEscapeMatch($tag) . '"')
413 ->where('torrent_status', LTorrent::TORRENT_STATUS_GOOD)
414 ->order('weight()', 'DESC')
415 ->order('id', 'DESC')
416 ->limit($count);
417
418 $torrentsIds = array_merge($torrentsIds, Yii::app()->sphinx->cache(600)->createCommand($obj->build())->queryColumn());
419 }
420 Yii::app()->cache->set($key, $torrentsIds);
421 }
422 } catch (Exception $e) {
423 Yii::log('getLastTorrentIdsByCategories failed. Exception: ' . $e->getMessage() . PHP_EOL . 'Trace: ' . $e->getTrace(), CLogger::LEVEL_ERROR);
424
425 if (YII_DEBUG) {
426 throw $e;
427 }
428 }
429
430 return $torrentsIds;
431 }
Hi there,
This is no issue, but I saw, that there are multiple issues with the installation and instead of posting the same to every thread, I opened a new for it. Maybe my guide will fix some problems!
My guide is in German this far, but an English translation will be published tomorrow! I'll link it when it's online. Until then, pls use a translator, it should work ok.
You can find my guide here: https://www.bitforce.io/hacking/howto-openbay-auf-debian-ubuntu-mit-nginx-1-6-2-aufsetzen/
Hope it'll help some of you.
Cheers
Does anyone happen to have a list that includes all the set categories? Trying to sort torrents into their proper categories and no matter what number I put in (1 - 23 so far) nothing switches from other
I got blank page after finishing installation.
I looked into /var/log/apache2/error.log and found this:
PHP Parse error: syntax error, unexpected ''torrents'' (T_CONSTANT_ENCAPSED_STRING), expecting ')' in /var/tracker/src/protected/controllers/MainController.php on line 187
I don't think this has anything to do with software I'm using but I will post it if needed.
I know that this will seem like a horrific prospect to the Internet Marxists out there, but the fact of the matter is, having thousands of Pirate Bay clone sites up on the Internet will only make it harder for developers of proprietary software to make money legitimately, because sites like the Pirate Bay allow people to effectively steal software from people. This hurts everyone, not just proprietary software developers. Before, the owners of Pirate Bay were known, but now it's a game of whack-a-mole for those on the receiving end of the effects of illegal torrenting.
For those who are vehemently opposed to this idea, consider this: no one has the right to promote their particular ideology of software development or distribution of copyrighted materials in general by harming those, or allowing others to harm those, who practice distribution philosophies they don't agree with.
OpenBay should have an easy way to allow users to configure it to show a prompt or other acknowledgement telling users to avoid pirating software. This could be opt-out (or opt-in) during initial setup and be configurable thereafter.
I'm wearing my flame-retardant suit. So, I bravely ask this question: _what do you all think of this idea?_
FYI: This is a legitimate feature request, so it's not "ridiculous". Therefore, I hope you won't just close it like #1.
i am getting this error
PHP warning
file_get_contents(http://isohunt.to/openbay/config.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
any ideas
I can't seem to be able to install the script at all.
I install it and the page is blank
with the following text:
"MyPirateBay
Created with love and passion to change the world for the best, by isohunt.to
Currently v1.0.0
search this website"
that's it its a white page, no installer no nothing.
also the title shows this: "pageTitle); ?>"
My PHP Version: 5.3.3 (cgi-fcgi)
oh yeah I am running CentOS 6.5 I believe.
Since it's HUGE, it would be nice to have a command to import the dump, with the correct patterns.
Probably me being a bit overkill but it'd be dope if something like Ansible playbooks or Chef cookbooks were provided to make it even easier to spin up in a virtual machine.
NOTE: I am debating to work on this, just wanted to get feedback + get it on the radar.
It would be awesome to have a dockerfile so this could be installed quickly and reliable in a container. Any thoughts on this? I'd be willing to put in the effort as long as no one sees any glaring issues.
Hi, a lot of Hosts doesn't have the Sphinx Engine.
Can you change to other Engine?
Sorry for my English, and Thank you.
You're using $_SERVER['HTTP_
to get user IP. HTTP_
values are from HTTP headers. That means anyone is able to pass any IP via header and the application will accept it.
I am not a skilled person but trying to deploying it on xampp for now. Can anyone help me with that? Please!
Hello everyone, I have CentOS 6 VPS and I installed OpenBay using remote database. Since i got a lot of troubles with that database i decided to run my own database, but problem is I'm unable to set it up. So, can someone give me complete tutorial/instructions how to install sphinx and configure database.
Thank You.
for some reason search and browse do not work for me but recent does
bellow is the error i get for a search
CDbException
CDbConnection failed to open the DB connection: SQLSTATE[HY000] [1045] Access denied for user ''@'localhost' (using password: NO)
/home/raider/protected/models/LSphinxDataProvider.php(174)
162 }
163 return $keys;
164 }
165
166 protected function calculateTotalItemCount()
167 {
168 $q = clone $this->query;
169
170 $q->setCountFieldOnly();
171 $sql = $q->build();
172 $total = 0;
173 try {
174 $recordsCount = Yii::app()->sphinx->cache($this->cacheTime)->createCommand($sql)->queryAll();
175 if (isset($recordsCount[0])) {
176 $total = $recordsCount[0]['count(*)'];
177 }
178 } catch (Exception $e) {
179 Yii::log('LSphinxDataProvider exception' . PHP_EOL . 'Message: ' . $e->getMessage() . 'Trace: ' . $e->getTraceAsString(), CLogger::LEVEL_ERROR);
180
181 if (YII_DEBUG) {
182 throw $e;
183 }
184 }
185
186 return $total > 9975 ? 9975 : $total;
Stack Trace
#0
This is an insult to content-creators worldwide.
PHP Parse error: syntax error, unexpected ''torrents'' (T_CONSTANT_ENCAPSED_STRING), expecting ')' in /protected/controllers/MainController.php on line 187
The code i got there is:
$this->render('list', array(i
'torrents' => $torrents,
'search' => $searchModel->words,
'categoryTag' => $iht,
'categoriesTags' => LCategory::$categoriesTags,
'totalFound' => $totalCount,
));
Maybe this project can be made even more distributed and anonymous by using the git torrent protocol. However i do not know how far the gitTorrent project is developed and how stable it is.
http://advogato.org/article/994.html
It probably needs some extra work. But it might be a good backup when this repository gets banned from github.
Is there a way to force a database update to get the latest updates?
The caching is getting annoying. I've tried to disable it from nginx's config but it seems that YII still uses a caching system. How can i disable it?
Hi! I just install openpay, it work, but I see that all the link and ref to css, js are point to root directory. Can you please support sub-directory. Thanks a lot
Hello
Tried to install to a subdir like http:/www.domain.com/openbay
I ended up with http://www.domain.com/openbay/src/www/ etc.
I configured all but htaccess mess somewhere because à the finish button step, I ended up to another directory of www.domain.com !
Do I need to upload and uncompress the whole master.zip structure ?
vendor
and its contents are generated by running composer install
. There's no need to include that folder in the repository.
Hi,
Installation information:
Fresh openbay installation, and it is using the default isohunt database remotely.
More than often, I get a "failed to open stream" stream error when clicking on a torrent file in the search list. The application is fetching the torrent information from torcache.net to display the torrent info (download links + description...), however, it is not always loading properly, and it is very buggy/slow. Is it possible that my hosting sucks? Or maybe torchache is facing some issues? Find the stack trace below:
2014/12/22 07:55:19 [error] [php] get_headers(http://torcache.net/torrent/07DE1E29DE07CE4C7434077E64E0BF48765214C8.torrent): failed to open stream: Connection timed out (/var/www/html/openbay/src/protected/models/LTorrent.php:226)
Stack trace:
#0 /var/www/html/openbay/src/protected/vendor/yiisoft/yii/framework/yiilite.php(3419): require()
#1 /var/www/html/openbay/src/protected/vendor/yiisoft/yii/framework/yiilite.php(3398): MainController->renderInternal()
#2 /var/www/html/openbay/src/protected/vendor/yiisoft/yii/framework/yiilite.php(3822): MainController->renderFile()
#3 /var/www/html/openbay/src/protected/vendor/yiisoft/yii/framework/yiilite.php(3790): MainController->renderPartial()
#4 /var/www/html/openbay/src/protected/controllers/MainController.php(65): MainController->render()
#5 unknown(0): MainController->actionTorrent()
#6 /var/www/html/openbay/src/protected/vendor/yiisoft/yii/framework/yiilite.php(4039): ReflectionMethod->invokeArgs()
#7 /var/www/html/openbay/src/protected/vendor/yiisoft/yii/framework/yiilite.php(4056): CInlineAction->runWithParamsInternal()
#8 /var/www/html/openbay/src/protected/vendor/yiisoft/yii/framework/yiilite.php(3570): CInlineAction->runWithParams()
#9 /var/www/html/openbay/src/protected/vendor/yiisoft/yii/framework/yiilite.php(3555): MainController->runAction()
#10 /var/www/html/openbay/src/protected/vendor/yiisoft/yii/framework/yiilite.php(3545): MainController->runActionWithFilters()
#11 /var/www/html/openbay/src/protected/vendor/yiisoft/yii/framework/yiilite.php(1746): MainController->run()
#12 /var/www/html/openbay/src/protected/vendor/yiisoft/yii/framework/yiilite.php(1666): CWebApplication->runController()
#13 /var/www/html/openbay/src/protected/vendor/yiisoft/yii/framework/yiilite.php(1191): CWebApplication->processRequest()
#14 /var/www/html/openbay/src/www/index.php(16): CWebApplication->run()
Another issue is downloaded torrents don't have any trackers. When downloading the torrents they are very slow compared to other torrent download sources. Is there a way to add trackers to the torrents?
After uploading all the files successfully i got this error;
Internal Server Error
include(Controller.php): failed to open stream: No such file or directory
An internal error occurred while the Web server was processing your request. Please contact the webmaster to report this problem.
Thank you.
but if i put /src/www/index.php at the end of my URL it works. What am i doing wrong?
Hello, I was hoping to get someone to help me with Lighttpd support for open bay. I have it running from my phone using this app except I couldn't get it to work properly. I noticed you guys have support for most of the other major http servers, just hoping you can add support for this one :D
i need help : http://i.imgur.com/R4ofuam.jpg
Just installed it with the nginx example config, when I load it up I get "Error establishing a database connection" does this mean I can't connect to the isohunt database or a local one?
OS: Ubuntu Server 14.04
Are you required to have root access or can this be installed on a normal VPS without root access?
If so, does anybody know of any server companies that I can get onto for free to be able to use this or am I dreaming?
If I understand things correctly, the torrent data TPB stored was: a list of torrent names, their metadata, their magnet links. Could we wrap this up in a torrent periodically and ask the users to volunteer to help back it up by seeding the torrent? If images are not included in the metadata this would never be a very large file.
Just saying. Not sure if anyone is looking into this or if we're just supposed to use Sphinx instead but it appears to be broken OOTB.
Fixed here: #40
On install, using MAMP
rename(/Applications/MAMP/protected/installer/controllers/../../../www/installer.php,/Applications/MAMP/protected/installer/controllers/../../../www/installer-disabled.php): No such file or directory
i have a Samsung s3thatwasrted. factory reset and i do not have theabilitytogo online play store and amazon and Netflix works but i can't just go online i took notes that say gitworksfor replacing DNS NAME to ip address for github Gits install mono stack andF# can anyone help
There is quite a lot of work to be done with this for it to be a standalone. There's no user features.
i.e.
user registration/login/management,
no administration features
i.e. torrent management, user management, backup, edit etc...
In essence, this is just a forward facing page, with isohunt's torrents. or more simply put, this is a lot of code, just to replace an iframe
I have been playing with the idea of P2P thick clients that serve a user locally from their machine but syncs it data with other users through a database gossip network. I was planning to use this concept in an upcoming social network I'm building but it occurred to me after piratebay went down that this could be used for searching and tracking torrents and create a "private bay" where the users host the network. I may fork the code and convert it into a single page application and try this concept out. Thoughts?
It would be cool if we could develop a system to decentralize the storage of magnet links (like Twister).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.