The error is pg_restore: [archiver] input file does not appear to be a valid archive
Could you show us the "pg_dump" that you used to create the file which pg_restore is failing upon. Please note from the "man" page: pg_restore is a utility for restoring a PostgreSQL database from an archive created by pg_dump(1) in one of the non-plain-text formats.
If you simply do a "pg_dump" with no operands, this creates a "plain text" format dump. As an example, on my system, the first few lines dumped by pg_dump look like: