Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Fri Feb 27, 2015 3:38 am 
Offline
Newbie
User avatar

Joined: Sun Feb 15, 2015 1:45 am
Posts: 4
I tried to downsize my server about 4 hours ago and something must have gone wrong during the process as until now the machine is not accessible via the web.

I've had back and forth conversations with support but they're saying it's nothing to do with them.

They're hinting that it's some kind of issue with iptables-restore but i've no idea about that. All I know is I didn't do anything other than shrink the disk, check a checkbox and push a button... just like I was supposed to do.

If anybody has any advice or input that will help me get the machine back online I would really appreciate it. I'm happy to pay a knowledgable person with experience to remedy the situation.

Thanks for your time.

Steve

PS: I've ran a few commands at the request of support and here's the output. It may give a clue as to what the issue is and how I might fix it.

iptables-restore v1.4.21: host/network `longview.linode.com' not found
Error occurred at line: 23
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
run-parts: /etc/network/if-pre-up.d/firewall exited with return code 2
ifup: pre-up script failed.

And also...

[45765.915828] systemd-logind[3741]: Failed to start unit user@0.service: Unknown unit: user@0.service
[45765.915842] systemd-logind[3741]: Failed to start user service: Unknown unit: user@0.service


Top
   
PostPosted: Fri Feb 27, 2015 4:00 am 
Offline
Senior Newbie

Joined: Fri Oct 19, 2012 8:35 pm
Posts: 15
Quick guess: you need to edit the saved iptables file (not sure where it is since I use only Slackware) and remove the reference to longview.linode.com at its line 23 (and any other references to hosts by name)
or add:
Code:
96.126.119.66 longview.linode.com

to your /etc/hosts files
then reboot


Top
   
PostPosted: Fri Feb 27, 2015 4:13 am 
Offline
Newbie
User avatar

Joined: Sun Feb 15, 2015 1:45 am
Posts: 4
Thanks for the response. I tried adding the line to hosts file but no luck. I don't know how to edit the iptables either and haven't found much via the net.

Thanks

Steve


Top
   
PostPosted: Fri Feb 27, 2015 12:35 pm 
Offline
Senior Member

Joined: Fri Feb 13, 2015 8:12 pm
Posts: 101
Some hints:

* You can't shrink a disk without shrinking the filesystem first, so what exactly did you do to "shrink a disk"?

* If you have a shell and the web service does not work, the logical next step is to look at /var/log/apache2 to see what's wrong with your Apache server (if that's what you are using as your http daemon).

* If you are using systemd, "systemctl" will tell you what didn't work at boot time, in bright red.


Top
   
PostPosted: Fri Feb 27, 2015 12:43 pm 
Offline
Senior Member

Joined: Fri Feb 13, 2015 8:12 pm
Posts: 101
More hints:

* Can you access your own web from the machine itself? Try "lynx http://mysite.example.com" from the command line.

* Does web service work after disabling all firewall rules with "iptables -F" command? (If it does, your firewall rules might be the problem indeed, if it does not, you seem to have bigger problems then).


Top
   
PostPosted: Fri Feb 27, 2015 5:23 pm 
Offline
Newbie
User avatar

Joined: Sun Feb 15, 2015 1:45 am
Posts: 4
I tried disabling/flushing ip tables but it didn't work.

In the end i hired somebody to fix it and it turns out it was a pretty simple fix.

Something definitely went wrong with the downsize and it WAS connected to linode.com

/etc/iptables.firewall.rules

# Allow incoming Longview connections
#-A INPUT -s longview.linode.com -j ACCEPT
# Allow metrics to be provided Longview
#-A OUTPUT -d longview.linode.com -j ACCEPT
# Drop all other inbound - default deny unless explicitly allowed policy
#-A INPUT -j DROP
#-A FORWARD -j DROP

Commenting out the rules relating to linode.com fixed the issue. I probably could have figured it out myself but I was getting too frustrated withe support and their lack of interest.

Anyway it's fixed now and if somebody else has the same issue they'll know the fix and won't have to put up with 4-5hrs of support trying to shirk responsibility. I've disabled longview andWON'T bother reenabling it again.

Thanks all for your help.

Steve


Top
   
PostPosted: Tue Mar 10, 2015 12:42 am 
Offline
Newbie

Joined: Mon Mar 09, 2015 2:13 am
Posts: 2
Website: http://www.fixithere.net/bt-customer-service/
Something definitely went wrong with the downsize and it WAS connected to linode.com

/etc/iptables.firewall.rules

# Allow incoming Longview connections
#-A INPUT -s longview.linode.com -j ACCEPT
# Allow metrics to be provided Longview
#-A OUTPUT -d longview.linode.com -j ACCEPT
# Drop all other inbound - default deny unless explicitly allowed policy
#-A INPUT -j DROP
#-A FORWARD -j DROP


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group