解決策
この問題は、Apache がSystemLinkログインのユーザーセッションを追跡するために使用するSQLiteデータベースフォルダのデフォルト (継承)フォルダ権限が変更された場合に発生します。ApacheがSQLiteデータベース ファイルに書き込めない場合、SystemLink ログインを許可できません。これらのフォルダ権限をリセットすると、サーバに正常にログインできるようになります。
- サーバのC:\ProgramData\National Instruments\Web Server\logsフォルダにあるerror.logファイルを確認します。次のようなログが表示された場合、権限が失われたことが確認できます。
[session_dbd:error] [pid 7764:tid 1368] (1)Operation not permitted: [client ::1:50026] AH01859: query execution error inserting session 'a65c3f8a-b8be-794a-9cdd-d6f0b18b2864' in database with 'insertsession': attempt to write a readonly database, referer: http://localhost:9090/[session:error] [pid 7764:tid 1368] (20014)Internal error (specific information not available): [client ::1:50026] AH01822: error while saving the session, session not saved: /niauth/v1/auth, referer: http://localhost:9090/
- 権限をリセットするには、次の手順に従ってください。
1. 管理者として Windows コマンド ライン (cmd) を開きます。
2. icacls コマンドを実行して、Webサーバフォルダーのアクセス許可をリセットします (パス内の引用符はそのままにします)。
icacls "C:\Windows\ServiceProfiles\LocalService\AppData\Local\National Instruments\Web Server" /リセット
3. NI Web サーバ構築アプリからNI Web Serverを再起動します。
4. NI Webサーバを再起動した後、SystemLinkサーバにログインします。