Upgrade error - No such file or directory: '../rd_ui/dist/index.html'
See original GitHub issueHi,
I created a new EC2 instance from us-east-1 AMI ami-9ea12788
.
I was able to use this version as is without issue, but when I went to upgrade the application, I was no longer unable to user the app despite the apparent success of multiple upgrades - see below.
wget https://raw.githubusercontent.com/getredash/redash/master/bin/upgrade
chmod +x upgrade
sudo ./upgrade --channel legacy # upgrade from 0.11.1+b2095 to redash.0.12.0.b2449...
export REDASH_DATABASE_URL="postgresql:///redash" # add additional slash
sudo ./upgrade # upgrade to redash.1.0.3.b2850
Once I started the application, the login screen appeared, but I got on error on re-direct see log below.
[2017-06-03 05:26:12,268][PID:1729][INFO][metrics] method=POST path=/login endpoint=redash.login status=302 content_type=text/html; charset=utf-8 content_length=305 duration=92.43 query_count=2 query_duration=3.24
[2017-06-03 05:26:12,618] ERROR in app: Exception on / [GET]
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1988, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1641, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python2.7/dist-packages/flask_restful/__init__.py", line 271, in error_router
return original_handler(e)
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1544, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1639, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1625, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/usr/local/lib/python2.7/dist-packages/flask_login/utils.py", line 228, in decorated_view
return func(*args, **kwargs)
File "/opt/redash/redash.1.0.3.b2850/redash/handlers/static.py", line 30, in index
return send_file(full_path, **dict(cache_timeout=0, conditional=True))
File "/usr/local/lib/python2.7/dist-packages/flask/helpers.py", line 536, in send_file
file = open(filename, 'rb')
IOError: [Errno 2] No such file or directory: '/opt/redash/redash.1.0.3.b2850/redash/../rd_ui/dist/index.html'
I’m not sure where I am supposed to get this rd_ui folder from.
Cheers, Julian.
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
Error: ENOENT: no such file or directory, open 'dist/index.html'
The distFolder from server.ts must point to the files containing the client side app, which is dist\YourProjectName\browser in your app.
Read more >apt upgrade: Failed to execute operation: No such file or ...
This answer by @vskubriev may hold the key to forcing the removal. Essentially: Add exit 0 after the shebang to ...
Read more >Result.html not generated with older version of openscap
Hi, I'm very confused from this bug and packages caused this problem. When I have installed openscap-1.2.8-2.el6.x86_64 (version of solved problem), ...
Read more >Experience Sharing for Our Upgrade from 2005Q4 to ...
Experience Sharing for Our Upgrade from 2005Q4 to CommSuite5 · 1. File permissions · 2. Missing localization · 3. Static files not found...
Read more >freebsd-update says "No such file or directory" for every file
Why am I getting all these "No such file or directory" errors, and how to fix? I've done some searching but found nothing...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have tha same problem, but in v4.0.1 IOError: [Errno 2] No such file or directory: ‘/opt/redash/redash-v4.0.1/redash/settings/…/…/client/dist/index.html’
UPDATE: I found solution in https://gist.github.com/spasovski/3d70f7ddb17457df1c51ad308aa8b921
It seems that ‘npm run build’ didn’t work so I run ‘docker-compose build server’ to rebuild server image now it works. Thanks and sorry to trouble you