質問編集履歴

8

内容から外れているものを消す

2024/03/10 23:11

投稿

michikusa-mc
michikusa-mc

スコア26

test CHANGED
File without changes
test CHANGED
@@ -54,175 +54,7 @@
54
54
  sudo: /opt/.rbenv/versions/3.1.3/lib/ruby/gems/3.1.0/gems/passenger-6.0.20/buildout/support-binaries/PassengerAgent: command not found
55
55
  ```
56
56
  やはり実行権限か何かのせいだと考えます。
57
- ↑なぜか直りました。
58
57
 
59
58
  OS: Ubuntu 22.04 LTS Server
60
59
  追記してほしいファイルがあれば、提供いたします。
61
60
 
62
- ### 追記 2024/03/08 11:20
63
- /var/log/error.log
64
- エラーが変わりました。
65
- ```log
66
- [ E 2024-03-09 05:08:16.8580 1003/T5 age/Cor/SecurityUpdateChecker.h:506 ]: Security update check failed: HTTP 500 while connecting to https://securitycheck.phusionpassenger.com/v1/check.json (if this error persists check your connection security or try upgrading Passenger) (next check in 24 hours)
67
- App 1414 output: /opt/.rbenv/versions/3.1.3/bin/ruby: error while loading shared libraries: libruby.so.3.1: cannot open shared object file: No such file or directory
68
- [ E 2024-03-09 05:10:53.9449 1003/Tf age/Cor/App/Implementation.cpp:221 ]: Could not spawn process for application /var/www/source: The application process exited prematurely.
69
- Error ID: 08a3be68
70
- Error details saved to: /tmp/passenger-error-TS4CXK.html
71
- ```
72
- ~/.bashrc
73
- ```bash
74
- case $- in
75
- *i*) ;;
76
- *) return;;
77
- esac
78
-
79
- HISTCONTROL=ignoreboth
80
-
81
- shopt -s histappend
82
-
83
- HISTSIZE=1000
84
- HISTFILESIZE=2000
85
-
86
- shopt -s checkwinsize
87
-
88
- if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
89
- debian_chroot=$(cat /etc/debian_chroot)
90
- fi
91
-
92
- case "$TERM" in
93
- xterm-color|*-256color) color_prompt=yes;;
94
- esac
95
-
96
- if [ -n "$force_color_prompt" ]; then
97
- if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
98
- color_prompt=yes
99
- else
100
- color_prompt=
101
- fi
102
- fi
103
-
104
- if [ "$color_prompt" = yes ]; then
105
- PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
106
- else
107
- PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
108
- fi
109
- unset color_prompt force_color_prompt
110
-
111
- case "$TERM" in
112
- xterm*|rxvt*)
113
- PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
114
- ;;
115
- *)
116
- ;;
117
- esac
118
-
119
- if [ -x /usr/bin/dircolors ]; then
120
- test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
121
- alias ls='ls --color=auto'
122
-
123
- alias grep='grep --color=auto'
124
- alias fgrep='fgrep --color=auto'
125
- alias egrep='egrep --color=auto'
126
- fi
127
-
128
- alias ll='ls -alF'
129
- alias la='ls -A'
130
- alias l='ls -CF'
131
-
132
- alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
133
-
134
- if [ -f ~/.bash_aliases ]; then
135
- . ~/.bash_aliases
136
- fi
137
-
138
- if ! shopt -oq posix; then
139
- if [ -f /usr/share/bash-completion/bash_completion ]; then
140
- . /usr/share/bash-completion/bash_completion
141
- elif [ -f /etc/bash_completion ]; then
142
- . /etc/bash_completion
143
- fi
144
- fi
145
- # おかしいのはこの辺り?
146
- export PATH="/opt/.rbenv/bin:$PATH"
147
- eval "$(rbenv init -)"
148
-
149
- export LD_LIBRARY_PATH=/opt/.rbenv/versions/3.1.3/lib
150
-
151
- ```
152
-
153
- ### 追記 2024/03/09 20:34
154
- @otn 様の示して下さったコマンドの実行結果を記述します。
155
- ```bash
156
- $ sudo ls -l /opt/.rbenv/versions/3.1.3/lib/ruby/gems/3.1.0/gems/passenger-6.0.20/buildout/support-binaries/PassengerAgent
157
- -rwx--x-wx 1 www-data www-data 42794144 Mar 1 05:08 /opt/.rbenv/versions/3.1.3/lib/ruby/gems/3.1.0/gems/passenger-6.0.20/buildout/support-binaries/PassengerAgent
158
- $ sudo -u www-data ls -l /opt/.rbenv/versions/3.1.3/lib/ruby/gems/3.1.0/gems/passenger-6.0.20/buildout/support-binaries/PassengerAgent
159
- -rwx--x-wx 1 www-data www-data 42794144 Mar 1 05:08 /opt/.rbenv/versions/3.1.3/lib/ruby/gems/3.1.0/gems/passenger-6.0.20/buildout/support-binaries/PassengerAgent
160
- ```
161
- ちなみに、/tmp/passenger-error-TS4CXK.html は、存在しないそうです...。
162
- (その後も/tmp ディレクトリに動きはありませんでした。)
163
-
164
- ### 追記 2024/03/09 21:11
165
- ```bash
166
- $ sudo -u www-data file /opt/.rbenv/versions/3.1.3/lib/ruby/gems/3.1.0/gems/passenger-6.0.20/buildout/support-binaries/PassengerAgent
167
- /opt/.rbenv/versions/3.1.3/lib/ruby/gems/3.1.0/gems/passenger-6.0.20/buildout/support-binaries/PassengerAgent: ELF 64-bit LSB pie executable, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=8645a8cf1759ce1ca2d001c047acf736f1babf18, for GNU/Linux 3.2.0, with debug_info, not stripped
168
- ```
169
-
170
- ### 追記 20:23
171
- [こちらの記事](https://qiita.com/kouyan/items/c52fab36291a505el)を参考に、lddコマンドを実行してみました。エラー的に`/opt/.rbenv/versions/3.1.3/bin/ruby`が
172
- おかしそうであったため、以下のコマンドと、PassengerAgentに関してlddを実行しました。以下が結果です。
173
- ```bash
174
- $ sudo ldd /opt/.rbenv/versions/3.1.3/lib/ruby/gems/3.1.0/gems/passenger-6.0.20/buildout/support-binaries/PassengerAgent
175
- linux-vdso.so.1 (0x00007ffc24a6d000)
176
- libcurl.so.4 => /lib/x86_64-linux-gnu/libcurl.so.4 (0x00007f1a9bb70000)
177
- libcrypto.so.3 => /lib/x86_64-linux-gnu/libcrypto.so.3 (0x00007f1a9b72c000)
178
- libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f1a9b500000)
179
- libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f1a9b419000)
180
- libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f1a9b3f9000)
181
- libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f1a9b1ce000)
182
- libnghttp2.so.14 => /lib/x86_64-linux-gnu/libnghttp2.so.14 (0x00007f1a9b1a4000)
183
- libidn2.so.0 => /lib/x86_64-linux-gnu/libidn2.so.0 (0x00007f1a9b183000)
184
- librtmp.so.1 => /lib/x86_64-linux-gnu/librtmp.so.1 (0x00007f1a9b164000)
185
- libssh.so.4 => /lib/x86_64-linux-gnu/libssh.so.4 (0x00007f1a9b0f7000)
186
- libpsl.so.5 => /lib/x86_64-linux-gnu/libpsl.so.5 (0x00007f1a9b0e3000)
187
- libssl.so.3 => /lib/x86_64-linux-gnu/libssl.so.3 (0x00007f1a9b03d000)
188
- libgssapi_krb5.so.2 => /lib/x86_64-linux-gnu/libgssapi_krb5.so.2 (0x00007f1a9afe9000)
189
- libldap-2.5.so.0 => /lib/x86_64-linux-gnu/libldap-2.5.so.0 (0x00007f1a9af8a000)
190
- liblber-2.5.so.0 => /lib/x86_64-linux-gnu/liblber-2.5.so.0 (0x00007f1a9af79000)
191
- libzstd.so.1 => /lib/x86_64-linux-gnu/libzstd.so.1 (0x00007f1a9aeaa000)
192
- libbrotlidec.so.1 => /lib/x86_64-linux-gnu/libbrotlidec.so.1 (0x00007f1a9ae9c000)
193
- libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f1a9ae7e000)
194
- /lib64/ld-linux-x86-64.so.2 (0x00007f1a9c2fa000)
195
- libunistring.so.2 => /lib/x86_64-linux-gnu/libunistring.so.2 (0x00007f1a9acd4000)
196
- libgnutls.so.30 => /lib/x86_64-linux-gnu/libgnutls.so.30 (0x00007f1a9aae9000)
197
- libhogweed.so.6 => /lib/x86_64-linux-gnu/libhogweed.so.6 (0x00007f1a9aaa1000)
198
- libnettle.so.8 => /lib/x86_64-linux-gnu/libnettle.so.8 (0x00007f1a9aa5b000)
199
- libgmp.so.10 => /lib/x86_64-linux-gnu/libgmp.so.10 (0x00007f1a9a9d7000)
200
- libkrb5.so.3 => /lib/x86_64-linux-gnu/libkrb5.so.3 (0x00007f1a9a90c000)
201
- libk5crypto.so.3 => /lib/x86_64-linux-gnu/libk5crypto.so.3 (0x00007f1a9a8dd000)
202
- libcom_err.so.2 => /lib/x86_64-linux-gnu/libcom_err.so.2 (0x00007f1a9a8d7000)
203
- libkrb5support.so.0 => /lib/x86_64-linux-gnu/libkrb5support.so.0 (0x00007f1a9a8c9000)
204
- libsasl2.so.2 => /lib/x86_64-linux-gnu/libsasl2.so.2 (0x00007f1a9a8ac000)
205
- libbrotlicommon.so.1 => /lib/x86_64-linux-gnu/libbrotlicommon.so.1 (0x00007f1a9a889000)
206
- libp11-kit.so.0 => /lib/x86_64-linux-gnu/libp11-kit.so.0 (0x00007f1a9a74e000)
207
- libtasn1.so.6 => /lib/x86_64-linux-gnu/libtasn1.so.6 (0x00007f1a9a736000)
208
- libkeyutils.so.1 => /lib/x86_64-linux-gnu/libkeyutils.so.1 (0x00007f1a9a72f000)
209
- libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007f1a9a719000)
210
- libffi.so.8 => /lib/x86_64-linux-gnu/libffi.so.8 (0x00007f1a9a70c000)
211
- $ sudo ldd /opt/.rbenv/versions/3.1.3/bin/ruby
212
- linux-vdso.so.1 (0x00007ffd8b1dd000)
213
- libruby.so.3.1 => /opt/.rbenv/versions/3.1.3/lib/libruby.so.3.1 (0x00007fbac71b3000)
214
- libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fbac7191000)
215
- libcrypt.so.1 => /lib/x86_64-linux-gnu/libcrypt.so.1 (0x00007fbac7157000)
216
- libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fbac7070000)
217
- libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fbac6e47000)
218
- /lib64/ld-linux-x86-64.so.2 (0x00007fbac75fc000)
219
- ```
220
- 特にNot foundが見つかりませんでした。シンボリックのせいかと考え、見てみましたが、きちんとリンクされていました。
221
- ```bash
222
- $ ls /opt/.rbenv/versions/3.1.3/lib/ -l
223
- total 13108
224
- lrwxrwxrwx 1 root root 16 Jan 28 07:57 libruby.so -> libruby.so.3.1.3
225
- lrwxrwxrwx 2 www-data www-data 16 Jan 28 07:57 libruby.so.3.1 -> libruby.so.3.1.3
226
- -rwxr-xr-x 1 www-data www-data 13413464 Jan 28 07:53 libruby.so.3.1.3
227
- ...
228
- ```

7

役に立ちそうな情報を追加しました。

2024/03/10 11:30

投稿

michikusa-mc
michikusa-mc

スコア26

test CHANGED
File without changes
test CHANGED
@@ -71,58 +71,30 @@
71
71
  ```
