Ok so recently my server had a malfunction so to not wast time i started backing everything up and setting it up on a new server i just built. My issue is that when starting the seahub server it all goes well says its running but going to the host address x.x.x.x:8002 i get an “Internal Server Error”
Could someone tell me how i can resolve this i looked through the logs but can’t see any errors. My server is in the same structure the “Server” and the “seafile-data” files are on the same drive together so i could easily switch it to a new machine if needed. But now it is not wanting to startup correctly.
This is to give an idea as to how to server files are setup. They are all on the same drive as i stated above. Also to reiterate the server did work perfectly fine but my old server machine had malfunctions that resulted me to moving to a new machine. The IP to said machine is a STATIC IP and i did take the old ip and set it to the new machine.
seahub-data << null i am not using this location to store the data
I am running the PI version of Seahub and the database information is not stored using MYSQL or anything i used the option during setup of the Seahub server to store the data in the .db file.
Again the other server A is no longer working the drive used for the server is still intact and in Server B at this time. All data is still in it’s original structure the only difference is that the hard drive running the server is in a new machine
on the mounting i haven’t setup the fstab automount but i did go ahead and manually mount it to it original location.
When setting up the server in raspberry (Like a new one) it asks to use a current database or make a new one i thought about selecting that but i am afraid it will wipe something important. I’m in the process of making an entire backup of the hard drive in hopes it will fix it.
I think that in new versions (maybe since 7.0, not sure) the default is to bind only to the localhost address (127.0.0.1). It expects you to run nginx or apache or something as a proxy in front of it on the same machine so it only listens to localhost. I had to change that for my setup since my reverse proxy is on a separate VM.
See that’s the thing locally it dosent work. Like boot my pi up then open the browser and try to connect I get the same error. I’ve checked all the logs but I have no issues within them. Also i run it using apache.
At this point i can tell there is an issue so finally for the first time i remove my static ip setup believing this to be my main cause to the issue. Now this did fix each local address from saying “unkown” but now all of my address said this. http://22.214.171.124/img/20190709_021503.jpg
Now i did change my servers address in conf/ccnet.conf to match the ip set by my router but as of right now it still says the exact same thing. “Internal Server Error” I believe this is something to do with the new update to raspians OS but i really would like to get this to work.
My issue resides in the fact im running raspbian buster and the docker for seafile apparently dosent work with the new version of raspbian ill post updates on if there is a fix.
Went back to the very last update of raspbian stretch and did a clean install of it. Installed all the necessities for seafile server and started my old server up without any extra changes and it all startup up perfectly. Now everything is running just as it did. I learned that the seafile server for rasp is not correctly working with raspbian Buster at the moment hopefully in a newer update it will work correctly. Also at the time of posting this topic i was unaware i had installed RaspBuster since i was also unaware they had released it for the PI4 at the time.
One other thing, just FYI. The names you saw in netstat like “unknownb827eb8308” and “raspberrypi.attlo” don’t matter much. The connection stuff that netstat is showing you really only cares about IP addresses. But netstat thinks that names will mean more to the user than IPs, so it does a reverse DNS lookup of the IP to get the name to show you (unless you add -n to tell it to stick to just the numbers). It only shows the IP if that reverse lookup doesn’t give a name at all. When your pi gets an IP by DHCP it gives its hostname as part of the request, so your router has a name to go with it. When you set an address statically it doesn’t have that. So the name netstat shows shouldn’t change anything for seafile.