忍者ブログ

ひつ(じのひよこが)プログラミングします。
お仕事や趣味で困ったこととか、何度も「あれ?どうだったかしら」と調べたりしたこととか、作ったものとか、こどものこととかを書きます
★前は週末定期更新でしたが今は不定期更新です

2024/05    04« 1  2  3  4  5  6  7  8  9  10  11  12  13  14  15  16  17  18  19  20  21  22  23  24  25  26  27  28  29  30  31  »06

ゆとシートの管理をするときは data と config.cgi をアップロードから除外しよう

ゆとシート2をバージョンアップし、キャラシを修正して保存したら以下のエラーメッセージが出てきた。

Software error:

Cannot decode string with wide characters at /usr/local/perl/5.14/lib/perl5/5.14/mach/Encode.pm line 174.

For help, please send mail to the webmaster ([no address given]), giving this error message and the time and date of the error.

Software error:

[Tue Jun  6 20:47:55 2021] index.cgi: Cannot decode string with wide characters at /usr/local/perl/5.14/lib/perl5/5.14/mach/Encode.pm line 174.
Compilation failed in require at ../_core/lib/junction.pl line 14.

For help, please send mail to the webmaster ([no address given]), giving this error message and the time and date of the error.

Software error:

[Tue Jun  6 20:47:55 2021] index.cgi: [Tue Jun  6 20:47:55 2021] index.cgi: Cannot decode string with wide characters at /usr/local/perl/5.14/lib/perl5/5.14/mach/Encode.pm line 174.
[Tue Jun  6 20:47:55 2021] index.cgi: Compilation failed in require at ../_core/lib/junction.pl line 14.
Compilation failed in require at index.cgi line 26.

For help, please send mail to the webmaster ([no address given]), giving this error message and the time and date of the error.

色々と調べたところ、_core直下のファイルについてはもれなく更新していたのだが、他のディレクトリのファイルが更新できておらず、この時点での最終コミットに含まれていた変更(いずれも _core 以下ではない)を反映しそこねていたことが原因であった。恥ずかしい話である。

同じ轍を踏まないためには _core 以下しか変更されないという謎先入観を覗かないといけないのもだが、一部のファイルだけ選んで更新するという挙動が更新漏れを招いていると考えた。だが、ファイルをガツッと全部アップロードするのは無理だ。*/data/*config.cgiをアップロードしたくないからである。

だが、WinSCP には Masks という機能で特定のディレクトリ・ファイルだけアップロードしない、という機能がある。これを利用すれば雑にアップロードしても */data/* を除外してアップロードが可能である。


WinSCP の Masks の機能のガイドは https://winscp.net/eng/docs/file_mask から読める。私は以下のように設定し、先の問題を回避しようとしている。
含めないディレクトリに */data を、含めないファイルに config.cgi をぶちこむ

PR

コメント

ただいまコメントを受けつけておりません。

ブログ内検索

P R