<p>Check your webserver functions from the top down.  You can do this from any WEB browser, even one that is on the webserver system itself.  For example, does this link function:
  <a href="http://webserver-id/" rel="nofollow noreferrer">http://webserver-id/</a>
and provide you with a home page for that WEB service ?  If not, then there
is not apache WEB server on that system, or is mis-configured.</p>

<p>Next, depending upon how that Apache is configured, try this URL
  <a href="http://webserver-id/~username/" rel="nofollow noreferrer">http://webserver-id/~username/</a>
which would be a normal way to get to user directories via Apache.
This would actually be looking for a special directory in your HOME
directory, perhaps something like $HOME/public_html/
You would need to place something in public_html/ to access, for example
a tiny WEB page:</p>

<pre><code>&lt;html&gt;&lt;head&gt;&lt;title&gt;my home directory&lt;/title&gt;&lt;/head&gt;
&lt;body&gt;&lt;h1&gt;hello world&lt;/h1&gt;&lt;/body&gt;&lt;/html&gt;
</code></pre>

<p>If that works, then you need to place your hub files in this
public_html/ directory.</p>

CC BY-SA 4.0
2018-11-08T17:27:01.387Z
2018-11-08T17:27:01.387Z
Null Model
<p>I am trying to build a UCSC track hub (a private one). </p>

<p>I have all my hub files on a university server in a simple folder called /hub. I am using Ubuntu 16.04 and the server is also Ubuntu (16.04.3 LTS (GNU/Linux 4.4.0-98-generic x86_64).</p>

<p>I have tried using hubCheck and also simply upload the hub as instructed in the <a href="https://genome.ucsc.edu/cgi-bin/hgHubConnect?hubId=342899&amp;hgHub_do_disconnect=on&amp;hgHubConnect.remakeTrackHub=on&amp;hgsid=688716027_AHrlcnB4n0FPcPWd8hOPjTqvyPkR" rel="nofollow noreferrer">UCSC instructions</a>.</p>

<p>The URL I have used to indicate the location of my hub is:</p>

<pre><code>http://pcxxx.xx.xx.ac.uk/home/username/projects/project-name/hub/hub.txt
</code></pre>

<p>However, in both cases, I get the following error:</p>

<pre><code>Couldn't open http://webserver-id/home/username/projects/project-name/hub/hub.txt
TCP non-blocking connect() to webserver timed-out in select() after 10000    milliseconds - Cancelling!
</code></pre>

<p>I am not very knowledgeable in servers and protocols (http, ftp etc). But am I right to think that this error means that my hub is somehow not internet accessible? I'm struggling to understand what this error means. When I log onto the server, I automatically arrive in my home folder: <code>/home/username</code>. My hub is in <code>/projects/project-name/hub</code>. </p>

<p>Is there a way I can check if my folder location is indeed internet accessible?</p>

CC BY-SA 4.0
2018-09-04T14:05:26.957Z
Please [edit] your question and explain how you've set up your server in more detail. What operating system are you using? What server software? When do you get this error? What instructions did you follow (your link doesn't show any instructions; tell us what you did). The more details you give us, the likelier it is we'll be able to help you.
terdon
CC BY-SA 4.0
2018-09-04T14:09:43.497Z
Apologies. I have just added more details.
mf94
CC BY-SA 4.0
2018-09-04T14:16:24.317Z
Thanks, now we know the operating system, but the other questions are also relevant. Please edit and clarify. Also tell us whether you actually use `http://webserver-id/home/username/projects/project-name/hub/hub.txt` as the URL. I assume you use an actual URL, right? We need to know what kind of web server you are using (apache?), how you've configured it and all the other things I asked in my previous comment.
terdon
CC BY-SA 4.0
2018-09-04T14:19:37.487Z
So what is `webserver-id`? Are you using the actual string `webserver-id`? not the ID of your web server? If so, you need to take a step back and learn about how to set up a webserver. I suggest you read https://help.ubuntu.com/community/ApacheMySQLPHP or other tutorials (search for LAMP). If I misunderstand, please edit and clarify what works, how you set it up and what should work but doesn't.
terdon
CC BY-SA 4.0
2018-09-04T14:19:41.487Z
Just added the URL I actually used. As I said, I have no real idea if this is how you contruct a URL. As far as I know, the server is using Canonical landscape.
mf94
CC BY-SA 4.0
2018-09-04T14:21:00.430Z
No, I just didn't put the real webserver ID. The webserver is called something like: pcxxx.xx.xx.ac.uk.
mf94
<ucsc>
Finding URL for UCSC data hub
# Finding URL for UCSC data hub

