settings.cfg not created

Hey all,

 

I have PlexConnect running on my Linux server. It's an Amahi server. I had to stop the DNS server and change the Apache port to get it to work, but it is functioning.

 

I'd like to be able to put the Apache server back on. I was reading about the new advanced options, specifically the last one here:

 

https://github.com/iBaa/PlexConnect/wiki/Settings-for-advanced-use-and-troubleshooting

 

That references a settings.cfg file that will be created the first time PlexConnect is run. But I don't see any settings.cfg file.

 

Any ideas? Will this even do what I want?

 

Thanks!

 

 

Are you running the latest code on the main branch (link is referenced in osx/win install guides)?

Yes, I just downloaded it again and tried again. Everything is working but I don't see the settings.cfg file. I'm assuming it should be in the main folder?

Here's what I'm doing:

-- using my MacBook, download zip file from here: https://github.com/iBaa/PlexConnect/archive/XML_templates.zip

-- unzip and rename folder to PlexConnect

-- drag folder to my server using Finder

-- switching to the server now: open terminal and run:

cd /var/hda/files/Software/PlexConnect

sudo ./PlexConnect.py

Then it runs and everything works fine, but when I navigate to the PlexConnect folder again, I don't see any settings.cfg file. I do see settings.js in the assets folder, settings.xml in the templates folder. But no settings.cfg.

I'm sure I'm doing something wrong. I'm not the most experienced with this stuff, though I do know the basics.

Thanks!

I think you are downloading the wrong files. Try this link:

https://codeload.github.com/iBaa/PlexConnect/zip/XML_templates

Just tried that link and the same thing is happening. Everything runs fine but the settings.cfg file is nowhere to be found.

Do you have the correct permissions on the folder?

I thought I did, but just to be safe I gave it full permissions.

But now when I try to run it, I'm getting the error about port 53. I am guessing that's because PlexConnect is already running. How do I terminate it?

Nevermind, I got it. Duh.

Still not getting the settings.cfg. I ran this command:

sudo chmod -R 777 /var/hda/files/Software/PlexConnect

>> But now when I try to run it, I'm getting the error about port 53. I am guessing that's because PlexConnect is already running. How do I terminate it?

Well, "settings.cfg" is actually created when PlexConnect is doing a nice shutdown... To do so, just hit [Enter] in your terminal while it is running.

Got it.

Long explanation: Once upon a time I had used Greyhole on the server to add another drive to the storage pool. The drive died, I removed it, and went on with my life and forgot about Greyhole. But apparently when I enabled Greyhole back then, it moved all the files to its own directory and replaced them with symlinks in /var/hda/files. When PlexConnect was running, I think it was creating the settings.cfg file under the Greyhole directory, which I wasn't checking cause I had forgotten about it. I did use [Enter] to shut it down, and when I checked /gh/Software/PlexConnect, it was there. So I created a symlink to it in /var/hda/files/Software/PlexConnect and then I was able to get to it.

But now that I have it, I'm not sure I'm doing the right thing with it. I opened it and changed the web server port to 78 and then changed the Amahi's web server port back to 80. The Amahi is running again, and PlexConnect runs, but the Trailers app says trailers are unavailable, try again later. Not sure where to go from here. Can anyone point me to the right guide, etc.?

Thanks for all of the help folks!

aTV requests data on port 80 / http. You can not just change the port...

if you want you need to setup some kind of port forwarding...

Thanks.

I guess I'm in a little over my head. I don't really know how to use the settings.cfg file. I thought I did but what I did didn't work.

When I ran PlexConnect at first, I got the error about port 53 being used. I searched and found out that I needed to turn off the DNS server on the amahi. So I did, then I got the error about port 80 being used. So I searched again and found out how to change the web server port on the amahi (edited /etc/httpd/conf/httpd.conf and changed Listen to port 78). 

That got PlexConnect working, but I lost the configuration page of the amahi. That's why I wanted to use the settings.cfg file -- i thought it would let me change the port of the ATV so I could put the amahi web server port back to 80 and get the config page back. 

But it's apparent now that I don't know what I'm doing.   ;)  I guess I'll have to just research some more and learn how this stuff works. If anyone is willing to give me quick rundown, I'd be all ears.  :D

to access the conf page of your box, you should be able to use :78 now. Port 80 is standard, but as you switched it you have to point your browser into the right direction...

If I do that, it takes me to the Apache test page and not the Amahi setup page.

Apache? Amahi? Are they running on the same machine? Which IP did you use?

It's a server running Fedora with the Amahi Home Server software running:

http://www.amahi.org/

It also has an Apache web server running on it. That seems to be serving up the Amahi dashboard page, where I can log in and control settings, etc.

Here's what it looks like when it's at its original settings (port 80):

https://dl.dropboxusercontent.com/u/2385105/amahi.png

Here's what the same IP is like after I change it to 78:

https://dl.dropboxusercontent.com/u/2385105/blank.png

Here's what it looks like when I change the port to 78 and append to the IP:

https://dl.dropboxusercontent.com/u/2385105/apache.png

blank.png is totally understandable.

If I understand correctly, Apache is used to do the Web communication, serving files from this Amahi thing? My guess is, that you have to change some settings in Apache as well... to make it aware of the fact, that Amahi is now listed on port 78 (rather than 80).

But I am really no IP addr/port expert, even much less for special applications that I haven't heard before :-D

Understood. Thanks.

It turns out that turning off the DNS server on the server was wreaking havoc with my FiOS set-top boxes. I don't even understand how that's possible, but whatever. So I have to leave the DNS server on.

Is there any way to run PlexConnect on my server then? Can anyone give me a quick explanation of what the settings.cfg file is supposed to do? I'd really love to get it up and running while leaving the DNS server on and leaving the web server port on 80, if that's possible.

You disable the PlexConnect DNS server and use your own.

Take a look at the Linux guide linked in the wiki for a starting point.

I did take a look at that guide, and followed the steps. It seemed to help, and PlexConnect seems to be running without errors, but the Trailers app is still showing me trailers, not Plex.

Here is my Settings.cfg (sorry I don't know how to copy paste from the terminal):

settings.png

The 86 address is my Linux server, where PMS and PlexConnect are running.

Here is my vhosts file:

vhosts.png

And lastly, the running PlexConnect. I don't see any errors here, but I'm not sure it's saying what it should be saying:

running.png

Anybody see anything obviously wrong here? Thanks!