tested on ubuntu docker container (python 3.6) and mac (python 3.7), not 
work with error
*question*
- is web3py-start myapps can start on background 
e.g. web3py-start myapps &
consider when server is run on isolated env (i.e. docker) and must access 
through tunnels (ssh or ngrok)
?

*steps on ubuntu*
apt install -y python3-pip unzip 
python3 -m pip install web3py
web3py-start myapps

*result*
Choose a one-time dashboad password:
Create .web3py-service (y/n)?
[X] Unzipping app web3py.app._dashboard.zip
Dashboard is at: http://127.0.0.1:8000/_dashboard
[FAILED] loading _dashboard
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/web3py/core.py", line 632, in 
import_apps
    module = importlib.machinery.SourceFileLoader(module_name, init).
load_module()
  File "<frozen importlib._bootstrap_external>", line 399, in 
_check_name_wrapper
  File "<frozen importlib._bootstrap_external>", line 823, in load_module
  File "<frozen importlib._bootstrap_external>", line 682, in load_module
  File "<frozen importlib._bootstrap>", line 265, in _load_module_shim
  File "<frozen importlib._bootstrap>", line 684, in _load
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in 
_call_with_frames_removed
  File "/root/myapps/_dashboard/__init__.py", line 24, in <module>
    error_storage = ErrorStorage()
  File "/usr/local/lib/python3.6/dist-packages/web3py/core.py", line 549, in 
__init__
    self.db = DAL(uri, folder=folder)
  File "/usr/local/lib/python3.6/dist-packages/pydal/base.py", line 171, in 
__call__
    obj = super(MetaDAL, cls).__call__(*args, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/pydal/base.py", line 477, in 
__init__
    "Failure to connect, tried %d times:\n%s" % (attempts, tb)
RuntimeError: Failure to connect, tried 5 times:
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/pydal/base.py", line 457, in 
__init__
    self._adapter = adapter(**kwargs)
  File "/usr/local/lib/python3.6/dist-packages/pydal/adapters/__init__.py", 
line 39, in __call__
    obj = super(AdapterMeta, cls).__call__(*args, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/pydal/adapters/base.py", 
line 369, in __init__
    super(SQLAdapter, self).__init__(*args, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/pydal/adapters/base.py", 
line 53, in __init__
    self.reconnect()
  File "/usr/local/lib/python3.6/dist-packages/pydal/connection.py", line 
154, in reconnect
    self.connection = self.connector()
  File "/usr/local/lib/python3.6/dist-packages/pydal/adapters/sqlite.py", 
line 42, in connector
    return self.driver.Connection(self.dbpath, **self.driver_args)
sqlite3.OperationalError: unable to open database file
WARNING:tornado.access:404 GET /_dashboard (127.0.0.1) 2.85ms
WARNING:tornado.access:404 GET /favicon.ico (127.0.0.1) 2.65ms

best regards,
stifan

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/9fabf921-a27b-4179-a51f-53e11d5d1e54%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to