(Asked by: username_0 on 2018-09-04)

I am trying to build a UCSC track hub (a private one). 
I have all my hub files on a university server in a simple folder called /hub. I am using Ubuntu 16.04 and the server is also Ubuntu (16.04.3 LTS (GNU/Linux 4.4.0-98-generic x86_64).
I have tried using hubCheck and also simply upload the hub as instructed in the UCSC instructions.
The URL I have used to indicate the location of my hub is:
http://pcxxx.xx.xx.ac.uk/home/username/projects/project-name/hub/hub.txt

However, in both cases, I get the following error:
Couldn't open http://webserver-id/home/username/projects/project-name/hub/hub.txt
TCP non-blocking connect() to webserver timed-out in select() after 10000    milliseconds - Cancelling!

I am not very knowledgeable in servers and protocols (http, ftp etc). But am I right to think that this error means that my hub is somehow not internet accessible? I'm struggling to understand what this error means. When I log onto the server, I automatically arrive in my home folder: /home/username. My hub is in /projects/project-name/hub. 
Is there a way I can check if my folder location is indeed internet accessible?

**Tags:** ucsc
> **Comments:**
> **username_1**: Please [edit] your question and explain how you've set up your server in more detail. What operating system are you using? What server software? When do you get this error? What instructions did you follow (your link doesn't show any instructions; tell us what you did). The more details you give us, the likelier it is we'll be able to help you.  
> **username_0**: Apologies. I have just added more details.  
> **username_1**: Thanks, now we know the operating system, but the other questions are also relevant. Please edit and clarify. Also tell us whether you actually use `http://webserver-id/home/username/projects/project-name/hub/hub.txt` as the URL. I assume you use an actual URL, right? We need to know what kind of web server you are using (apache?), how you've configured it and all the other things I asked in my previous comment.  
> **username_1**: So what is `webserver-id`? Are you using the actual string `webserver-id`? not the ID of your web server? If so, you need to take a step back and learn about how to set up a webserver. I suggest you read https://help.ubuntu.com/community/ApacheMySQLPHP or other tutorials (search for LAMP). If I misunderstand, please edit and clarify what works, how you set it up and what should work but doesn't.  
> **username_0**: Just added the URL I actually used. As I said, I have no real idea if this is how you contruct a URL. As far as I know, the server is using Canonical landscape.  
> **username_0**: No, I just didn't put the real webserver ID. The webserver is called something like: pcxxx.xx.xx.ac.uk.  

---

## 1 answers

### Answer by username_2 on 2018-11-08. Score: 2 | Accepted answer

Check your webserver functions from the top down.  You can do this from any WEB browser, even one that is on the webserver system itself.  For example, does this link function:
  http://webserver-id/
and provide you with a home page for that WEB service ?  If not, then there
is not apache WEB server on that system, or is mis-configured.
Next, depending upon how that Apache is configured, try this URL
  http://webserver-id/~username/
which would be a normal way to get to user directories via Apache.
This would actually be looking for a special directory in your HOME
directory, perhaps something like $HOME/public_html/
You would need to place something in public_html/ to access, for example
a tiny WEB page:
my home directory
hello world

If that works, then you need to place your hub files in this
public_html/ directory.


---

