What had happened was I successfully signed the transaction through my ledger and following the steps I submitted the code: goal clerk rawsend -f online.sig.
The transaction was pending for awhile so I believed I canceled it by typing in ^c. I attempted then to resign and resubmit the transaction and I am now getting that error.
edit: after some time the error changed into this:
Warning: Couldn’t broadcast tx with algod: HTTP 400 Bad Request: TransactionPool.Remember: txn dead: round 20367885 outside of 20366835–20367835
Encountered errors in sending 1 transactions:
WRWTASUPFULFZG2QIZWF2KHJ7OP3SGBHLCJDTHHKSIZHLZZ6IAGQ: HTTP 400 Bad Request: TransactionPool.Remember: txn dead: round 20367885 outside of 20366835–20367835
Cannot write file online.sig.rej: open online.sig.rej: file exists
is because your first valid round was not set properly.
Either your node is not caught up or you take more than one hour between generation and signing/sending.