72
72
  ~/.bashrc
73
73
  ```bash
74
- # ~/.bashrc: executed by bash(1) for non-login shells.
75
- # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
76
- # for examples
77
-
78
- # If not running interactively, don't do anything
79
74
  case $- in
80
75
  *i*) ;;
81
76
  *) return;;
82
77
  esac
83
78
 
84
- # don't put duplicate lines or lines starting with space in the history.
85
- # See bash(1) for more options
86
79
  HISTCONTROL=ignoreboth
87
80
 
88
- # append to the history file, don't overwrite it
89
81
  shopt -s histappend
90
82
 
91
- # for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
92
83
  HISTSIZE=1000
93
84
  HISTFILESIZE=2000
94
85
 
95
- # check the window size after each command and, if necessary,
96
- # update the values of LINES and COLUMNS.
97
86
  shopt -s checkwinsize
98
87
 
99
- # If set, the pattern "**" used in a pathname expansion context will
100
- # match all files and zero or more directories and subdirectories.
101
- #shopt -s globstar
102
-
103
- # make less more friendly for non-text input files, see lesspipe(1)
104
- [ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
105
-
106
- # set variable identifying the chroot you work in (used in the prompt below)
107
88
  if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
108
89
  debian_chroot=$(cat /etc/debian_chroot)
109
90
  fi
110
91
 
111
- # set a fancy prompt (non-color, unless we know we "want" color)
112
92
  case "$TERM" in
113
93
  xterm-color|*-256color) color_prompt=yes;;
114
94
  esac
115
95
 
116
- # uncomment for a colored prompt, if the terminal has the capability; turned
117
- # off by default to not distract the user: the focus in a terminal window
118
- # should be on the output of commands, not on the prompt
119
- #force_color_prompt=yes
120
-
121
96
  if [ -n "$force_color_prompt" ]; then
122
97
  if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
123
- # We have color support; assume it's compliant with Ecma-48
124
- # (ISO/IEC-6429). (Lack of such support is extremely rare, and such
125
- # a case would tend to support setf rather than setaf.)
126
98
  color_prompt=yes
127
99
  else
128
100
  color_prompt=
@@ -136,7 +108,6 @@
136
108
  fi
137
109
  unset color_prompt force_color_prompt
138
110
 
139
- # If this is an xterm set the title to user@host:dir
140
111
  case "$TERM" in
141
112
  xterm*|rxvt*)
142
113
  PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
@@ -145,42 +116,25 @@
145
116
  ;;
146
117
  esac
147
118
 
148
- # enable color support of ls and also add handy aliases
149
119
  if [ -x /usr/bin/dircolors ]; then
150
120
  test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
151
121
  alias ls='ls --color=auto'
152
- #alias dir='dir --color=auto'
153
- #alias vdir='vdir --color=auto'
154
122
 
155
123
  alias grep='grep --color=auto'
156
124
  alias fgrep='fgrep --color=auto'
157
125
  alias egrep='egrep --color=auto'
158
126
  fi
159
127
 
160
- # colored GCC warnings and errors
161
- #export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
162
-
163
- # some more ls aliases
164
128
  alias ll='ls -alF'
165
129
  alias la='ls -A'
166
130
  alias l='ls -CF'
167
131
 
168
- # Add an "alert" alias for long running commands. Use like so:
169
- # sleep 10; alert
170
132
  alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
171
-
172
- # Alias definitions.
173
- # You may want to put all your additions into a separate file like
174
- # ~/.bash_aliases, instead of adding them here directly.
175
- # See /usr/share/doc/bash-doc/examples in the bash-doc package.
176
133
 
177
134
  if [ -f ~/.bash_aliases ]; then
178
135
  . ~/.bash_aliases
179
136
  fi
180
137
 
181
- # enable programmable completion features (you don't need to enable
182
- # this, if it's already enabled in /etc/bash.bashrc and /etc/profile
183
- # sources /etc/bash.bashrc).
184
138
  if ! shopt -oq posix; then
185
139
  if [ -f /usr/share/bash-completion/bash_completion ]; then
186
140
  . /usr/share/bash-completion/bash_completion
@@ -212,3 +166,63 @@
212
166
  $ sudo -u www-data file /opt/.rbenv/versions/3.1.3/lib/ruby/gems/3.1.0/gems/passenger-6.0.20/buildout/support-binaries/PassengerAgent
213
167
  /opt/.rbenv/versions/3.1.3/lib/ruby/gems/3.1.0/gems/passenger-6.0.20/buildout/support-binaries/PassengerAgent: ELF 64-bit LSB pie executable, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=8645a8cf1759ce1ca2d001c047acf736f1babf18, for GNU/Linux 3.2.0, with debug_info, not stripped
214
168
  ```
