Error in install tethys app on Tethys 3 production server

103 views
Skip to first unread message

Kiran Shakya

unread,
Jul 29, 2020, 8:59:49 PM7/29/20
to Tethys Platform
I got the following error on tethys install to the application.  I am using Tethys 3 production server.  Did I missed any step?

Portal install file found...Processing...
No apps configuration found in portal config file. Searching for local app level services.yml...
No Services file found.
Running Interactive Service Mode. Any configuration options in services.yml or portal_config.yml will be ignored...
Hit return at any time to skip a step.
The app or extension you specified ("dmlocal") does not exist. Command aborted.
No settings found for app "dmlocal". Skipping interactive configuration...
Services Configuration Completed.
The app or extension you specified ("dmlocal") does not exist. Command aborted.

error.jpg

Rohit Khattar

unread,
Jul 29, 2020, 10:07:55 PM7/29/20
to Tethys Platform
I am guessing this was an application that worked with Tethys 2 and you are upgrading it to 3? 
Can you share the link to your GitHub repo of the app? 
The __init__ files need to be cleaned up so that the app is detected after the install between Tethys 2+ and 3. 

Here is a https://gist.github.com/rfun/ca38bb487ca1649be8491227adb7ca37 python script that you can place in the base directory of your application with setup.py and run it in the command line. It should clean up all the __init__ files. 

swainn

unread,
Jul 30, 2020, 9:15:39 AM7/30/20
to Tethys Platform
Kiran:

As Rohit suggested, my first guess would be that this is an issue with the __init__.py files in the tethysapp directory. For an app to work in Tethys 3, you need to remove the __init__.py file from the tethysapp directory and make sure the __init__.py file in your app package directory is empty. Take a look at this guide for migrating apps from Tethys 2 to Tethys 3 for more details: http://docs.tethysplatform.org/en/stable/whats_new/app_migration.html

Keep in mind that depending on the load order, the issue could also be caused by another app with this issue. Essentially, if an app with an __init__.py file in the tethysapp directory is loaded first, then all apps without one will not load and vice versa. So you should make sure the __init__.py files are updated in all of the apps you are installing.

On Wednesday, July 29, 2020 at 6:59:49 PM UTC-6, Kiran Shakya wrote:
Reply all
Reply to author
Forward
0 new messages