Never mind it is the way I am starting it. I will figure it out. Thanks
I haven't nuked anything yet - I will do this procedure, hopefully tonight after work, and report back.if you haven't already nuked everything there is an orderly way to get at what is wrong...
First
Code:$ find /usr/local/lib -name _op25_repeater_swig.so /usr/local/lib/python2.7/dist-packages/op25_repeater/_op25_repeater_swig.so
then run "ls -l " on that file
Code:$ ls -l /usr/local/lib/python2.7/dist-packages/op25_repeater/_op25_repeater_swig.so -rw-r--r-- 1 root staff 2121952 Jul 22 21:27 /usr/local/lib/python2.7/dist-packages/op25_repeater/_op25_repeater_swig.so
then report both results...
Unless there is a different log to look at - if a run oplog.sh from a terminal the output is as follows (if this is what you were looking for):
sh oplog.sh
* Serving Flask app "op25" (lazy loading)
* Environment: production
WARNING: Do not use the development server in a production environment.
Use a production WSGI server instead.
* Debug mode: on
* Running on http://0.0.0.0:5000/ (Press CTRL+C to quit)
* Restarting with stat
* Debugger is active!
* Debugger PIN: 339-955-248
/home/pi/op25/op25/gr-op25_repeater/apps/oplog/op25/__init__.py:142: SAWarning: TypeDecorator MyDateType() will not produce a cache key because the ``cache_ok`` flag is not set to True. Set this flag to True if this type object's state is safe to use in a cache key, or False to disable this warning.
firstRec = db.session.query(DataStore.time, func.min(DataStore.time)).scalar()
/home/pi/op25/op25/gr-op25_repeater/apps/oplog/op25/__init__.py:143: SAWarning: TypeDecorator MyDateType() will not produce a cache key because the ``cache_ok`` flag is not set to True. Set this flag to True if this type object's state is safe to use in a cache key, or False to disable this warning.
lastRec = db.session.query(DataStore.time, func.max(DataStore.time)).scalar()
10.0.0.22 - - [23/Aug/2021 13:33:39] "GET / HTTP/1.1" 200 -
10.0.0.22 - - [23/Aug/2021 13:33:39] "GET /static/css/op25.css?rnd=1629740018407 HTTP/1.1" 200 -
10.0.0.22 - - [23/Aug/2021 13:33:39] "GET /static/css/bootstrap/bootstrap-darkly.css? HTTP/1.1" 200 -
10.0.0.22 - - [23/Aug/2021 13:33:39] "GET /static/css/bootstrap/bootstrap-darkly.css?rnd=1629740018407 HTTP/1.1" 200 -
10.0.0.22 - - [23/Aug/2021 13:33:39] "GET /static/dtpick/jquery.datetimepicker.css? HTTP/1.1" 200 -
10.0.0.22 - - [23/Aug/2021 13:33:39] "GET /static/dtpick/jquery.datetimepicker.css?rnd=1629740018408 HTTP/1.1" 200 -
10.0.0.22 - - [23/Aug/2021 13:33:43] "GET /logs?r=call_detail HTTP/1.1" 500 -
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/flask/app.py", line 2309, in __call__
return self.wsgi_app(environ, start_response)
File "/usr/lib/python3/dist-packages/flask/app.py", line 2295, in wsgi_app
response = self.handle_exception(e)
File "/usr/lib/python3/dist-packages/flask/app.py", line 1741, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python3/dist-packages/flask/_compat.py", line 35, in reraise
raise value
File "/usr/lib/python3/dist-packages/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "/usr/lib/python3/dist-packages/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/lib/python3/dist-packages/flask/app.py", line 1718, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python3/dist-packages/flask/_compat.py", line 35, in reraise
raise value
File "/usr/lib/python3/dist-packages/flask/app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/lib/python3/dist-packages/flask/app.py", line 1799, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/home/pi/op25/op25/gr-op25_repeater/apps/oplog/op25/__init__.py", line 539, in logs
tag=tag )
File "/usr/lib/python3/dist-packages/flask/templating.py", line 134, in render_template
return _render(ctx.app.jinja_env.get_or_select_template(template_name_or_list),
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 869, in get_or_select_template
return self.get_template(template_name_or_list, parent, globals)
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 830, in get_template
return self._load_template(name, self.make_globals(globals))
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 804, in _load_template
template = self.loader.load(self, name, globals)
File "/usr/lib/python3/dist-packages/jinja2/loaders.py", line 125, in load
code = environment.compile(source, name, filename)
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 591, in compile
self.handle_exception(exc_info, source_hint=source_hint)
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 780, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python3/dist-packages/jinja2/_compat.py", line 37, in reraise
raise value.with_traceback(tb)
File "/home/pi/op25/op25/gr-op25_repeater/apps/oplog/op25/templates/logs.html", line 131, in template
var filter_tgid = {%+ if params['tgid'] is defined %}
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 497, in _parse
return Parser(self, source, name, encode_filename(filename)).parse()
File "/usr/lib/python3/dist-packages/jinja2/parser.py", line 901, in parse
result = nodes.Template(self.subparse(), lineno=1)
File "/usr/lib/python3/dist-packages/jinja2/parser.py", line 883, in subparse
rv = self.parse_statement()
File "/usr/lib/python3/dist-packages/jinja2/parser.py", line 130, in parse_statement
return getattr(self, 'parse_' + self.stream.current.value)()
File "/usr/lib/python3/dist-packages/jinja2/parser.py", line 268, in parse_block
node.body = self.parse_statements(('name:endblock',), drop_needle=True)
File "/usr/lib/python3/dist-packages/jinja2/parser.py", line 165, in parse_statements
result = self.subparse(end_tokens)
File "/usr/lib/python3/dist-packages/jinja2/parser.py", line 883, in subparse
rv = self.parse_statement()
File "/usr/lib/python3/dist-packages/jinja2/parser.py", line 125, in parse_statement
self.fail('tag name expected', token.lineno)
File "/usr/lib/python3/dist-packages/jinja2/parser.py", line 59, in fail
raise exc(msg, lineno, self.name, self.filename)
jinja2.exceptions.TemplateSyntaxError: tag name expected
10.0.0.22 - - [23/Aug/2021 13:33:43] "GET /logs?__debugger__=yes&cmd=resource&f=style.css HTTP/1.1" 200 -
10.0.0.22 - - [23/Aug/2021 13:33:43] "GET /logs?__debugger__=yes&cmd=resource&f=debugger.js HTTP/1.1" 200 -
10.0.0.22 - - [23/Aug/2021 13:33:43] "GET /logs?__debugger__=yes&cmd=resource&f=jquery.js HTTP/1.1" 200 -
10.0.0.22 - - [23/Aug/2021 13:33:43] "GET /logs?__debugger__=yes&cmd=resource&f=console.png HTTP/1.1" 200 -
Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output:
Change Dir: /home/millerah/op25/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/gmake cmTC_562b2/fast && /usr/bin/gmake -f CMakeFiles/cmTC_562b2.dir/build.make CMakeFiles/cmTC_562b2.dir/build
gmake[1]: Entering directory '/home/millerah/op25/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_562b2.dir/src.c.o
/usr/bin/cc -DCMAKE_HAVE_LIBC_PTHREAD -o CMakeFiles/cmTC_562b2.dir/src.c.o -c /home/millerah/op25/build/CMakeFiles/CMakeTmp/src.c
Linking C executable cmTC_562b2
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_562b2.dir/link.txt --verbose=1
/usr/bin/cc -DCMAKE_HAVE_LIBC_PTHREAD -rdynamic CMakeFiles/cmTC_562b2.dir/src.c.o -o cmTC_562b2
/usr/bin/ld: CMakeFiles/cmTC_562b2.dir/src.c.o: in function `main':
src.c:(.text+0x46): undefined reference to `pthread_create'
/usr/bin/ld: src.c:(.text+0x52): undefined reference to `pthread_detach'
/usr/bin/ld: src.c:(.text+0x5e): undefined reference to `pthread_cancel'
/usr/bin/ld: src.c:(.text+0x6f): undefined reference to `pthread_join'
collect2: error: ld returned 1 exit status
gmake[1]: *** [CMakeFiles/cmTC_562b2.dir/build.make:106: cmTC_562b2] Error 1
gmake[1]: Leaving directory '/home/millerah/op25/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:140: cmTC_562b2/fast] Error 2
Source file was:
#include <pthread.h>
void* test_func(void* data)
{
return data;
}
int main(void)
{
pthread_t thread;
pthread_create(&thread, NULL, test_func, NULL);
pthread_detach(thread);
pthread_cancel(thread);
pthread_join(thread, NULL);
pthread_atfork(NULL, NULL, NULL);
pthread_exit(NULL);
return 0;
}
Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /home/millerah/op25/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/gmake cmTC_c0b75/fast && /usr/bin/gmake -f CMakeFiles/cmTC_c0b75.dir/build.make CMakeFiles/cmTC_c0b75.dir/build
gmake[1]: Entering directory '/home/millerah/op25/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_c0b75.dir/CheckFunctionExists.c.o
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_c0b75.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.18/Modules/CheckFunctionExists.c
Linking C executable cmTC_c0b75
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_c0b75.dir/link.txt --verbose=1
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -rdynamic CMakeFiles/cmTC_c0b75.dir/CheckFunctionExists.c.o -o cmTC_c0b75 -lpthreads
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
gmake[1]: *** [CMakeFiles/cmTC_c0b75.dir/build.make:106: cmTC_c0b75] Error 1
gmake[1]: Leaving directory '/home/millerah/op25/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:140: cmTC_c0b75/fast] Error 2
CMakeError.log included.
Thanks for this report. To my knowledge this is the first report of anyone installing on 21.04 - so in a sense it's not surprising that there might be one form of trouble or another. We may need to mark this OS release as "unsupported" until it's fully sorted. At this time there is no ETA.............
Max
Let me know if you want any other information.
Unfortunately, I am unable to reproduce the error posted above. Based on what you posted, the error is happening when you click on Call Detail. The error message "jinja2.exceptions.TemplateSyntaxError: tag name expected" indicates a problem with the template file oplog/templates/logs.html. Did you happen to make any changes to any of the template files?Will do!