169
+
170
+ ### 追記 20:23
171
+ [こちらの記事](https://qiita.com/kouyan/items/c52fab36291a505el)を参考に、lddコマンドを実行してみました。エラー的に`/opt/.rbenv/versions/3.1.3/bin/ruby`が
172
+ おかしそうであったため、以下のコマンドと、PassengerAgentに関してlddを実行しました。以下が結果です。
173
+ ```bash
174
+ $ sudo ldd /opt/.rbenv/versions/3.1.3/lib/ruby/gems/3.1.0/gems/passenger-6.0.20/buildout/support-binaries/PassengerAgent
175
+ linux-vdso.so.1 (0x00007ffc24a6d000)
176
+ libcurl.so.4 => /lib/x86_64-linux-gnu/libcurl.so.4 (0x00007f1a9bb70000)
177
+ libcrypto.so.3 => /lib/x86_64-linux-gnu/libcrypto.so.3 (0x00007f1a9b72c000)
178
+ libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f1a9b500000)
179
+ libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f1a9b419000)
180
+ libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f1a9b3f9000)
181
+ libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f1a9b1ce000)
182
+ libnghttp2.so.14 => /lib/x86_64-linux-gnu/libnghttp2.so.14 (0x00007f1a9b1a4000)
183
+ libidn2.so.0 => /lib/x86_64-linux-gnu/libidn2.so.0 (0x00007f1a9b183000)
184
+ librtmp.so.1 => /lib/x86_64-linux-gnu/librtmp.so.1 (0x00007f1a9b164000)
185
+ libssh.so.4 => /lib/x86_64-linux-gnu/libssh.so.4 (0x00007f1a9b0f7000)
186
+ libpsl.so.5 => /lib/x86_64-linux-gnu/libpsl.so.5 (0x00007f1a9b0e3000)
187
+ libssl.so.3 => /lib/x86_64-linux-gnu/libssl.so.3 (0x00007f1a9b03d000)
188
+ libgssapi_krb5.so.2 => /lib/x86_64-linux-gnu/libgssapi_krb5.so.2 (0x00007f1a9afe9000)
189
+ libldap-2.5.so.0 => /lib/x86_64-linux-gnu/libldap-2.5.so.0 (0x00007f1a9af8a000)
190
+ liblber-2.5.so.0 => /lib/x86_64-linux-gnu/liblber-2.5.so.0 (0x00007f1a9af79000)
191
+ libzstd.so.1 => /lib/x86_64-linux-gnu/libzstd.so.1 (0x00007f1a9aeaa000)
192
+ libbrotlidec.so.1 => /lib/x86_64-linux-gnu/libbrotlidec.so.1 (0x00007f1a9ae9c000)
193
+ libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f1a9ae7e000)
194
+ /lib64/ld-linux-x86-64.so.2 (0x00007f1a9c2fa000)
195
+ libunistring.so.2 => /lib/x86_64-linux-gnu/libunistring.so.2 (0x00007f1a9acd4000)
196
+ libgnutls.so.30 => /lib/x86_64-linux-gnu/libgnutls.so.30 (0x00007f1a9aae9000)
197
+ libhogweed.so.6 => /lib/x86_64-linux-gnu/libhogweed.so.6 (0x00007f1a9aaa1000)
198
+ libnettle.so.8 => /lib/x86_64-linux-gnu/libnettle.so.8 (0x00007f1a9aa5b000)
199
+ libgmp.so.10 => /lib/x86_64-linux-gnu/libgmp.so.10 (0x00007f1a9a9d7000)
200
+ libkrb5.so.3 => /lib/x86_64-linux-gnu/libkrb5.so.3 (0x00007f1a9a90c000)
201
+ libk5crypto.so.3 => /lib/x86_64-linux-gnu/libk5crypto.so.3 (0x00007f1a9a8dd000)
202
+ libcom_err.so.2 => /lib/x86_64-linux-gnu/libcom_err.so.2 (0x00007f1a9a8d7000)
203
+ libkrb5support.so.0 => /lib/x86_64-linux-gnu/libkrb5support.so.0 (0x00007f1a9a8c9000)
204
+ libsasl2.so.2 => /lib/x86_64-linux-gnu/libsasl2.so.2 (0x00007f1a9a8ac000)
205
+ libbrotlicommon.so.1 => /lib/x86_64-linux-gnu/libbrotlicommon.so.1 (0x00007f1a9a889000)
206
+ libp11-kit.so.0 => /lib/x86_64-linux-gnu/libp11-kit.so.0 (0x00007f1a9a74e000)
207
+ libtasn1.so.6 => /lib/x86_64-linux-gnu/libtasn1.so.6 (0x00007f1a9a736000)
208
+ libkeyutils.so.1 => /lib/x86_64-linux-gnu/libkeyutils.so.1 (0x00007f1a9a72f000)
209
+ libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007f1a9a719000)
210
+ libffi.so.8 => /lib/x86_64-linux-gnu/libffi.so.8 (0x00007f1a9a70c000)
211
+ $ sudo ldd /opt/.rbenv/versions/3.1.3/bin/ruby
212
+ linux-vdso.so.1 (0x00007ffd8b1dd000)
213
+ libruby.so.3.1 => /opt/.rbenv/versions/3.1.3/lib/libruby.so.3.1 (0x00007fbac71b3000)
214
+ libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fbac7191000)
215
+ libcrypt.so.1 => /lib/x86_64-linux-gnu/libcrypt.so.1 (0x00007fbac7157000)
216
+ libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fbac7070000)
217
+ libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fbac6e47000)
218
+ /lib64/ld-linux-x86-64.so.2 (0x00007fbac75fc000)
219
+ ```
220
+ 特にNot foundが見つかりませんでした。シンボリックのせいかと考え、見てみましたが、きちんとリンクされていました。
221
+ ```bash
222
+ $ ls /opt/.rbenv/versions/3.1.3/lib/ -l
223
+ total 13108
224
+ lrwxrwxrwx 1 root root 16 Jan 28 07:57 libruby.so -> libruby.so.3.1.3
225
+ lrwxrwxrwx 2 www-data www-data 16 Jan 28 07:57 libruby.so.3.1 -> libruby.so.3.1.3
226
+ -rwxr-xr-x 1 www-data www-data 13413464 Jan 28 07:53 libruby.so.3.1.3
227
+ ...
228
+ ```

6

直ったところの追記

2024/03/10 00:28

投稿

michikusa-mc
michikusa-mc

スコア26

test CHANGED
File without changes
test CHANGED
@@ -54,6 +54,7 @@
54
54
  sudo: /opt/.rbenv/versions/3.1.3/lib/ruby/gems/3.1.0/gems/passenger-6.0.20/buildout/support-binaries/PassengerAgent: command not found
55
55
  ```
56
56
  やはり実行権限か何かのせいだと考えます。
57
+ ↑なぜか直りました。
57
58
 
58
59
  OS: Ubuntu 22.04 LTS Server
59
60
  追記してほしいファイルがあれば、提供いたします。

5

存在証明

2024/03/09 12:12

投稿

michikusa-mc
michikusa-mc

スコア26

test CHANGED
File without changes
test CHANGED
@@ -206,3 +206,8 @@
206
206
  ちなみに、/tmp/passenger-error-TS4CXK.html は、存在しないそうです...。
207
207
  (その後も/tmp ディレクトリに動きはありませんでした。)
208
208
 
209
+ ### 追記 2024/03/09 21:11
210
+ ```bash
211
+ $ sudo -u www-data file /opt/.rbenv/versions/3.1.3/lib/ruby/gems/3.1.0/gems/passenger-6.0.20/buildout/support-binaries/PassengerAgent
212
+ /opt/.rbenv/versions/3.1.3/lib/ruby/gems/3.1.0/gems/passenger-6.0.20/buildout/support-binaries/PassengerAgent: ELF 64-bit LSB pie executable, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=8645a8cf1759ce1ca2d001c047acf736f1babf18, for GNU/Linux 3.2.0, with debug_info, not stripped
213
+ ```

4

実行結果追記の追記

2024/03/09 11:39

投稿

michikusa-mc
michikusa-mc

スコア26

test CHANGED
File without changes
test CHANGED
@@ -203,5 +203,6 @@
203
203
  $ sudo -u www-data ls -l /opt/.rbenv/versions/3.1.3/lib/ruby/gems/3.1.0/gems/passenger-6.0.20/buildout/support-binaries/PassengerAgent
204
204
  -rwx--x-wx 1 www-data www-data 42794144 Mar 1 05:08 /opt/.rbenv/versions/3.1.3/lib/ruby/gems/3.1.0/gems/passenger-6.0.20/buildout/support-binaries/PassengerAgent
205
205
  ```
206
-
206
+ ちなみに、/tmp/passenger-error-TS4CXK.html は、存在しないそうです...。
207
-
207
+ (その後も/tmp ディレクトリに動きはありませんでした。)
208
+

3

実行結果追記

2024/03/09 11:37

投稿

michikusa-mc
michikusa-mc

スコア26

test CHANGED
File without changes
test CHANGED
@@ -195,4 +195,13 @@
195
195
 
196
196
  ```
197
197
 
198
-
198
+ ### 追記 2024/03/09 20:34
199
+ @otn 様の示して下さったコマンドの実行結果を記述します。
200
+ ```bash
201
+ $ sudo ls -l /opt/.rbenv/versions/3.1.3/lib/ruby/gems/3.1.0/gems/passenger-6.0.20/buildout/support-binaries/PassengerAgent
202
+ -rwx--x-wx 1 www-data www-data 42794144 Mar 1 05:08 /opt/.rbenv/versions/3.1.3/lib/ruby/gems/3.1.0/gems/passenger-6.0.20/buildout/support-binaries/PassengerAgent
203
+ $ sudo -u www-data ls -l /opt/.rbenv/versions/3.1.3/lib/ruby/gems/3.1.0/gems/passenger-6.0.20/buildout/support-binaries/PassengerAgent
204
+ -rwx--x-wx 1 www-data www-data 42794144 Mar 1 05:08 /opt/.rbenv/versions/3.1.3/lib/ruby/gems/3.1.0/gems/passenger-6.0.20/buildout/support-binaries/PassengerAgent
205
+ ```
206
+
207
+

2

初心者マーク, エラー追記

2024/03/09 05:20

投稿

michikusa-mc
michikusa-mc

スコア26

test CHANGED
File without changes
test CHANGED
@@ -59,6 +59,15 @@
59
59
  追記してほしいファイルがあれば、提供いたします。
60
60
 
61
61
  ### 追記 2024/03/08 11:20
62
+ /var/log/error.log
63
+ エラーが変わりました。
64
+ ```log
65
+ [ E 2024-03-09 05:08:16.8580 1003/T5 age/Cor/SecurityUpdateChecker.h:506 ]: Security update check failed: HTTP 500 while connecting to https://securitycheck.phusionpassenger.com/v1/check.json (if this error persists check your connection security or try upgrading Passenger) (next check in 24 hours)
66
+ App 1414 output: /opt/.rbenv/versions/3.1.3/bin/ruby: error while loading shared libraries: libruby.so.3.1: cannot open shared object file: No such file or directory
67
+ [ E 2024-03-09 05:10:53.9449 1003/Tf age/Cor/App/Implementation.cpp:221 ]: Could not spawn process for application /var/www/source: The application process exited prematurely.
68
+ Error ID: 08a3be68
69
+ Error details saved to: /tmp/passenger-error-TS4CXK.html
70
+ ```
62
71
  ~/.bashrc
63
72
  ```bash
64
73
  # ~/.bashrc: executed by bash(1) for non-login shells.

1

bashrcの記載

2024/03/08 02:23

投稿

michikusa-mc
michikusa-mc

スコア26

test CHANGED
File without changes
test CHANGED
@@ -58,4 +58,132 @@
58
58
  OS: Ubuntu 22.04 LTS Server
59
59
  追記してほしいファイルがあれば、提供いたします。
60
60
 
61
+ ### 追記 2024/03/08 11:20
62
+ ~/.bashrc
63
+ ```bash
64
+ # ~/.bashrc: executed by bash(1) for non-login shells.
65
+ # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
66
+ # for examples
61
67
 
68
+ # If not running interactively, don't do anything
69
+ case $- in
70
+ *i*) ;;
71
+ *) return;;
72
+ esac
73
+
74
+ # don't put duplicate lines or lines starting with space in the history.
75
+ # See bash(1) for more options
76
+ HISTCONTROL=ignoreboth
77
+
78
+ # append to the history file, don't overwrite it
79
+ shopt -s histappend
80
+
81
+ # for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
82
+ HISTSIZE=1000
83
+ HISTFILESIZE=2000
84
+
85
+ # check the window size after each command and, if necessary,
86
+ # update the values of LINES and COLUMNS.
87
+ shopt -s checkwinsize
88
+
89
+ # If set, the pattern "**" used in a pathname expansion context will
90
+ # match all files and zero or more directories and subdirectories.
91
+ #shopt -s globstar
92
+
93
+ # make less more friendly for non-text input files, see lesspipe(1)
94
+ [ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
95
+
96
+ # set variable identifying the chroot you work in (used in the prompt below)
97
+ if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
98
+ debian_chroot=$(cat /etc/debian_chroot)
99
+ fi
100
+
101
+ # set a fancy prompt (non-color, unless we know we "want" color)
102
+ case "$TERM" in
103
+ xterm-color|*-256color) color_prompt=yes;;
104
+ esac
105
+
106
+ # uncomment for a colored prompt, if the terminal has the capability; turned
107
+ # off by default to not distract the user: the focus in a terminal window
108
+ # should be on the output of commands, not on the prompt
109
+ #force_color_prompt=yes
110
+
111
+ if [ -n "$force_color_prompt" ]; then
112
+ if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
113
+ # We have color support; assume it's compliant with Ecma-48
114
+ # (ISO/IEC-6429). (Lack of such support is extremely rare, and such
115
+ # a case would tend to support setf rather than setaf.)
116
+ color_prompt=yes
117
+ else
118
+ color_prompt=
119
+ fi
120
+ fi
121
+
122
+ if [ "$color_prompt" = yes ]; then
123
+ PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
124
+ else
125
+ PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
126
+ fi
127
+ unset color_prompt force_color_prompt
128
+
129
+ # If this is an xterm set the title to user@host:dir
130
+ case "$TERM" in
131
+ xterm*|rxvt*)
132
+ PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
133
+ ;;
134
+ *)
135
+ ;;
136
+ esac
137
+
138
+ # enable color support of ls and also add handy aliases
139
+ if [ -x /usr/bin/dircolors ]; then
140
+ test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
141
+ alias ls='ls --color=auto'
142
+ #alias dir='dir --color=auto'
143
+ #alias vdir='vdir --color=auto'
144
+
145
+ alias grep='grep --color=auto'
146
+ alias fgrep='fgrep --color=auto'
147
+ alias egrep='egrep --color=auto'
148
+ fi
149
+
150
+ # colored GCC warnings and errors
151
+ #export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
152
+
153
+ # some more ls aliases
154
+ alias ll='ls -alF'
155
+ alias la='ls -A'
156
+ alias l='ls -CF'
157
+
158
+ # Add an "alert" alias for long running commands. Use like so:
159
+ # sleep 10; alert
160
+ alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
161
+
162
+ # Alias definitions.
163
+ # You may want to put all your additions into a separate file like
164
+ # ~/.bash_aliases, instead of adding them here directly.
165
+ # See /usr/share/doc/bash-doc/examples in the bash-doc package.
166
+
167
+ if [ -f ~/.bash_aliases ]; then
168
+ . ~/.bash_aliases
169
+ fi
170
+
171
+ # enable programmable completion features (you don't need to enable
172
+ # this, if it's already enabled in /etc/bash.bashrc and /etc/profile
173
+ # sources /etc/bash.bashrc).
174
+ if ! shopt -oq posix; then
175
+ if [ -f /usr/share/bash-completion/bash_completion ]; then
176
+ . /usr/share/bash-completion/bash_completion
177
+ elif [ -f /etc/bash_completion ]; then
178
+ . /etc/bash_completion
179
+ fi
180
+ fi
181
+ # おかしいのはこの辺り?
182
+ export PATH="/opt/.rbenv/bin:$PATH"
183
+ eval "$(rbenv init -)"
184
+
185
+ export LD_LIBRARY_PATH=/opt/.rbenv/versions/3.1.3/lib
186
+
187
+ ```
188
+
189
+