Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1and1 FTP is unreliable #164

Closed
chuckwagoncomputing opened this issue Sep 27, 2021 · 18 comments
Closed

1and1 FTP is unreliable #164

chuckwagoncomputing opened this issue Sep 27, 2021 · 18 comments

Comments

@chuckwagoncomputing
Copy link
Member

We keep getting errors like this, which leaves things broken.

connect failed: Connection refused.
connect failed: Connection refused.
connect failed: Connection refused.
Falling back to PORT instead of PASV mode.
pinouts/proteus/white35.jpg:    Lost data connection to remote host after 32768 bytes had been sent: Broken pipe.
@rusefillc
Copy link
Contributor

We now have https://rusefi.com/docs/pinouts-backup/ one time manual backup

in my opinion we need to push pinout pages into git. those are kind of same thing-ish as .ini files?

also it would be a dream to have a .pdf generated automatically

@rusefillc
Copy link
Contributor

@rusefillc rusefillc changed the title FTP is unreliable 1and1 FTP is unreliable Oct 14, 2021
@rusefi rusefi deleted a comment from blundar Oct 14, 2021
@rusefillc
Copy link
Contributor

Root cause: 1and1 does not provide us with a reliable FTP which is not horrible by itself. what's horrible is the fact that 1and1 is unreliable specifically in a way where we kill old version of the page while do not create new one

for pinouts and build artifacts I suggest we move to github pages

#170

@chuckwagoncomputing
Copy link
Member Author

I'm worried about git drama with multiple workflows trying to push to GH Pages. I'm too tired right now to actually think it through though.

Another part of this problem is that we are transferring many files, multiplying the chances for failure. If 1and1 had ssh access we could solve that particular issue.

@rusefillc
Copy link
Contributor

Well technically 1and1 has ssh - primary account is ssh-enabled

@chuckwagoncomputing
Copy link
Member Author

OK, so using the primary account would mean putting the authentication details or a private key in GH Secrets. Preferably a private key used only for this.

@chuckwagoncomputing
Copy link
Member Author

chuckwagoncomputing commented Oct 14, 2021

Preferably a private key used only for this.

This is so it can be deleted to remove access in case it gets out.
And you can keep your own password or key and change it as you please, without having to update Github.

@chuckwagoncomputing
Copy link
Member Author

Are you ready to switch to SSH?
If so, I need the path the files need to go to; e.g. /var/www/docs

@rusefillc
Copy link
Contributor

huh? why would anything change with paths?

in rusefi/rusefi@471a2ef it seemed like we only replace the command while all paths stay the same?

@chuckwagoncomputing
Copy link
Member Author

I'm not sure how you've had FTP set up, but typically FTP is scoped to a specific directory, and the rest of the file system is inaccessible. With SSH, if you don't cd somewhere, files will by go in the home directory. Have you confirmed that the files were indeed updated on the server?

@rusefillc
Copy link
Contributor

I cannot explain it but yes looks like files are updating

image

@chuckwagoncomputing
Copy link
Member Author

That just shows that the file has been successfully uploaded. That does not mean that it has been uploaded to the correct path. What is the HTTP URL this is hosted at?

@rusefillc
Copy link
Contributor

@rusefillc
Copy link
Contributor

@chuckwagoncomputing
Copy link
Member Author

Oh yes, I was being dumb and didn't see that file. It does look like it's working properly, which means files are just in the home directory. That question being cleared up, I can get to work on switching to SSH. Thanks.

@rusefillc
Copy link
Contributor

broken again :( https://rusefi.com/docs/pinouts/proteus/

@rusefillc
Copy link
Contributor

image

@rusefillc
Copy link
Contributor

Switching from FTP to SFTP has resolved this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants